Re: [PATCH v2 1/2] mfd: intel_quark_i2c_gpio: remove clock tree on error path

2016-03-21 Thread Lee Jones
On Fri, 19 Feb 2016, Andy Shevchenko wrote: > There is a potential resource leak in case when ->probe() fails. We have to > unregister and remove clock tree which is done here. > > This is a follow up to previously pushed commit c4726abce63b ("mfd: > intel_quark_i2c_gpio: Use clkdev_create()") th

Re: [PATCH v3 2/4] devicetree: bindings: let thermal-sensor point to other thermal zones

2016-03-21 Thread Javi Merino
On Wed, Mar 02, 2016 at 07:21:53PM -0800, Eduardo Valentin wrote: > On Mon, Jan 04, 2016 at 03:17:09PM +0100, Sascha Hauer wrote: > > On Wed, Nov 25, 2015 at 03:09:44PM +, Javi Merino wrote: > > > The thermal-sensor property of the thermal zone node accepts phandles to > > > thermal sensors. H

Re: [PATCH v2 1/2] mfd: intel_quark_i2c_gpio: remove clock tree on error path

2016-03-21 Thread Lee Jones
On Fri, 26 Feb 2016, Stephen Boyd wrote: > On 02/19, Andy Shevchenko wrote: > > There is a potential resource leak in case when ->probe() fails. We have to > > unregister and remove clock tree which is done here. > > > > This is a follow up to previously pushed commit c4726abce63b ("mfd: > > inte

Re: [patch] mfd: lp8788-irq: uninitialized variable in irq handler

2016-03-21 Thread Lee Jones
On Fri, 11 Mar 2016, Dan Carpenter wrote: > Instead to being true/false, the "handled" is true/uninitialized. > Presumably this doesn't cause that many problems in real life because > normally we handle the IRQ. > > Fixes: eea6b7cc53aa ('mfd: Add lp8788 mfd driver') > Signed-off-by: Dan Carpenter

Re: [PATCH 2/4] mfd: axp20x: Add AXP209 GPIO driver to the mfd

2016-03-21 Thread Lee Jones
On Wed, 09 Mar 2016, Maxime Ripard wrote: > Now that we have a GPIO driver for the AXP209, we can add it to our MFD. > > Signed-off-by: Maxime Ripard > --- > drivers/mfd/axp20x.c | 3 +++ > 1 file changed, 3 insertions(+) Applied, thanks. > diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp2

[PATCH v2 1/3] leds: triggers: add support for RGB triggers

2016-03-21 Thread Heiner Kallweit
Add basic support for RGB triggers. Triggers with flag LED_TRIG_CAP_RGB set are available to RGB LED devices only. Signed-off-by: Heiner Kallweit --- v2: - renamed check to led_trigger_is_supported() - removed unrelated other change --- drivers/leds/led-triggers.c | 11 +++ include/linux

[PATCH v2 2/3] leds: triggers: add led_trigger_range_event for RGB triggers

2016-03-21 Thread Heiner Kallweit
Add led_trigger_range_event() and supporting struct led_rgb_range allowing to map a value within a value range to a color within a color range. Simple example would be to map a temperature with in a range to a color between green and red. Signed-off-by: Heiner Kallweit --- v2: - moved the actual

Re: [PATCH v12 21/29] HMM: mm add helper to update page table when migrating memory back v2.

2016-03-21 Thread Jerome Glisse
On Mon, Mar 21, 2016 at 04:57:32PM +0530, Aneesh Kumar K.V wrote: > Jérôme Glisse writes: [...] > > + > > +#ifdef CONFIG_HMM > > +/* mm_hmm_migrate_back() - lock HMM CPU page table entry and allocate new > > page. > > + * > > + * @mm: The mm struct. > > + * @vma: The vm area struct the range is

Re: Nokia N900 - audio TPA6130A2 problems

2016-03-21 Thread Mark Brown
On Mon, Mar 21, 2016 at 01:04:18AM +0100, Sebastian Reichel wrote: > Right thinking about it, the voltage must also be configured for the > non always-on cases. So it's not a problem with the regulator > framework, but with twl-regulator's probe function, that should take > care of this. Absolute

[PATCH 2/3] mm, fs: remove remaining PAGE_CACHE_* and page_cache_{get,release} usage

2016-03-21 Thread Kirill A. Shutemov
Mostly direct substitution with occasional adjustment or removing outdated comments. Signed-off-by: Kirill A. Shutemov --- Documentation/filesystems/cramfs.txt | 2 +- Documentation/filesystems/tmpfs.txt| 2 +- Documentation/filesystems/vfs.txt |

[PATCH 3/3] mm: drop PAGE_CACHE_* and page_cache_{get,release} definition

2016-03-21 Thread Kirill A. Shutemov
All users gone. We can remove these macros. Signed-off-by: Kirill A. Shutemov --- include/linux/pagemap.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index b3fc0370c14f..7e1ab155c67c 100644 --- a/include/linux/pagemap.h ++

[PATCH 0/3] fs, mm: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-21 Thread Kirill A. Shutemov
PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} macros were introduced *long* time ago with promise that one day it will be possible to implement page cache with bigger chunks than PAGE_SIZE. This promise never materialized. And unlikely will. We have many places where PAGE_CACHE_SIZE assumed to be equal to P

[PATCH v2] drm/radeon: evergreen_hpd_init()/_fini(): fix HPD IRQ bitset

2016-03-21 Thread Nicolai Stange
x27; bitset in evergreen_hpd_fini() respectively. Signed-off-by: Nicolai Stange --- Applicable to linux-next-20160321. Changes to v1: - Turn commit message's impact part into a non-impact part. drivers/gpu/drm/radeon/evergreen.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff -

Re: [PATCH v5 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-03-21 Thread Joachim Eastwood
Hi Chen-Yu, On 21 March 2016 at 12:08, Chen-Yu Tsai wrote: > On Mon, Mar 21, 2016 at 6:45 PM, Alexandre Torgue > wrote: >> Hi, >> >> 2016-03-18 17:00 GMT+01:00 Chen-Yu Tsai : >>> Hi, >>> >>> On Fri, Mar 18, 2016 at 11:37 PM, Alexandre TORGUE >>> wrote: Signed-off-by: Alexandre TORGUE

Re: [PATCH v4 2/8] Documentation: arm: define DT cpu capacity bindings

2016-03-21 Thread Mark Brown
On Mon, Mar 21, 2016 at 11:49:56AM +, Juri Lelli wrote: > But we'll still need to normalize this w.r.t the highest score we get on > a specific platform, right? And while we are at normalizing it, it is > probably simpler if we keep the frequency component as part of the > number, IMHO. But, m

[PATCH] mailbox: xgene-slimpro: Fix wrong test for devm_kzalloc

2016-03-21 Thread Axel Lin
devm_kzalloc() returns NULL on failure. Signed-off-by: Axel Lin --- drivers/mailbox/mailbox-xgene-slimpro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mailbox/mailbox-xgene-slimpro.c b/drivers/mailbox/mailbox-xgene-slimpro.c index bd07f39..dd2afbc 100644 ---

Re: [PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup

2016-03-21 Thread Javier Martinez Canillas
[adding Bjorn Andersson who is the author of commit 6261b06de565] Hello Mark, Thanks a lot for your feedback. On 03/21/2016 08:11 AM, Mark Brown wrote: > On Sun, Mar 20, 2016 at 11:39:46PM -0300, Javier Martinez Canillas wrote: > >> Unfortunately, that changed the behavior of the regulator core

Re: [REGRESSION] 774ac8b7eff6 ("Thermal: initialize thermal zone device correctly") causes performance drop

2016-03-21 Thread Vladyslav Frolov
Hi Rui, The patch seems to work fine! I have tried both `rmmod & modprobe thermal` and suspend & resume. Great! On 21 March 2016 at 18:14, Vladyslav Frolov wrote: > Hi Rui, > > I'm sorry for the delay; Reading the e-mail the first time I have > missed the part about the patch, so I'm building th

Re: [PATCH v3] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-03-21 Thread Pali Rohár
On Friday 18 March 2016 23:44:23 Gabriele Mazzotta wrote: > +#ifdef CONFIG_PM_SLEEP > +static void ACPI_SYSTEM_XFACE rbtn_acpi_clear_flag(void *context) > +{ > + struct rbtn_data *rbtn_data = context; > + > + rbtn_data->suspended = false; > +} > + > +static int rbtn_suspend(struct device *d

Re: [RFC PATCH v1 0/4] Add Rockchip RGA support

2016-03-21 Thread Yakir Yang
Hi Heiko, On 03/21/2016 07:29 PM, Heiko Stübner wrote: Hi Yakir, Am Montag, 21. März 2016, 17:28:38 schrieb Yakir Yang: This patch set would add the RGA direct rendering based 2d graphics acceleration module. very cool to see that. ;) This patch set is based on git repository below: git://p

平时最多也就联系了三千家,全球还有十几万客户在哪里?

2016-03-21 Thread iSayor
您好: 您还在用ali平台开发外贸客户? 还在使用展会宣传企业和产品? 你out了!!! 当前外贸客户开发难,您是否也在寻找展会,B2B之外好的渠道? 行业全球十几万客户,平时最多也就联系了三千家,您是否想把剩下的也开发到? 加QQ1286754208给您演示下主动开发客户的方法,先用先受益,已经有近万家企业领先您使用!!。 广东省商业联合会推荐,主动开发客户第一品牌,近万家企业正在获益。您可以没有使用,但是不能没有了解。

[PATCH v2 4/6] hwmon: use smp_call_sync_on_phys_cpu() for dell-smm i8k

2016-03-21 Thread Juergen Gross
Use the smp_call_sync_on_phys_cpu() function to call system management mode on cpu 0. Signed-off-by: Juergen Gross --- drivers/hwmon/dell-smm-hwmon.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/d

Re: [PATCH] drivers/media/rc: postpone kfree(rc_dev)

2016-03-21 Thread Mauro Carvalho Chehab
Hi Max, Em Mon, 21 Mar 2016 12:33:05 +0100 Max Kellermann escreveu: > CONFIG_DEBUG_KOBJECT_RELEASE found this bug. Please, always send us your Signed-off-by on your patches, as described at: https://linuxtv.org/wiki/index.php/Development:_Submitting_Patches#Developer.27s_Certificate_of

[PATCH v2 6/6] xen: add xen_pin_vcpu() to support calling functions on a dedicated pcpu

2016-03-21 Thread Juergen Gross
Some hardware models (e.g. Dell Studio 1555 laptops) require calls to the firmware to be issued on cpu 0 only. As Dom0 might have to use these calls, add xen_pin_vcpu() to achieve this functionality. In case either the domain doesn't have the privilege to make the related hypercall or the hypervis

[PATCH v2 0/6] Support calling functions on dedicated physical cpu

2016-03-21 Thread Juergen Gross
Some hardware (e.g. Dell Studio laptops) require special functions to be called on physical cpu 0 in order to avoid occasional hangs. When running as dom0 under Xen this could be achieved only via special boot parameters (vcpu pinning) limiting the hypervisor in it's scheduling decisions. This pat

Re: [PATCH] drivers/media/media-devnode: add missing mutex lock in error handler

2016-03-21 Thread Mauro Carvalho Chehab
Em Mon, 21 Mar 2016 12:33:12 +0100 Max Kellermann escreveu: Please, always send us your Signed-off-by on your patches, as described at: https://linuxtv.org/wiki/index.php/Development:_Submitting_Patches#Developer.27s_Certificate_of_Origin_1.1 Also, please add a description to the patch

Re: [PATCH] drivers/media/rc: postpone kfree(rc_dev)

2016-03-21 Thread Max Kellermann
On 2016/03/21 13:24, Mauro Carvalho Chehab wrote: > Please, always send us your Signed-off-by on your patches, as described at: > > https://linuxtv.org/wiki/index.php/Development:_Submitting_Patches#Developer.27s_Certificate_of_Origin_1.1 Sorry, I forgot this, and remembered only right aft

[PATCH v2 3/6] dcdbas: make use of smp_call_sync_on_phys_cpu()

2016-03-21 Thread Juergen Gross
Use smp_call_sync_on_phys_cpu() to raise SMI on cpu 0. Signed-off-by: Juergen Gross --- drivers/firmware/dcdbas.c | 46 -- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/drivers/firmware/dcdbas.c b/drivers/firmware/dcdbas.c index 829ee

Re: [PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup

2016-03-21 Thread Javier Martinez Canillas
On 03/21/2016 09:13 AM, Javier Martinez Canillas wrote: > [adding Bjorn Andersson who is the author of commit 6261b06de565] > I got a user invalid error when sending to the email address that Bjorn used in that commit, so I'm re-sending to his latest address. Sorry for the spam. Bjorn, here is t

[RESEND PATCH 0/3 v4] powercap, intel_rapl, implement time window checks

2016-03-21 Thread Prarit Bhargava
This was submitted back in December and not picked up after review. P. -8< The Intel ASDM provides a maximum time window that can be specified when setting a time window in the RAPL driver. While the ASDM doesn't explicitly provide a minimum time window value, it does provide a minimum t

[PATCH] drivers/media/rc: postpone kfree(rc_dev)

2016-03-21 Thread Max Kellermann
CONFIG_DEBUG_KOBJECT_RELEASE found this bug. Signed-off-by: Max Kellermann --- drivers/media/rc/rc-main.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 1042fa3..cb3e8db 100644 --- a/drivers/media/rc/rc-m

[PATCH] drivers/media/media-devnode: add missing mutex lock in error handler

2016-03-21 Thread Max Kellermann
Signed-off-by: Max Kellermann --- drivers/media/media-devnode.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/media-devnode.c b/drivers/media/media-devnode.c index cea35bf..4d7e8dd 100644 --- a/drivers/media/media-devnode.c +++ b/drivers/media/media-devnode.c @@ -266,8 +

[PATCH v2 5/6] virt, sched: add cpu pinning to smp_call_sync_on_phys_cpu()

2016-03-21 Thread Juergen Gross
Add generic virtualization support for pinning the current vcpu to a specified physical cpu. As this operation isn't performance critical (a very limited set of operations like BIOS calls and SMIs is expected to need this) just add a hypervisor specific indirection. Such a pinning should last as s

[PATCH 2/4 v2] drm: introduce drm_connector_register_all() helper

2016-03-21 Thread Alexey Brodkin
As a pair to already existing drm_connector_unregister_all() we're adding generic implementation of what is already done in some drivers. Once this helper is implemented we'll be ready to switch existing driver-specific implementations with the generic one. Signed-off-by: Alexey Brodkin Cc: Dani

[PATCH 1/3 v4] powercap, intel_rapl, implement get_max_time_window

2016-03-21 Thread Prarit Bhargava
The MSR_PKG_POWER_INFO register (Intel ASDM, section 14.9.3 "Package RAPL Domain") provides a maximum time window which the system can support. This window is read-only and is currently not examined when setting the time windows for the package. This patch implements get_max_time_window_us() and

[PATCH 3/3 v3] powercap, intel_rapl, Add ignore_max_time_window_check module parameter for broken BIOSes

2016-03-21 Thread Prarit Bhargava
Some systems erroneously set the maximum time window field of MSR_PKG_POWER_INFO register to 0. This results in a user not being able to set the time windows for the package. In some cases, however, RAPL will still continue to work with a small window (albeit through some trial and error). This

[PATCH v2 2/6] smp: add function to execute a function synchronously on a physical cpu

2016-03-21 Thread Juergen Gross
On some hardware models (e.g. Dell Studio 1555 laptop) some hardware related functions (e.g. SMIs) are to be executed on physical cpu 0 only. Instead of open coding such a functionality multiple times in the kernel add a service function for this purpose. This will enable the possibility to take sp

[PATCH] drivers/media/media-devnode: add missing mutex lock in error handler

2016-03-21 Thread Max Kellermann
All accesses to media_devnode_nums must be protected with media_devnode_lock. The error code path in media_devnode_register() did not do this, however. Signed-off-by: Max Kellermann --- drivers/media/media-devnode.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/media-d

[PATCH 2/3 v4] powercap, intel_rapl, implement check for minimum time window

2016-03-21 Thread Prarit Bhargava
Using an small value for the time window results in a bogus value for the time window. For example, [root@intel-chiefriver-03 linux]# echo 950 > /sys/devices/virtual/powercap/intel-rapl/intel-rapl\:0/constraint_0_time_window_us; egrep ^ /sys/devices/virtual/powercap/intel-rapl/intel-rapl\:0/cons

[PATCH 3/4 v2] drm: atmel_hldc - use generic drm_connector_register_all() helper

2016-03-21 Thread Alexey Brodkin
This driver used to have its own implementation of connector_register_all() which actually was taken as a prototype of drm_connector_register_all(). Now when drm_connector_register_all() exists reusing it here. And while at it replace atmel_hlcdc_dc_connector_unplug_all() with generic drm_connect

[PATCH v2 1/6] xen: sync xen header

2016-03-21 Thread Juergen Gross
Import the actual version of include/xen/interface/sched.h from Xen. Signed-off-by: Juergen Gross --- include/xen/interface/sched.h | 100 ++ 1 file changed, 82 insertions(+), 18 deletions(-) diff --git a/include/xen/interface/sched.h b/include/xen/interf

[PATCH 0/4 v2] drm: introduce drm_connector_register_all() helper

2016-03-21 Thread Alexey Brodkin
As a pair to already existing drm_connector_unplug_all() (which we'll rename in this series to drm_connector_unregister_all()) we're adding generic implementation of what is already done in some drivers for registering all connectors. After implementation of that new helper we're updating 2 driver

[PATCH 1/4 v2] drm: rename drm_connector_unplug_all() to drm_connector_unregister_all()

2016-03-21 Thread Alexey Brodkin
Current name is a bit misleading because what that helper function really does it calls drm_connector_unregister() for all connectors. This all has nothing to do with hotplugging so let's name things properly. And while at it remove potentially dangerous locking around drm_connector_unregister()

[PATCH 4/4 v2] drm: rcar-du - use generic drm_connector_register_all() helper

2016-03-21 Thread Alexey Brodkin
Now when generic drm_connector_register_all() helper exists we may safely substiture with it driver-specific implementation of connectors plugging in sysfs. Signed-off-by: Alexey Brodkin Cc: Daniel Vetter Cc: David Airlie Cc: Laurent Pinchart Cc: linux-renesas-...@vger.kernel.org --- No chang

Re: [patch] mfd: lp8788-irq: uninitialized variable in irq handler

2016-03-21 Thread Dan Carpenter
Gar, the truth is I'm never going to remember to capitalize patches for you. No one else has that rule. Plus the last two times we had this discussion the patches I was fixing were not capitalized either. git log -p --author="Dan Carpenter" drivers/mfd | grep Fixes | head -n 2 regards, dan carp

[LINUX PATCH 1/2] mtd: Added dummy entry in the spi_transfer structure.

2016-03-21 Thread P L Sai Krishna
This patch does following things. 1. Added dummy entry in the spi_transfer structure. 2. Assigned dummy cycles to dummy member in the transfer structure during read operation. Signed-off-by: P L Sai Krishna --- drivers/mtd/devices/m25p80.c | 1 + include/linux/spi/spi.h | 2 ++ 2 files chan

Re: [PATCH] unicore32: mm: Add missing parameter to arch_vma_access_permitted

2016-03-21 Thread Xuetao Guan
> unicore32 fails to compile with the following errors. > > mm/memory.c: In function ���__handle_mm_fault���: > mm/memory.c:3381: error: > too many arguments to function ���arch_vma_access_permitted��� > mm/gup.c: In function ���check_vma_flags���: > mm/gup.c:456: error: > too many argu

Re: [PATCH] iommu/rockchip: Don't feed NULL res pointers to devres

2016-03-21 Thread Javier Martinez Canillas
Hello Tomeu, On Mon, Mar 21, 2016 at 8:00 AM, Tomeu Vizoso wrote: > If we do, devres prints a "invalid resource" string in the error > loglevel. > > Signed-off-by: Tomeu Vizoso > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup

2016-03-21 Thread Mark Brown
On Mon, Mar 21, 2016 at 09:13:55AM -0300, Javier Martinez Canillas wrote: > On 03/21/2016 08:11 AM, Mark Brown wrote: > > On Sun, Mar 20, 2016 at 11:39:46PM -0300, Javier Martinez Canillas wrote: > >> This patch makes the unresolved parent supplies to be looked up before the > >> regulators late c

Re: [PATCH 0/2] perf/x86/msr: Add some new AMD performance event counters

2016-03-21 Thread Peter Zijlstra
On Mon, Mar 21, 2016 at 11:31:24AM +0100, Borislav Petkov wrote: > On Mon, Mar 21, 2016 at 06:09:31PM +0800, Huang Rui wrote: > > Can you apply these two patches since I sent two months before. Need I > > rebase them? > > Yes, please rebase and test them ontop of 4.6-rc1 once Linus releases it > a

Re: [PATCH 0/2] ARM: uniphier: UniPhier updates for Linux 4.6-rc1 (2nd round)

2016-03-21 Thread Masahiro Yamada
Hi Arnd, 2016-03-21 18:49 GMT+09:00 Arnd Bergmann : > On Monday 21 March 2016 12:59:20 Masahiro Yamada wrote: >> >> I thought you'd include DT updates in the pull requests, >> but you didn't. >> >> Why was next/dt2 missed? > > This is the branch that I pulled in some patches last, I'm going to sen

Re: [PATCH v5 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-03-21 Thread Rob Herring
On Sat, Mar 19, 2016 at 12:00:22AM +0800, Chen-Yu Tsai wrote: > Hi, > > On Fri, Mar 18, 2016 at 11:37 PM, Alexandre TORGUE > wrote: > > Signed-off-by: Alexandre TORGUE > > > > diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt > > b/Documentation/devicetree/bindings/net/stm32-dw

Re: [PATCH] PCI: Restore inclusion of pci/hotplug Kconfig

2016-03-21 Thread Bjorn Helgaas
On Mon, Mar 21, 2016 at 09:26:41AM +0200, Tero Roponen wrote: > Commit e7e127e3c767 ("PCI: Include pci/hotplug Kconfig directly > from pci/Kconfig") added one line to pci/Kconfig. However, for > some mysterious reason it isn't there now, even though there > are no traces of removing it in the git l

Re: [PATCH v3] PCI: ACPI: IA64: fix IO port generic range check

2016-03-21 Thread Rafael J. Wysocki
On Mon, Mar 21, 2016 at 12:12 PM, Lorenzo Pieralisi wrote: > The [0 - 64k] ACPI PCI IO port resource boundary check in: > > acpi_dev_ioresource_flags() > > is currently applied blindly in the ACPI resource parsing to all > architectures, but only x86 suffers from that IO space limitation. > > On a

Re: [PATCH][v5] ACPI / PM: Introduce efi poweroff for HW-full platforms without _S5

2016-03-21 Thread Rafael J. Wysocki
On Sun, Mar 20, 2016 at 3:31 PM, Chen Yu wrote: > The problem is Linux registers pm_power_off = efi_power_off > only if we are in hardware reduced mode. Actually, what we also > want is to do this when ACPI S5 is simply not supported on > non-legacy platforms. Since there will be HW-full mode wher

Re: [PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup

2016-03-21 Thread Javier Martinez Canillas
Hello Mark, On 03/21/2016 09:37 AM, Mark Brown wrote: > On Mon, Mar 21, 2016 at 09:13:55AM -0300, Javier Martinez Canillas wrote: >> On 03/21/2016 08:11 AM, Mark Brown wrote: >>> On Sun, Mar 20, 2016 at 11:39:46PM -0300, Javier Martinez Canillas wrote: > This patch makes the unresolved paren

Re: [PATCH 1/3] mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-21 Thread Michal Hocko
On Mon 21-03-16 15:06:36, Kirill A. Shutemov wrote: > PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} macros were introduced *long* time ago > with promise that one day it will be possible to implement page cache with > bigger chunks than PAGE_SIZE. > > This promise never materialized. And unlikely will. > >

Re: [PATCH 1/2] ASoC: codecs: add TA5720 digital amplifier DT bindings

2016-03-21 Thread Rob Herring
On Fri, Mar 18, 2016 at 06:27:57PM -0500, Andreas Dannenberg wrote: > The Texas Instruments TAS5720L/M device is a high-efficiency mono > Class-D audio power amplifier optimized for high transient power > capability to use the dynamic power headroom of small loudspeakers. > Its digital time divisio

Re: [PATCH 1/5] of: Add vendor prefix for On Tat Industrial Company.

2016-03-21 Thread Rob Herring
On Fri, Mar 18, 2016 at 07:42:42PM -0700, Eric Anholt wrote: > This is the vendor for a 7" DPI panel sold by Adafruit which I'd like > to describe in DT. > > Signed-off-by: Eric Anholt > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) Acked-by

Re: [PATCH 2/5] panel-simple: Add the 7" DPI panel from Adafruit.

2016-03-21 Thread Rob Herring
On Fri, Mar 18, 2016 at 07:42:43PM -0700, Eric Anholt wrote: > This is a basic TFT panel with a 40-pin FPC connector on it. The > specification doesn't define timings, but the Adafruit instructions > were setting up 800x480 CVT. > > Signed-off-by: Eric Anholt > --- > .../bindings/display/panel/

Re: [PATCH] net: phy: at803x: don't depend on GPIOLIB

2016-03-21 Thread Sebastian Frias
Hi Uwe, On 03/18/2016 08:12 PM, Uwe Kleine-König wrote: > Hello Sebastian, > > On Fri, Mar 18, 2016 at 04:56:21PM +0100, Sebastian Frias wrote: >> On 03/18/2016 01:54 PM, Uwe Kleine-König wrote: >>> From a driver perspecitive, it would be nice if devm_gpiod_get_optional >>> returned NULL iff the

[PATCH 2/3] intel_idle, Introduce cstate limits and fix hardware cstate disable value

2016-03-21 Thread Prarit Bhargava
Some Skylake Intel i7-6700HQ processors have cstates limited by MSR_PKG_CST_CONFIG_CONTROL (0xE2), which specifies the lowest processor-specific C-state code name (consuming the least power). The intel_idle driver does not query this MSR to see if states are limited by hardware. In the case of th

[PATCH 1/3] idle, rename MSR_NHM_SNB_PKG_CST_CFG_CTL to MSR_PKG_CST_CONFIG_CONTROL

2016-03-21 Thread Prarit Bhargava
MSR 0xE2 is not a Nehalem specific register and is used by newer processors. This patch renames the processor to the name given in the Intel SDM [1] [1] http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html Cc: x...@kernel.org Cc: Len Brown Cc: "Peter

[PATCH 3/3] cpuidle, Prevent users from enabling cstates that are disabled in Hardware

2016-03-21 Thread Prarit Bhargava
The current codebase allows a user to enable a cstate even though the hardware has disabled it. This patch adds state checking and prevents userspace from setting a hardware disabled cstate to enabled. Signed-off-by: Prarit Bhargava --- drivers/cpuidle/governors/ladder.c |3 +++ drivers/cpu

[PATCH 0/3] idle, Honor Hardware Disabled States

2016-03-21 Thread Prarit Bhargava
Some Intel processors have cstates limited by MSR_PKG_CST_CONFIG_CONTROL (0xE2), which specifies the lowest processor-specific C-state code name (consuming the least power). The intel_idle driver does not query this MSR to see if states are limited by hardware. In the case of the i7-6700HQ the va

Re: [PATCH 2/3] mm, fs: remove remaining PAGE_CACHE_* and page_cache_{get,release} usage

2016-03-21 Thread Michal Hocko
On Mon 21-03-16 15:06:37, Kirill A. Shutemov wrote: > Mostly direct substitution with occasional adjustment or removing > outdated comments. > > Signed-off-by: Kirill A. Shutemov I haven't spotted anything wrong here Acked-by: Michal Hocko > --- > Documentation/filesystems/cramfs.txt

Re: [PATCH 3/3] mm: drop PAGE_CACHE_* and page_cache_{get,release} definition

2016-03-21 Thread Michal Hocko
On Mon 21-03-16 15:06:38, Kirill A. Shutemov wrote: > All users gone. We can remove these macros. > > Signed-off-by: Kirill A. Shutemov \o/ Acked-by: Michal Hocko Thanks! > --- > include/linux/pagemap.h | 15 --- > 1 file changed, 15 deletions(-) > > diff --git a/include/linux/

[LINUX PATCH 2/2] spi:zynqmp:gqspi: Added separate dummy entry.

2016-03-21 Thread P L Sai Krishna
This patch sends dummy as a separate entry. Break the Address+Cmd+dummy transfer into multiple transfers. Address+Cmd as one transfer. Dummy cycles as another transfer. As per the controller spec, immediate data field of dummy entry in the GenFifo represent dummy cycles. Bus width for dummy cycles

Re: [PATCH 4/5] drm/vc4: Add DPI driver

2016-03-21 Thread Rob Herring
On Fri, Mar 18, 2016 at 07:42:45PM -0700, Eric Anholt wrote: > The DPI interface involves taking a ton of our GPIOs to be used as > outputs, and routing display signals over them in parallel. > > Signed-off-by: Eric Anholt > --- > .../devicetree/bindings/display/brcm,bcm-vc4.txt | 67 +++ > d

Re: [PATCH v2 00/14] lib/mpi: bug fixes and cleanup

2016-03-21 Thread Herbert Xu
On Sun, Mar 20, 2016 at 01:31:21PM +0100, Nicolai Stange wrote: > The original v1 can be found here: > > > http://lkml.kernel.org/g/1458237606-4954-1-git-send-email-nicsta...@gmail.com > > > While v1 (hopefully) fixed some issues in mpi_write_sgl() and > mpi_read_buffer() introduced by > co

[GIT PULL] MMC for v.4.6

2016-03-21 Thread Ulf Hansson
Hi Linus, Here's the PR for MMC v4.6. Details about the highlights are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit fc77dbd34c5c99bce46d40a2491937c3bcbd10af: Linux 4.5-rc6 (2016-02-28 08:41:20 -0800) are available in th

Re: [PATCH 2/4 v3] drm: Add DT bindings documentation for ARC PGU display controller

2016-03-21 Thread Rob Herring
On Fri, Mar 11, 2016 at 06:42:37PM +0300, Alexey Brodkin wrote: > This add DT bindings documentation for ARC PGU display controller. > > Signed-off-by: Alexey Brodkin > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Cc: Ian Campbell > Cc: Kumar Gala > Cc: David Airlie > Cc: dri-de...

Re: [LINUX PATCH 1/2] mtd: Added dummy entry in the spi_transfer structure.

2016-03-21 Thread Mark Brown
On Mon, Mar 21, 2016 at 05:50:08PM +0530, P L Sai Krishna wrote: > This patch does following things. > 1. Added dummy entry in the spi_transfer structure. > 2. Assigned dummy cycles to dummy member in the transfer > structure during read operation. Please try to follow the patch submission process

Re: [PATCH v2 00/14] lib/mpi: bug fixes and cleanup

2016-03-21 Thread Nicolai Stange
Herbert Xu writes: > On Sun, Mar 20, 2016 at 01:31:21PM +0100, Nicolai Stange wrote: >> The original v1 can be found here: >> >> >> http://lkml.kernel.org/g/1458237606-4954-1-git-send-email-nicsta...@gmail.com >> >> >> While v1 (hopefully) fixed some issues in mpi_write_sgl() and >> mpi_rea

Re: [PATCH 3/4 v2] drm: atmel_hldc - use generic drm_connector_register_all() helper

2016-03-21 Thread Boris Brezillon
On Mon, 21 Mar 2016 15:28:39 +0300 Alexey Brodkin wrote: > This driver used to have its own implementation of connector_register_all() > which actually was taken as a prototype of drm_connector_register_all(). > > Now when drm_connector_register_all() exists reusing it here. > > And while at it

Re: [PATCH] regmap: fix documentation to match code

2016-03-21 Thread Rob Herring
On Thu, Mar 17, 2016 at 06:23:40PM +0100, Arnd Bergmann wrote: > The regmap binding talks about one thing, which is register > endianess, and it gets almost every aspect of it wrong. > > This replaces the current text of the file with a version > that makes more sense and that matches what we impl

RE: drivers/ntb/hw/amd/ntb_hw_amd.c:367:29: sparse: cast removes address space of expression

2016-03-21 Thread Allen Hubbe
> >> drivers/ntb/hw/amd/ntb_hw_amd.c:367:29: sparse: cast removes address space > >> of > expression >drivers/ntb/hw/amd/ntb_hw_amd.c:427:31: sparse: cast removes address space > of > expression >360static int amd_ntb_peer_db_addr(struct ntb_dev *ntb, >361

Re: [PATCH] drivers/rtc/rtc-mcp795.c: add devicetree support

2016-03-21 Thread Rob Herring
On Mon, Mar 21, 2016 at 01:06:10AM +0100, Emil Bartczak wrote: > Add device tree support to the rtc-mcp795 driver. > > Signed-off-by: Emil Bartczak > --- > Documentation/devicetree/bindings/rtc/maxim,mcp795.txt | 11 +++ > drivers/rtc/rtc-mcp795.c | 10 +

Re: [PATCH] rapidio: add RapidIO channelized messaging driver

2016-03-21 Thread kbuild test robot
-channelized-messaging-driver/20160321-195213 coccinelle warnings: (new ones prefixed by >>) >> drivers/rapidio/rio_cm.c:1401:4-9: WARNING: NULL check before freeing >> functions like kfree, debugfs_remove, debugfs_remove_recursive or >> usb_free_urb is not needed. May

[PATCH] rapidio: fix ifnullfree.cocci warnings

2016-03-21 Thread kbuild test robot
drivers/rapidio/rio_cm.c:1401:4-9: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant code to avoid passing NULL values. drivers/rapidio/rio_cm.c:1408:4-9: WARNING: NULL check before

Re: [PATCH 1/4 v2] drm: rename drm_connector_unplug_all() to drm_connector_unregister_all()

2016-03-21 Thread Laurent Pinchart
Hi Alexey, Thank you for the patch. On Monday 21 Mar 2016 15:28:37 Alexey Brodkin wrote: > Current name is a bit misleading because what that helper function > really does it calls drm_connector_unregister() for all connectors. > > This all has nothing to do with hotplugging so let's name things

Re: [PATCH] cpufreq: rockchip: add driver

2016-03-21 Thread Feng Xiao
在 2016/3/21 17:58, Viresh Kumar 写道: On 21-03-16, 10:54, Heiko Stübner wrote: I hadn't seen that yet ... nice that cpufreq-dt now also supports clusters :-) The other part still stands though, as we probably should register the platform-device somewhere else and not in some new special module.

[PATCH RESEND v2 00/14] lib/mpi: bug fixes and cleanup

2016-03-21 Thread Nicolai Stange
This is a resend of v2 with the crypto people properly CC'd. The original v1 can be found here: http://lkml.kernel.org/g/1458237606-4954-1-git-send-email-nicsta...@gmail.com While v1 (hopefully) fixed some issues in mpi_write_sgl() and mpi_read_buffer() introduced by commit 2d4d1eea540b ("l

[PATCH RESEND v2 12/14] lib/mpi: mpi_read_raw_from_sgl(): fix nbits calculation

2016-03-21 Thread Nicolai Stange
The number of bits, nbits, is calculated in mpi_read_raw_from_sgl() as follows: nbits = nbytes * 8; Afterwards, the number of leading zero bits of the first byte get subtracted: nbits -= count_leading_zeros(*(u8 *)(sg_virt(sgl) + lzeros)); However, count_leading_zeros() takes an unsigned lo

Re: [PATCH 4/4 v2] drm: rcar-du - use generic drm_connector_register_all() helper

2016-03-21 Thread Laurent Pinchart
Hi Alexey, Thank you for the patch. On Monday 21 Mar 2016 15:28:40 Alexey Brodkin wrote: > Now when generic drm_connector_register_all() helper exists we may safely s/Now when/Now that a/ > substiture with it driver-specific implementation of connectors plugging in s/substiture with it/substit

[PATCH RESEND v2 09/14] lib/mpi: mpi_read_raw_from_sgl(): replace len argument by nbytes

2016-03-21 Thread Nicolai Stange
Currently, the nbytes local variable is calculated from the len argument as follows: ... mpi_read_raw_from_sgl(..., unsigned int len) { unsigned nbytes; ... if (!ents) nbytes = 0; else nbytes = len - lzeros; ... } Given that nbytes is derived from len in a tr

[PATCH RESEND v2 06/14] lib/mpi: mpi_read_buffer(): optimize skipping of leading zero limbs

2016-03-21 Thread Nicolai Stange
Currently, if the number of leading zeros is greater than fits into a complete limb, mpi_read_buffer() skips them by iterating over them limb-wise. Instead of skipping the high order zero limbs within the loop as shown above, adjust the copying loop's bounds. Signed-off-by: Nicolai Stange --- l

[PATCH RESEND v2 05/14] lib/mpi: mpi_write_sgl(): replace open coded endian conversion

2016-03-21 Thread Nicolai Stange
Currently, the endian conversion from CPU order to BE is open coded in mpi_write_sgl(). Replace this by the centrally provided cpu_to_be*() macros. Signed-off-by: Nicolai Stange --- lib/mpi/mpicoder.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-) diff --gi

[PATCH RESEND v2 14/14] lib/mpi: mpi_read_raw_from_sgl(): fix out-of-bounds buffer access

2016-03-21 Thread Nicolai Stange
Within the copying loop in mpi_read_raw_from_sgl(), the last input SGE's byte count gets artificially extended as follows: if (sg_is_last(sg) && (len % BYTES_PER_MPI_LIMB)) len += BYTES_PER_MPI_LIMB - (len % BYTES_PER_MPI_LIMB); Within the following byte copying loop, this causes reads beyo

Re: [PATCH 2/3] powerpc/powernv: Encapsulate idle preparation steps in a macro

2016-03-21 Thread Shreyas B Prabhu
On 03/19/2016 05:51 AM, Paul Mackerras wrote: > On Fri, Mar 18, 2016 at 08:23:24PM +0530, Shreyas B Prabhu wrote: >> Hi Paul, >> >> On 03/17/2016 04:45 PM, Paul Mackerras wrote: >>> On Mon, Feb 29, 2016 at 05:52:59PM +0530, Shreyas B. Prabhu wrote: Before entering any idle state which can re

[PATCH RESEND v2 11/14] lib/mpi: mpi_read_raw_from_sgl(): purge redundant clearing of nbits

2016-03-21 Thread Nicolai Stange
In mpi_read_raw_from_sgl(), unsigned nbits is calculated as follows: nbits = nbytes * 8; and redundantly cleared later on if nbytes == 0: if (nbytes > 0) ... else nbits = 0; Purge this redundant clearing for the sake of clarity. Signed-off-by: Nicolai Stange --- lib/mpi/mpicode

[PATCH RESEND v2 08/14] lib/mpi: mpi_read_buffer(): fix buffer overflow

2016-03-21 Thread Nicolai Stange
Currently, mpi_read_buffer() writes full limbs to the output buffer and moves memory around to purge leading zero limbs afterwards. However, with commit 9cbe21d8f89d ("lib/mpi: only require buffers as big as needed for the integer") the caller is only required to provid

[PATCH RESEND v2 10/14] lib/mpi: mpi_read_raw_from_sgl(): don't include leading zero SGEs in nbytes

2016-03-21 Thread Nicolai Stange
At the very beginning of mpi_read_raw_from_sgl(), the leading zeros of the input scatterlist are counted: lzeros = 0; for_each_sg(sgl, sg, ents, i) { ... if (/* sg contains nonzero bytes */) break; /* sg contains nothing but zeros here */ ents--; lzeros = 0; } Lat

[PATCH RESEND v2 13/14] lib/mpi: mpi_read_raw_from_sgl(): sanitize meaning of indices

2016-03-21 Thread Nicolai Stange
Within the byte reading loop in mpi_read_raw_sgl(), there are two housekeeping indices used, z and x. At all times, the index z represents the number of output bytes covered by the input SGEs for which processing has completed so far. This includes any leading zero bytes within the most significan

[PATCH RESEND v2 07/14] lib/mpi: mpi_read_buffer(): replace open coded endian conversion

2016-03-21 Thread Nicolai Stange
Currently, the endian conversion from CPU order to BE is open coded in mpi_read_buffer(). Replace this by the centrally provided cpu_to_be*() macros. Copy from the temporary storage on stack to the destination buffer by means of memcpy(). Signed-off-by: Nicolai Stange --- lib/mpi/mpicoder.c | 2

Re: [PATCH] sched: Add preempt checks in preempt_schedule() code

2016-03-21 Thread Steven Rostedt
On Mon, 21 Mar 2016 10:27:46 +0100 Peter Zijlstra wrote: > So no real objection to the patch except this naming. > > It doesn't 'check', it does preempt-latency tracing. So could we rename > this to something like: > > preempt_{dis,en}able_latency() > > or somesuch? What about: preemp

Re: [PATCH 45/71] jfs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-21 Thread Dave Kleikamp
On 03/20/2016 01:40 PM, Kirill A. Shutemov wrote: > PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} macros were introduced *long* time ago > with promise that one day it will be possible to implement page cache with > bigger chunks than PAGE_SIZE. > > This promise never materialized. And unlikely will. > > We

[PATCH 2/6] drivers/media/dvb-core/en50221: postpone release until file is closed

2016-03-21 Thread Max Kellermann
Fixes use-after-free bug which occurs when I disconnect my DVB-S received while VDR is running. Signed-off-by: Max Kellermann --- drivers/media/dvb-core/dvb_ca_en50221.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/media/dvb-core/dvb_ca_en

[PATCH RESEND v2 03/14] lib/mpi: mpi_write_sgl(): purge redundant pointer arithmetic

2016-03-21 Thread Nicolai Stange
Within the copying loop in mpi_write_sgl(), we have if (lzeros) { ... p -= lzeros; y = lzeros; } p = p - (sizeof(alimb) - y); If lzeros == 0, then y == 0, too. Thus, lzeros gets subtracted and added back again to p. Purge this redundancy. Signed-off-by: Nicolai Stange --- li

[PATCH 3/6] drivers/media/media-devnode: clear private_data before put_device()

2016-03-21 Thread Max Kellermann
Callbacks invoked from put_device() may free the struct media_devnode pointer, so any cleanup needs to be done before put_device(). Signed-off-by: Max Kellermann --- drivers/media/media-devnode.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/media-devnode

<    1   2   3   4   5   6   7   8   9   >