Re: [v5,1/8] dt-bindings: mfd: Add retu/tahvo ASIC chips bindings

2017-04-19 Thread Wolfram Sang
On Wed, Apr 12, 2017 at 02:27:52PM -0300, Javier Martinez Canillas wrote: > There are Device Tree source files defining a device node for the > retu/tahvo I2C chip, but there isn't a DT binding document for it. > > Signed-off-by: Javier Martinez Canillas > Acked-by: Rob Herring > Acked-by: Aaro

Re: [v5,2/8] mfd: retu: Drop -mfd suffix from I2C device ID name

2017-04-19 Thread Wolfram Sang
On Wed, Apr 12, 2017 at 02:27:53PM -0300, Javier Martinez Canillas wrote: > It's not correct to encode the subsystem in the I2C device name, so > drop the -mfd suffix. To maintain bisect-ability, change driver and > platform code / DTS users in the same patch. > > Suggested-by: Lee Jones > Signed

Re: [v5,3/8] mfd: retu: Add OF device ID table

2017-04-19 Thread Wolfram Sang
On Wed, Apr 12, 2017 at 02:27:54PM -0300, Javier Martinez Canillas wrote: > The driver doesn't have a struct of_device_id table but supported devices > are registered via Device Trees. This is working on the assumption that a > I2C device registered via OF will always match a legacy I2C device ID a

Re: [v5,4/8] ARM: dts: n8x0: Add vendor prefix to retu node

2017-04-19 Thread Wolfram Sang
On Wed, Apr 12, 2017 at 02:27:55PM -0300, Javier Martinez Canillas wrote: > The retu device node doesn't have a vendor prefix > in its compatible string, fix it by adding one. > > Signed-off-by: Javier Martinez Canillas > Acked-by: Rob Herring > Acked-by: Aaro Koskinen > Acked-by: Tony Lindgren

Re: [PATCH] netfilter: ctnetlink: Make some parameters integer to avoid enum mismatch

2017-04-19 Thread Joe Perches
On Wed, 2017-04-19 at 11:39 -0700, Matthias Kaehlcke wrote: > Not all parameters passed to ctnetlink_parse_tuple() and > ctnetlink_exp_dump_tuple() match the enum type in the signatures of these > functions. Maybe that should be changed/fixed. > Since this is intended change the argument type of

Re: [PATCH v5 5/8] i2c: i2c-cbus-gpio: Add vendor prefix to retu node in example

2017-04-19 Thread Wolfram Sang
On Wed, Apr 12, 2017 at 02:27:56PM -0300, Javier Martinez Canillas wrote: > The example contains a device node for a retu device, but > its compatible string doesn't have a vendor prefix. > > While being there, drop the -mfd suffix since isn't correct. > > Signed-off-by: Javier Martinez Canillas

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-19 Thread Logan Gunthorpe
On 19/04/17 01:31 PM, Jason Gunthorpe wrote: > Try it with VT-D turned on. It shouldn't work or there is a notable > security hole in your platform.. Ah, ok. >>> const struct dma_map_ops *comp_ops = get_dma_ops(completer); >>> const struct dma_map_ops *init_ops = get_dma_ops(initiator

Re: [PATCH v3] usb: dwc3: add disable u2mac linestate check quirk

2017-04-19 Thread Guenter Roeck
On Wed, Apr 19, 2017 at 5:11 AM, William Wu wrote: > This patch adds a quirk to disable USB 2.0 MAC linestate check > during HS transmit. Refer the dwc3 databook, we can use it for > some special platforms if the linestate not reflect the expected > line state(J) during transmission. > > When use

Re: [PATCH] arm64: xen: Implement EFI reset_system callback

2017-04-19 Thread Daniel Kiper
On Wed, Apr 19, 2017 at 08:37:38PM +0100, Matt Fleming wrote: > On Wed, 19 Apr, at 09:29:06PM, Daniel Kiper wrote: > > On Tue, Apr 18, 2017 at 02:46:50PM +0100, Matt Fleming wrote: > > > On Thu, 06 Apr, at 04:55:11PM, Mark Rutland wrote: > > > > > > > > Please, let's keep the Xen knowledge constrai

Re: [PATCH V2] clk: hi6220: Add the hi655x's pmic clock

2017-04-19 Thread Daniel Lezcano
On Wed, Apr 19, 2017 at 09:00:05AM -0700, Stephen Boyd wrote: > On 04/16, Daniel Lezcano wrote: > > On Wed, Apr 12, 2017 at 08:02:45AM -0700, Stephen Boyd wrote: > > > On 04/08, Daniel Lezcano wrote: [ ... ] > > > > + ret = clk_hw_register_clkdev(&hi655x_clk->clk_hw, clk_name, > > > > NULL

[PATCH net v3] bridge: ebtables: fix reception of frames DNAT-ed to bridge device/port

2017-04-19 Thread Linus Lüssing
When trying to redirect bridged frames to the bridge device itself or a bridge port (brouting) via the dnat target then this currently fails: The ethernet destination of the frame is dnat'ed to the MAC address of the bridge device or port just fine. However, the IP code drops it in the beginning o

[PATCH 0/5] clk-mvebu: Fine-tuning for four function implementations

2017-04-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Apr 2017 21:45:43 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (5): Use kcalloc() in of_cpu_clk_setup() Adjust two checks for null pointers in of_cpu_clk_setup() Use kcalloc() in two functions A

[PATCH 1/5] clk: mvebu: Use kcalloc() in of_cpu_clk_setup()

2017-04-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Apr 2017 20:15:21 +0200 Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "kcalloc". This issue was detected by using the Coccinelle software. Signed-o

[PATCH] perf, tools: Fix display of data source snoop indication

2017-04-19 Thread Andi Kleen
From: Andi Kleen perf mem report doesn't display the data source snoop indication correctly. In the kernel API the definition is but the table used by the perf tools exchanged Hit and Miss "None", "Miss", "Hit", Fix the table in perf. Cc: eran...@google.com Signed-off

Re: irq/affinity: Fix extra vecs calculation

2017-04-19 Thread Andrei Vagin
On Wed, Apr 19, 2017 at 01:03:59PM -0400, Keith Busch wrote: > On Wed, Apr 19, 2017 at 09:20:27AM -0700, Andrei Vagin wrote: > > Hi, > > > > Something is wrong with this patch. We run CRIU tests for upstream kernels. > > And we found that a kernel with this patch can't be booted. > > > > https://

[PATCH 2/5] clk: mvebu: Adjust two checks for null pointers in of_cpu_clk_setup()

2017-04-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Apr 2017 20:25:59 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pl

[PATCH 3/5] clk: mvebu: Use kcalloc() in two functions

2017-04-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Apr 2017 21:08:54 +0200 * Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "kcalloc". This issue was detected by using the Coccinelle software.

[PATCH 4/5] clk: mvebu: Adjust two checks for null pointers in kirkwood_fix_sscg_deviation()

2017-04-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Apr 2017 21:17:19 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pl

[GIT PULL] Backlight for v4.11

2017-04-19 Thread Daniel Thompson
Hi Linus Normally pull requests for backlight come from Lee Jones (and will continue to do so) but the bug fixed here is annoying for few people so I'm providing a little holiday cover. The following changes since commit 4f7d029b9bf009fbee76bb10c0c4351a1870d2f3: Linux 4.11-rc7 (2017-04-16 13:0

[PATCH 5/5] clk: mvebu: Delete an unnecessary variable initialisation in kirkwood_fix_sscg_deviation()

2017-04-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Apr 2017 21:31:43 +0200 A pointer is immediately assigned to the local variable "sscg_np". Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/clk/mvebu/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH] netfilter: ctnetlink: Make some parameters integer to avoid enum mismatch

2017-04-19 Thread Matthias Kaehlcke
El Wed, Apr 19, 2017 at 12:41:10PM -0700 Joe Perches ha dit: > On Wed, 2017-04-19 at 11:39 -0700, Matthias Kaehlcke wrote: > > Not all parameters passed to ctnetlink_parse_tuple() and > > ctnetlink_exp_dump_tuple() match the enum type in the signatures of these > > functions. > > Maybe that shoul

Re: [v4.9-rt PATCH] ARM: mm: remove tasklist locking from update_sections_early()

2017-04-19 Thread Grygorii Strashko
On 04/18/2017 07:15 PM, Kees Cook wrote: > On Tue, Apr 18, 2017 at 1:48 PM, Grygorii Strashko > wrote: >> The below backtrace can be observed on -rt kernel with CONFIG_DEBUG_RODATA >> option enabled: >> >> BUG: sleeping function called from invalid context at >> kernel/locking/rtmutex.c:993 >>

Re: [v4.9-rt PATCH] ARM: mm: remove tasklist locking from update_sections_early()

2017-04-19 Thread Kees Cook
On Wed, Apr 19, 2017 at 12:58 PM, Grygorii Strashko wrote: > > > On 04/18/2017 07:15 PM, Kees Cook wrote: >> On Tue, Apr 18, 2017 at 1:48 PM, Grygorii Strashko >> wrote: >>> The below backtrace can be observed on -rt kernel with CONFIG_DEBUG_RODATA >>> option enabled: >>> >>> BUG: sleeping funct

[PATCH] pinctrl: make artpec6 explicitly non-modular

2017-04-19 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/Kconfig:config PINCTRL_ARTPEC6 drivers/pinctrl/Kconfig:bool "Axis ARTPEC-6 pin controller driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is ess

Re: [PATCH 1/2] clk: ti: divider: try to fix ti_clk_register_divider

2017-04-19 Thread Tony Lindgren
* Arnd Bergmann [170419 10:48]: > The newly introduced function is entirely bogus as I found when looking > at this warning: > > drivers/clk/ti/divider.c: In function 'ti_clk_register_divider': > drivers/clk/ti/divider.c:460:8: error: 'reg' may be used uninitialized in > this function [-Werror=m

Re: fs/notify/inotify: slab-out-of-bounds write in strcpy

2017-04-19 Thread Dmitry Vyukov
On Wed, Apr 19, 2017 at 9:31 PM, Dmitry Vyukov wrote: > On Wed, Apr 12, 2017 at 5:58 AM, Andrew Zhu Aday > wrote: >> Hi all, >> >> Running syzkaller we've found a "slab-out-of-bounds write in strcpy" error. >> >> Using kernel 4.10-rc7 from www.kernel.org/pub/linux/kernel/v4.x/testing/ >> >> Unfor

[PATCH] rtc: m41t80: Add proper compatible for rv4162

2017-04-19 Thread Alexandre Belloni
The correct compatible for the rv4162 (microcrystal,rv4162) was not used upstream and so was not added by eb235c561d04e. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-m41t80.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c inde

Re: [PATCH] blutooth: try to improve CONFIG_SERIAL_DEV_BUS dependency

2017-04-19 Thread Marcel Holtmann
Hi Arnd, > With CONFIG_SERIAL_DEV_BUS=m, the hci_serdev.o file does not actually > get built into hci_uart.o as the Makefile doesn't pick it up, leading > to a link error with anything referring to it: > > ERROR: "hci_uart_register_device" [drivers/bluetooth/hci_nokia.ko] undefined! > scripts/Mak

Re: [PATCH v2 1/2] hp-wmi: Do not shadow error values

2017-04-19 Thread Darren Hart
On Wed, Apr 19, 2017 at 07:41:53PM +0200, Carlo Caione wrote: > From: Carlo Caione > > All the helper functions (i.e. hp_wmi_dock_state, hp_wmi_tablet_state, > ...) using hp_wmi_perform_query to perform an HP WMI query shadow the > returned value in case of error. > > We return -EINVAL only when

Re: [PATCH 24/35] drivers/mtd: Convert remaining uses of pr_warning to pr_warn

2017-04-19 Thread Brian Norris
On Thu, Feb 16, 2017 at 11:11:37PM -0800, Joe Perches wrote: > To enable eventual removal of pr_warning > > This makes pr_warn use consistent for drivers/mtd > > Prior to this patch, there were 7 uses of pr_warning and > 31 uses of pr_warn in drivers/mtd > > Signed-off-by: Joe Perches Applied

Re: [PATCH] ieee802154: don't select COMMON_CLK

2017-04-19 Thread Marcel Holtmann
Hi Arnd, > A device driver must not select the COMMON_CLK subsystem, as that conflicts > with platforms that provide a legacy implementation of the clk API: > > drivers/clk/clk.o: In function `clk_enable': > clk.c:(.text.clk_enable+0x0): multiple definition of `clk_enable' > arch/arm/mach-sa1100/

Re: [PATCH 2/2] hp-wmi: Fix detection for dock and tablet mode

2017-04-19 Thread Darren Hart
On Wed, Apr 19, 2017 at 07:23:39PM +0300, Andy Shevchenko wrote: > On Fri, Apr 14, 2017 at 2:07 AM, Darren Hart wrote: > > On Thu, Apr 13, 2017 at 10:09:43PM +0200, Carlo Caione wrote: > >> On Thu, Apr 13, 2017 at 8:21 PM, Darren Hart wrote: > >> > On Sun, Apr 09, 2017 at 03:56:08PM +0200, Carlo

[v4.9-rt PATCH v2] ARM: mm: remove tasklist locking from update_sections_early()

2017-04-19 Thread Grygorii Strashko
The below backtrace can be observed on -rt kernel with CONFIG_DEBUG_RODATA option enabled: BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:993 in_atomic(): 1, irqs_disabled(): 128, pid: 14, name: migration/0 1 lock held by migration/0/14: #0: (tasklist_lock){+

Re: [PATCH] mtd: mtdswap: use MTDSWAP_ECNT_MIN/MAX

2017-04-19 Thread Brian Norris
On Tue, Dec 20, 2016 at 09:54:33PM +0800, Geliang Tang wrote: > Since macros MTDSWAP_ECNT_MIN() and MTDSWAP_ECNT_MAX() have been > defined in mtdswap.c, use them instead of open-coding. > > Signed-off-by: Geliang Tang Applied to l2-mtd.git

Re: [PATCH v1] platform/x86: hp-wireless: reuse module_acpi_driver

2017-04-19 Thread Darren Hart
On Wed, Apr 19, 2017 at 10:27:31PM +0300, Andy Shevchenko wrote: > There is a macro to register and unregister modules in simple cases, > Let's use it and clean up the driver. > > Cc: Alex Hung > Signed-off-by: Andy Shevchenko Thanks Andy, Reviewed-by: Darren Hart (VMware) -- Darren Hart VM

[PATCH] soc: brcmstb: enable drivers for ARM64 also

2017-04-19 Thread Markus Mayer
From: Markus Mayer We enable the BRCMSTB SoC drivers not only for ARM, but also ARM64. Signed-off-by: Markus Mayer --- drivers/soc/bcm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/bcm/Kconfig b/drivers/soc/bcm/Kconfig index a39b0d5..b3834b9 100644 ---

Re: [PATCH 1/3] drm/omap: displays: panel-dpi: add backlight dependency

2017-04-19 Thread Laurent Pinchart
Hi Arnd, Thank you for the patch. On Wednesday 19 Apr 2017 19:59:17 Arnd Bergmann wrote: > The panel driver gained support for backlight but fails to link now > when that is disabled: > > drivers/gpu/drm/omapdrm/displays/panel-dpi.o: In function > `panel_dpi_probe_of': panel-dpi.c:(.text.panel_d

[PATCH 1/3] ARM: dts: imx6qdl-nitrogen6_max: fix rv4162 compatible

2017-04-19 Thread Alexandre Belloni
The rv4162 vendor is microcrystal, not ST. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi index bad3

Re: [PATCH 1/1] selftests: breakpoints: allow to cross-compile for aarch64/arm64

2017-04-19 Thread Shuah Khan
On 04/19/2017 11:31 AM, Fathi Boudra wrote: > gentle ping > > On 22 March 2017 at 20:04, Fathi Boudra wrote: >> To build breakpoint_test_arm64, ARCH value is only tested for "aarch64". >> It covers only the native build because it's computed from uname -m output. >> For cross-compilation, ARCH is

[PATCH 2/3] ARM: dts: imx6qdl-nitrogen6_som2: fix rv4162 compatible

2017-04-19 Thread Alexandre Belloni
The rv4162 vendor is microcrystal, not ST. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx6qdl-nitrogen6_som2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6_som2.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6_som2.dtsi index 5

[PATCH 3/3] ARM: dts: imx7d-nitrogen7: fix rv4162 compatible

2017-04-19 Thread Alexandre Belloni
The rv4162 compatbile string is missing the vendor part, add it. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx7d-nitrogen7.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7d-nitrogen7.dts b/arch/arm/boot/dts/imx7d-nitrogen7.dts index 5d9

Re: [PATCH v4 1/1] pwm: pca9685: fix gpio-only operation.

2017-04-19 Thread Mika Westerberg
On Tue, Apr 18, 2017 at 11:52:49AM -0400, Sven Van Asbroeck wrote: > > __maybe_unused and remove ugly #ifdef:ery. > > If this works on non- CONFIG_PM systems, I'm all for it ! > Grepping the drivers/ directory, I see that some drivers use > #ifdef CONFIG_PM, some use __maybe_unused for runtime_pm.

Re: [PATCH v2 1/2] hp-wmi: Do not shadow error values

2017-04-19 Thread Carlo Caione
On Wed, Apr 19, 2017 at 10:11 PM, Darren Hart wrote: > On Wed, Apr 19, 2017 at 07:41:53PM +0200, Carlo Caione wrote: >> From: Carlo Caione >> >> All the helper functions (i.e. hp_wmi_dock_state, hp_wmi_tablet_state, >> ...) using hp_wmi_perform_query to perform an HP WMI query shadow the >> retur

Re: [PATCH 2/2] pid_ns: Introduce ioctl to set vector of ns_last_pid's on ns hierarhy

2017-04-19 Thread Serge E. Hallyn
Quoting Kirill Tkhai (ktk...@virtuozzo.com): > On implementing of nested pid namespaces support in CRIU > (checkpoint-restore in userspace tool) we run into > the situation, that it's impossible to create a task with > specific NSpid effectively. After commit 49f4d8b93ccf > "pidns: Capture the user

Re: [PATCH] soc: bcm: brcmstb: Correctly match 7435 SoC

2017-04-19 Thread Gregory Fong
On Wed, Apr 19, 2017 at 10:01 AM, Florian Fainelli wrote: > Remove the duplicate brcm,bcm7425-sun-top-ctrl compatible string and > replace it with brcm,bcm7435-sun-top-ctrl which was intentend. s/intentend/intended/ > > Fixes: bd0faf08dc7f ("soc: bcm: brcmstb: Match additional compatible strings

[PATCH] ARM: dts: am335x-phycore-som: fix rv4162 compatible

2017-04-19 Thread Alexandre Belloni
The rv4162 compatbile string is missing the vendor part, add it. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/am335x-phycore-som.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am335x-phycore-som.dtsi b/arch/arm/boot/dts/am335x-phycore-som.dt

Re: [PATCH V15 01/11] acpi: apei: read ack upon ghes record consumption

2017-04-19 Thread Baicar, Tyler
On 4/19/2017 12:31 PM, Borislav Petkov wrote: On Tue, Apr 18, 2017 at 05:05:13PM -0600, Tyler Baicar wrote: A RAS (Reliability, Availability, Serviceability) controller may be a separate processor running in parallel with OS execution, and may generate error records for consumption by the OS. If

[PATCH] hp-wmi: Do not shadow error values

2017-04-19 Thread Carlo Caione
From: Carlo Caione All the helper functions (i.e. hp_wmi_dock_state, hp_wmi_tablet_state, ...) using hp_wmi_perform_query to perform an HP WMI query shadow the returned value in case of error. We return -EINVAL only when the HP WMI query returns a positive value (the specific error code) to not

Re: [PATCH 4.10 00/69] 4.10.12-stable review

2017-04-19 Thread Shuah Khan
On 04/19/2017 08:36 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.10.12 release. > There are 69 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

[PATCH] FS-Cache: print hexadecimal value for special cookies type

2017-04-19 Thread Jérémy Lefaure
When building object-list.o, gcc 6 raises a warning on the sprintf call in fscache_objlist_show: CC fs/fscache/object-list.o fs/fscache/object-list.c: In function ‘fscache_objlist_show’: fs/fscache/object-list.c:265:19: warning: ‘sprintf’ may write a terminating nul past the end of the dest

Re: [PATCH 4.9 00/69] 4.9.24-stable review

2017-04-19 Thread Shuah Khan
On 04/19/2017 08:42 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.24 release. > There are 69 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [PATCH 1/3] drm/omap: displays: panel-dpi: add backlight dependency

2017-04-19 Thread Arnd Bergmann
On Wed, Apr 19, 2017 at 10:21 PM, Laurent Pinchart wrote: >> >> This adds a dependency like we have for the other panel drivers. > > I believe the dependency should be made optional. DPI panels that don't need > backlight control should be supported by a kernel that has backlight support > compile

Re: [PATCH 4.4 00/45] 4.4.63-stable review

2017-04-19 Thread Shuah Khan
On 04/19/2017 08:55 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.63 release. > There are 45 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [PATCH v1 1/2] gpio: gpio-wcove: fix GPIO irq status mask

2017-04-19 Thread Andy Shevchenko
On Fri, Apr 14, 2017 at 8:29 PM, wrote: > From: Kuppuswamy Sathyanarayanan > > According to Whiskey cove PMIC spec, bit 7 of GPIOIRQ0_REG belongs to cove -> Cove > battery IO. So we should skip this bit when checking for GPIO irq pending irq -> IRQ > status. Otherwise, wcove_gpio_irq_handler(

Re: [PATCH V15 01/11] acpi: apei: read ack upon ghes record consumption

2017-04-19 Thread Borislav Petkov
On Wed, Apr 19, 2017 at 02:31:13PM -0600, Baicar, Tyler wrote: > Will do. You don't necessarily have to reply with "will do" if you agree with the review. Also, please wait until I've gone through the whole pile before sending it again. Thanks. -- Regards/Gruss, Boris. Good mailing practi

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-19 Thread Jason Gunthorpe
On Wed, Apr 19, 2017 at 01:41:49PM -0600, Logan Gunthorpe wrote: > > But.. it could point to a GPU and the GPU struct device could have a > > proxy dma_ops like Dan pointed out. > > Seems a bit awkward to me that in order for the intended use case, you > have to proxy the dma_ops. I'd probably st

RE: [PATCH net-next] i40evf: hide unused variable

2017-04-19 Thread Keller, Jacob E
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Wednesday, April 19, 2017 10:30 AM > To: Kirsher, Jeffrey T > Cc: Arnd Bergmann ; Pujari, Bimmy > ; Duyck, Alexander H > ; Williams, Mitch A > ; Keller, Jacob E ; > Brady, > Alan ; Joe Perches ; Singhai, Anjali > ;

[PATCH v2 05/11] soc/fsl/qbman: Drop L1_CACHE_BYTES compile time check

2017-04-19 Thread Roy Pledge
From: Claudiu Manoil Not relevant and arch dependent. Overkill for PPC. Signed-off-by: Claudiu Manoil Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/dpaa_sys.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/soc/fsl/qbman/dpaa_sys.h b/drivers/soc/fsl/qbman/dpaa_sys.h index

Re: [PATCH] fs: compat: Remove warning from COMPATIBLE_IOCTL

2017-04-19 Thread Arnd Bergmann
On Wed, Apr 19, 2017 at 8:14 PM, Matthias Kaehlcke wrote: > El Tue, Apr 04, 2017 at 11:07:20AM -0700 Matthias Kaehlcke ha dit: > >> From: Mark Charlebois >> >> cmd in COMPATIBLE_IOCTL is always a u32, so cast it so there isn't a >> warning about an overflow in XFORM. >> >> From: Mark Charlebois

[PATCH v2 00/11] soc/fsl/qbman: Enable QBMan on ARM Platforms

2017-04-19 Thread Roy Pledge
This patch series enables DPAA1 QBMan devices for ARM and ARM64 architectures. This allows the LS1043A and LS1046A to use QBMan functionality. Changes since v1: Reworked private memory allocations to use shared-dma-pool on ARM platforms Claudiu Manoil (2): soc/fsl/qbman: Drop L1_CACHE_BYTES com

[PATCH v2 10/11] soc/fsl/qbman: Add missing headers on ARM

2017-04-19 Thread Roy Pledge
From: Claudiu Manoil Unlike PPC builds, ARM builds need following headers explicitly: +#include for ioread32be() +#includefor udelay() Signed-off-by: Claudiu Manoil Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/dpaa_sys.h | 2 ++ 1 file changed, 2 insertions(+)

[PATCH v2 11/11] fsl/soc/qbman: Enable FSL_LAYERSCAPE config on ARM

2017-04-19 Thread Roy Pledge
From: Madalin Bucur Signed-off-by: Madalin Bucur Signed-off-by: Claudiu Manoil [Stuart: changed to use ARCH_LAYERSCAPE] Signed-off-by: Stuart Yoder Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/

[PATCH v2 09/11] soc/fsl/qbman: different register offsets on ARM

2017-04-19 Thread Roy Pledge
From: Madalin Bucur Signed-off-by: Madalin Bucur Signed-off-by: Claudiu Manoil Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman.c | 22 ++ drivers/soc/fsl/qbman/qman.c | 38 ++ 2 files changed, 60 insertions(+) diff --git a/driv

[PATCH 1/1] netvsc: Deal with rescinded channels correctly

2017-04-19 Thread kys
From: K. Y. Srinivasan We will not be able to send packets over a channel that has been rescinded. Make necessary adjustments so we can properly cleanup even when the channel is rescinded. This issue can be trigerred in the NIC hot-remove path. Signed-off-by: K. Y. Srinivasan --- drivers/net/h

[PATCH v2 06/11] soc/fsl/qbman: Fix ARM32 typo

2017-04-19 Thread Roy Pledge
From: Valentin Rothberg The Kconfig symbol for 32bit ARM is 'ARM', not 'ARM32'. Signed-off-by: Valentin Rothberg Signed-off-by: Claudiu Manoil Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/dpaa_sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qb

[PATCH v2 02/11] soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations

2017-04-19 Thread Roy Pledge
Use the shared-memory-pool mechanism for frame queue descriptor and packed frame descriptor record area allocations. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman_ccsr.c | 136 +- drivers/soc/fsl/qbman/qman_priv.h | 4 +- drivers/soc/fsl/qbman/qma

[PATCH v2 08/11] soc/fsl/qbman: add QMAN_REV32

2017-04-19 Thread Roy Pledge
From: Madalin Bucur Add revision 3.2 of the QBMan block. This is the version for LS1043A and LS1046A SoCs. Signed-off-by: Madalin Bucur Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman_ccsr.c | 2 ++ drivers/soc/fsl/qbman/qman_priv.h | 1 + 2 files changed, 3 insertions(+) diff --gi

[PATCH v2 01/11] soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations

2017-04-19 Thread Roy Pledge
Use the shared-memory-pool mechanism for free buffer proxy record area allocation. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman_ccsr.c | 35 ++- drivers/soc/fsl/qbman/bman_priv.h | 3 +++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/

[PATCH v2 07/11] soc/fsl/qbman: Rework ioremap() calls for ARM/PPC

2017-04-19 Thread Roy Pledge
Rework ioremap() for PPC and ARM. The PPC devices require a non-coherent mapping while ARM will work with a non-cachable/write combine mapping. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman_portal.c | 16 +--- drivers/soc/fsl/qbman/qman_portal.c | 16 +--- 2 fi

[PATCH v2 04/11] soc/fsl/qbman: Drop set/clear_bits usage

2017-04-19 Thread Roy Pledge
From: Madalin Bucur Replace PPC specific set/clear_bits API with standard bit twiddling so driver is portalable outside PPC. Signed-off-by: Madalin Bucur Signed-off-by: Claudiu Manoil Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman.c | 2 +- drivers/soc/fsl/qbman/qman.c | 8

[PATCH v2 03/11] dt-bindings: soc/fsl: Update reserved memory binding for QBMan

2017-04-19 Thread Roy Pledge
Updates the QMan and BMan device tree bindings for reserved memory nodes. This makes the reserved memory allocation compatiable with the shared-dma-pool usage. Signed-off-by: Roy Pledge --- Documentation/devicetree/bindings/soc/fsl/bman.txt | 11 ++- Documentation/devicetree/bindings/soc

RE: [PATCH 1/1] netvsc: Deal with rescinded channels correctly

2017-04-19 Thread KY Srinivasan
> -Original Message- > From: k...@exchange.microsoft.com [mailto:k...@exchange.microsoft.com] > Sent: Wednesday, April 19, 2017 1:49 PM > To: da...@davemloft.net; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com; j

Re: [PATCH] MAINTAINERS: change email address from atmel.com to wedev4u.fr

2017-04-19 Thread Brian Norris
On Wed, Apr 19, 2017 at 10:43:52PM +0200, Cyrille Pitchen wrote: > From: Cyrille Pitchen > > Switch to my alternative address as primary address. > > Signed-off-by: Cyrille Pitchen > --- > > Hi all, > > I still work at Atmel/Microchip at least for few more months but currently > my Atmel acco

[PATCH net-next 1/1] netvsc: Deal with rescinded channels correctly

2017-04-19 Thread kys
From: K. Y. Srinivasan We will not be able to send packets over a channel that has been rescinded. Make necessary adjustments so we can properly cleanup even when the channel is rescinded. This issue can be trigerred in the NIC hot-remove path. Signed-off-by: K. Y. Srinivasan --- drivers/net/h

Re: [PATCH v2] kernel: drm/vmwgfx: limit the number of mip levels in vmw_gb_surface_define_ioctl()

2017-04-19 Thread Sinclair Yeh
Thanks Vladis! Reviewed-by: Sinclair Yeh On Thu, Apr 06, 2017 at 02:33:40PM +0200, Vladis Dronov wrote: > The 'req->mip_levels' parameter in vmw_gb_surface_define_ioctl() is > a user-controlled 'uint32_t' value which is used as a loop count limit. > This can lead to a kernel lockup and DoS. Add

Re: [PATCH] hp-wmi: Do not shadow error values

2017-04-19 Thread Darren Hart
On Wed, Apr 19, 2017 at 10:36:39PM +0200, Carlo Caione wrote: > From: Carlo Caione > > All the helper functions (i.e. hp_wmi_dock_state, hp_wmi_tablet_state, > ...) using hp_wmi_perform_query to perform an HP WMI query shadow the > returned value in case of error. > > We return -EINVAL only when

Re: [PATCH v7 1/4] mtd: spi-nor: introduce SPI 1-2-2 and SPI 1-4-4 protocols

2017-04-19 Thread Cyrille Pitchen
Hi Marek, can we close the review on patch 1 and 3, please? I would like to merge into the spi-nor tree then prepare the PR to brian for v4.12. Best regards, Cyrille Le 19/04/2017 à 22:12, Cyrille Pitchen a écrit : > Le 19/04/2017 à 01:02, Marek Vasut a écrit : >> On 04/19/2017 12:51 AM, Cyrill

Re: [PATCH v7 3/4] mtd: spi-nor: introduce Double Transfer Rate (DTR) SPI protocols

2017-04-19 Thread Cyrille Pitchen
Hi Marek, Le 19/04/2017 à 01:05, Marek Vasut a écrit : > On 04/19/2017 12:51 AM, Cyrille Pitchen wrote: >> This patch introduces support to Double Transfer Rate (DTR) SPI protocols. >> DTR is used only for Fast Read operations. >> >> According to manufacturer datasheets, whatever the number of I/O

[PATCH] MAINTAINERS: change email address from atmel.com to wedev4u.fr

2017-04-19 Thread Cyrille Pitchen
From: Cyrille Pitchen Switch to my alternative address as primary address. Signed-off-by: Cyrille Pitchen --- Hi all, I still work at Atmel/Microchip at least for few more months but currently my Atmel account is broken for few weeks now. I thought it would have been fix quickly but apparentl

Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-19 Thread Peter Rosin
On 2017-04-19 15:49, Philipp Zabel wrote: > On Wed, 2017-04-19 at 14:00 +0200, Peter Rosin wrote: > [...] +int mux_control_select(struct mux_control *mux, int state) >>> >>> If we let two of these race, ... >> >> The window for this "race" is positively huge. If there are several >> mux consum

Re: [PATCH v4 04/18] dt-bindings: syscon: Add DT bindings documentation for Allwinner syscon

2017-04-19 Thread Rob Herring
On Wed, Apr 12, 2017 at 01:13:46PM +0200, Corentin Labbe wrote: > This patch adds documentation for Device-Tree bindings for the > syscon present in allwinner devices. > > Signed-off-by: Corentin Labbe > --- > .../devicetree/bindings/misc/allwinner,syscon.txt | 19 > +++ > 1

Re: [PATCH] [media] sti: hdmi: improve MEDIA_CEC_NOTIFIER dependency

2017-04-19 Thread Hans Verkuil
Hi Arnd, On 19/04/17 18:59, Arnd Bergmann wrote: > When the media subsystem is built as a loadable module, a built-in > DRM driver cannot use the cec notifiers: > > drivers/gpu/drm/sti/sti_hdmi.o: In function `sti_hdmi_remove': > sti_hdmi.c:(.text.sti_hdmi_remove+0x28): undefined reference to >

Re: [PATCH] net: arc_emac: switch to phy_start()/phy_stop()

2017-04-19 Thread Florian Fainelli
On 04/19/2017 07:29 AM, Alexander Kochetkov wrote: > The patch replace phy_start_aneg() with phy_start(). phy_start() call > phy_start_aneg() as a part of startup sequence and allow recover from > error (PHY_HALTED) state. > > Also added call phy_stop() to arc_emac_remove() to stop PHY state machi

Re: [PATCH] of: introduce event tracepoints for dynamic device_node lifecyle

2017-04-19 Thread Tyrel Datwyler
On 04/19/2017 03:13 AM, Michael Ellerman wrote: > Oliver O'Halloran writes: > >> On Wed, Apr 19, 2017 at 2:46 AM, Rob Herring wrote: >>> On Mon, Apr 17, 2017 at 7:32 PM, Tyrel Datwyler >>> wrote: This patch introduces event tracepoints for tracking a device_nodes reference cycle as we

Re: [PATCH] [media] rainshadow-cec: use strlcat instead of strncat

2017-04-19 Thread Hans Verkuil
On 19/04/17 19:15, Arnd Bergmann wrote: > gcc warns about an obviously incorrect use of strncat(): > > drivers/media/usb/rainshadow-cec/rainshadow-cec.c: In function > 'rain_cec_adap_transmit': > drivers/media/usb/rainshadow-cec/rainshadow-cec.c:299:4: error: specified > bound 48 equals the size

[PATCH] cpufreq: intel_pstate: allow trace in passive mode

2017-04-19 Thread Doug Smythies
Allow use of the trace_pstate_sample trace function when the intel_pstate driver is in passive mode. Since the core_busy and scaled_busy fields are not used, and it might be desirable to know which path through the driver was used, either intel_cpufreq_target or intel_cpufreq_fast_switch, re-task t

Re: [PATCH v2 3/3] efi/capsule: Add support for Quark security header

2017-04-19 Thread Andy Shevchenko
On Wed, Apr 19, 2017 at 9:33 PM, Jan Kiszka wrote: > The firmware for Quark X102x prepends a security header to the capsule > which is needed to support the mandatory secure boot on this processor. > The header can be detected by checking for the "_CSH" signature and - > to avoid any GUID conflict

Re: fsl_ifc_nand: are blank pages protected by ECC?

2017-04-19 Thread Boris Brezillon
On Wed, 19 Apr 2017 14:13:32 +0200 Pavel Machek wrote: > Hi! > > We have some problems with fsl_ifc_nand ... in the old kernels, but > this one does not seem to be fixed in v4.11, either. > > UBIFS complains: > > UBIFS error (pid 931): ubifs_scan: corrupt empty space at LEB 282:252630 > UBIFS

Re: [PATCH] net: arc_emac: switch to phy_start()/phy_stop()

2017-04-19 Thread Alexander Kochetkov
> 20 апр. 2017 г., в 0:08, Florian Fainelli написал(а): > > This looks fine. If you wanted to go further, you could move the > phy_connect(), phy_disconnect() calls down to the arc_emac_open() > respectively arc_emac_stop() as this would also allow the PHY device to > be fully suspended when the

Re: [PATCH] soc: brcmstb: enable drivers for ARM64 also

2017-04-19 Thread Florian Fainelli
On 04/19/2017 01:18 PM, Markus Mayer wrote: > From: Markus Mayer > > We enable the BRCMSTB SoC drivers not only for ARM, but also ARM64. This looks fine, can you also put add || BMIPS_GENERIC in there since the driver is also used for these platforms? We may also want a || COMPILE_TEST just to

[PATCH] arm64: prefetch: Change assembly to be compatible with gcc and clang

2017-04-19 Thread Matthias Kaehlcke
clang fails to build with the current code: arch/arm64/include/asm/processor.h:172:15: error: invalid operand in inline asm: 'prfm pldl1keep, ${0:a}' Apparently clang does not support the 'a' modifier. Change the constraint from 'p' ('An operand that is a valid memory address is allowed') to 'Q'

Re: [PATCH 1/2] dt-bindings: hwrng: Add Mediatek hardware random generator bindings

2017-04-19 Thread Rob Herring
On Thu, Apr 13, 2017 at 03:05:07PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > Document the devicetree bindings for Mediatek random number > generator which could be found on MT7623 SoC or other similar > Mediatek SoCs. > > Signed-off-by: Sean Wang > --- > Documentation/devicetr

Re: [PATCH] soc: bcm: brcmstb: Correctly match 7435 SoC

2017-04-19 Thread Florian Fainelli
On 04/19/2017 01:28 PM, Gregory Fong wrote: > On Wed, Apr 19, 2017 at 10:01 AM, Florian Fainelli > wrote: >> Remove the duplicate brcm,bcm7425-sun-top-ctrl compatible string and >> replace it with brcm,bcm7435-sun-top-ctrl which was intentend. > > s/intentend/intended/ > >> >> Fixes: bd0faf08dc

Re: [PATCH v7 1/4] mtd: spi-nor: introduce SPI 1-2-2 and SPI 1-4-4 protocols

2017-04-19 Thread Cyrille Pitchen
Le 19/04/2017 à 01:02, Marek Vasut a écrit : > On 04/19/2017 12:51 AM, Cyrille Pitchen wrote: >> This patch changes the prototype of spi_nor_scan(): its 3rd parameter >> is replaced by a 'struct spi_nor_hwcaps' pointer, which tells the spi-nor >> framework about the actual hardware capabilities sup

Re: [PATCH v7 1/4] mtd: spi-nor: introduce SPI 1-2-2 and SPI 1-4-4 protocols

2017-04-19 Thread Marek Vasut
On 04/19/2017 10:12 PM, Cyrille Pitchen wrote: > Le 19/04/2017 à 01:02, Marek Vasut a écrit : >> On 04/19/2017 12:51 AM, Cyrille Pitchen wrote: >>> This patch changes the prototype of spi_nor_scan(): its 3rd parameter >>> is replaced by a 'struct spi_nor_hwcaps' pointer, which tells the spi-nor >>>

Re: [PATCH v7 3/4] mtd: spi-nor: introduce Double Transfer Rate (DTR) SPI protocols

2017-04-19 Thread Marek Vasut
On 04/19/2017 10:20 PM, Cyrille Pitchen wrote: > Hi Marek, > > Le 19/04/2017 à 01:05, Marek Vasut a écrit : >> On 04/19/2017 12:51 AM, Cyrille Pitchen wrote: >>> This patch introduces support to Double Transfer Rate (DTR) SPI protocols. >>> DTR is used only for Fast Read operations. >>> >>> Accord

Re: [PATCH 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-04-19 Thread Rob Herring
On Thu, Apr 13, 2017 at 03:33:05PM +0800, Minghsiu Tsai wrote: > If the mdp_* nodes are under an mdp sub-node, their corresponding > platform device does not automatically get its iommu assigned properly. > > Fix this by moving the mdp component nodes up a level such that they are > siblings of md

Re: [PATCH] fs: compat: Remove warning from COMPATIBLE_IOCTL

2017-04-19 Thread Matthias Kaehlcke
Hi Arnd, El Wed, Apr 19, 2017 at 10:48:47PM +0200 Arnd Bergmann ha dit: > On Wed, Apr 19, 2017 at 8:14 PM, Matthias Kaehlcke wrote: > > El Tue, Apr 04, 2017 at 11:07:20AM -0700 Matthias Kaehlcke ha dit: > > > >> From: Mark Charlebois > >> > >> cmd in COMPATIBLE_IOCTL is always a u32, so cast it

Re: [GIT PULL 00/16] clocksource: arm_arch_timer: GTDT-based MMIO timer support

2017-04-19 Thread Daniel Lezcano
On Wed, Apr 19, 2017 at 05:44:17PM +0100, Mark Rutland wrote: > Hi Daniel, > > The series enables support for the MMIO architected timers (useful for > system-level idle), which need to be probed via the GTDT when using ACPI. > > I realise this is a little late, but I would very much appreciate

[PATCH] clk: ti: fix linker error with !SOC_OMAP4

2017-04-19 Thread Arnd Bergmann
When none of the OMAP4-generation SoCs are enabled, we run into a link error for am43xx/am43xx: drivers/clk/ti/dpll.o: In function `of_ti_am3_dpll_x2_setup': dpll.c:(.init.text+0xd8): undefined reference to `clkhwops_omap4_dpllmx' This is easily fixed by adding another #ifdef. While looking at t

<    5   6   7   8   9   10   11   12   13   14   >