[PATCH v3 3/8] staging: rtl8192e: Remove unnecessary 'out of memory' message

2017-03-15 Thread sunil . m
From: Suniel Mahesh Fixed the following checkpatch.pl warning: Possible unnecessary 'out of memory' message Signed-off-by: Suniel Mahesh --- Changes for v3: - Split earlier patches into multiple commits for easy review as suggested by Greg K-H - Modified subject and description for better re

[PATCH v3 7/8] staging: rtl8192e: Fix issues reported by checkpatch.pl

2017-03-15 Thread sunil . m
From: Suniel Mahesh Fixed the following checkpatch.pl checks: spaces preferred around that 'operator', spacing provided Logical continuations should be on the previous line, modified accordingly Unnecessary parentheses around variables, removed Please use a blank line after function/struct/union/

[PATCH v3 8/8] staging: rtl8192e: Fix blank lines and space after a cast

2017-03-15 Thread sunil . m
From: Suniel Mahesh Fixed the following checkpatch.pl checks: Blank lines aren't necessary after an open brace '{' and before a close brace '}', removed No space is necessary after a cast, removed Please don't use multiple blank lines, removed Signed-off-by: Suniel Mahesh --- Changes for v3: -

[PATCH v3 4/8] staging: rtl8192e: Rectify pointer comparisions with NULL

2017-03-15 Thread sunil . m
From: Suniel Mahesh This patch simplifies code by replacing explicit NULL comparison with ! or unmark operator Reported by checkpatch.pl for comparison to NULL could be written '!foo' or 'foo' Signed-off-by: Suniel Mahesh --- Changes for v3: - Split earlier patches into multiple commits for ea

[PATCH v3 1/8] staging: rtl8192e: Fix comments as per kernel coding style

2017-03-15 Thread sunil . m
From: Suniel Mahesh Fixed the following checkpatch.pl warnings: Block comments should align the * on each line Block comments use * on subsequent lines Signed-off-by: Suniel Mahesh --- Changes for v3: - Split earlier patches into multiple commits for easy review as suggested by Greg K-H - Mo

[PATCH v3 0/8] staging: rtl8192e: Fix coding style, warnings and checks

2017-03-15 Thread sunil . m
From: Suniel Mahesh Split earlier patches into multiple commits for easy review as suggested by Dan Carpenter. Modified subject, description and in few patches both for better readability as suggested by Greg KH. Fixed the following issues reported by checkpatch.pl: Block comments should align t

[PATCH v3 6/8] staging: rtl8192e: Pass a pointer as an argument to sizeof() instead of struct

2017-03-15 Thread sunil . m
From: Suniel Mahesh Replaced sizeof(struct foo) into sizeof(*ptr), found by checkpatch.pl Signed-off-by: Suniel Mahesh --- Changes for v3: - Split earlier patches into multiple commits for easy review as suggested by Greg K-H - Modified description for better readability - Rebased on top of

Re: [PATCH 02/19] gpio: altera: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The altera gpio driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a real-time > kernel. Because

Re: NFS corruption, fixed by echo 1 > /proc/sys/vm/drop_caches -- next debugging steps?

2017-03-15 Thread Ralf Baechle
On Mon, Mar 13, 2017 at 09:47:57AM +, James Hogan wrote: > > > > Note that the corruption is different across reboots, both in the size > > of the corruption and the location. I saw 1900~ and 1400~ byte > > sequences corrupted on separate occasions, which don't correspond to > > the system's

Re: [PATCH 05/19] gpio: 104-dio-48e: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The 104-dio-48e gpio driver currently implements an irq_chip for > handling interrupts; due to how irq_chip handling is done, it's > necessary for the irq_chip methods to be invoked from hardirq context, > even on a a real-time kernel. Be

Re: [PATCH 1/3] dt-bindings: add the grf clock for dw-mipi-dsi

2017-03-15 Thread Chris Zhong
Hi Heiko On 03/15/2017 05:03 PM, Heiko Stübner wrote: Am Mittwoch, 15. März 2017, 16:42:30 CET schrieb Chris Zhong: For RK3399, the grf clock should be controlled by dw-mipi-dsi driver, add the description for this clock. Signed-off-by: Chris Zhong --- .../devicetree/bindings/display/rockc

Re: [PATCH 07/19] gpio: bcm-kona: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The bcm-kona gpio driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Becau

Re: [PATCH 07/19] gpio: bcm-kona: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Fri, Mar 10, 2017 at 6:28 PM, Ray Jui wrote: > Is such API use change well accepted by the open source community already? The raw_*spinlock APIs are in the kernel header files and used at several sites in the kernel, so yes. Yours, Linus Walleij

Re: [PATCH 06/19] gpio: ath79: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The ath79 gpio driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Because

Re: [PATCH 08/19] gpio: etraxfs: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The etraxfs gpio driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Becaus

Re: [PATCH 3/4] x86, pci: Add interface to force mmconfig

2017-03-15 Thread Thomas Gleixner
On Tue, 14 Mar 2017, Bjorn Helgaas wrote: > On Tue, Mar 14, 2017 at 07:24:14PM -0700, Andi Kleen wrote: > > > I agree that it should be fairly safe to do ECAM/MMCONFIG without > > > locking. Can we handle the decision part by adding a "lockless" bit > > > to struct pci_ops? Old ops don't mention

Re: [PATCH 09/19] gpio: pl061: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The pl061 gpio driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Because

Re: [PATCH] mux: core: fix error handling in devm_mux_chip_alloc

2017-03-15 Thread Peter Rosin
On 2017-03-14 19:16, Dan Carpenter wrote: > Looks good! Thanks, now pushed out to the for-next branch of https://gitlab.com/peda-linux/mux.git Cheers, peda

[PATCH v1 1/7] include: dt-bindings: Add pin function index definition for rockchip pinctrl

2017-03-15 Thread cl
From: Chen Liang The rk3328 soc need more pin function index for pinctrl. Signed-off-by: Chen Liang --- include/dt-bindings/pinctrl/rockchip.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/pinctrl/rockchip.h b/include/dt-bindings/pinctrl/rockchip.h index aaec8ba..

[PATCH v1 2/7] dt-bindings: iio: rockchip-saradc: add support for rk3328

2017-03-15 Thread cl
From: Chen Liang The rk3328 saradc is the same as rk3399. Signed-off-by: Chen Liang --- Documentation/devicetree/bindings/iio/adc/rockchip-saradc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/rockchip-saradc.txt b/Documentation/devicetree/bi

[PATCH v1 3/7] dt-bindings: i2c: rk3x: add support for rk3328

2017-03-15 Thread cl
From: Chen Liang The rk3328 i2c is the same as rk3399 Signed-off-by: Chen Liang --- Documentation/devicetree/bindings/i2c/i2c-rk3x.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-rk3x.txt b/Documentation/devicetree/bindings/i2c/i2c-rk3x.txt in

Re: [PATCH 10/19] gpio: ws16c48: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The ws16c48 gpio driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Becaus

[PATCH v1 0/7] initialize dtsi file and dts file for RK3328 SoCs

2017-03-15 Thread cl
From: Liang Chen These patchs depend on pinctrl patchs as below: https://patchwork.kernel.org/patch/9566427/ https://patchwork.kernel.org/patch/9566425/ https://patchwork.kernel.org/patch/9566431/ Chen Liang (7): include: dt-bindings: Add pin function index definition for rockchip pinctrl

[PATCH v1 4/7] dt-bindings: soc: rockchip: grf: add support for rk3328

2017-03-15 Thread cl
From: Chen Liang Signed-off-by: Chen Liang --- Documentation/devicetree/bindings/soc/rockchip/grf.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.txt b/Documentation/devicetree/bindings/soc/rockchip/grf.txt index a0685c2..db4da0b 10064

Re: [PATCH 11/19] gpio: zx: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The zx gpio driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Because the

Re: Linux irq subsys i2c interaction question

2017-03-15 Thread Thomas Gleixner
On Tue, 7 Mar 2017, Hans de Goede wrote: > On 07-03-17 10:18, Thomas Gleixner wrote: > > I'm a bit worried about this being hardcoded for that particular use > > case. That also means that you cannot use the generic regmap irq handling > > stuff and need to have your own irq magic there. > > Yeah,

Re: [PATCH] net: sun: sungem: rix a possible null dereference

2017-03-15 Thread Sergei Shtylyov
Hello! On 3/15/2017 12:23 AM, Philippe Reynes wrote: The function gem_begin_auto_negotiation dereference the pointer ep before testing if it's null. This patch add a check on ep before dereferencing it. This issue was added by the patch 92552fdd557: "net: sun: sungem: use new api ethtool_{get|

Re: [PATCH v3 0/7] mmc: bcm2835: Add new driver for the sdhost controller

2017-03-15 Thread Peter Robinson
On Wed, Mar 15, 2017 at 8:21 AM, Gerd Hoffmann wrote: > Hi, > >> First the flipping of the mmc host driver for the SD card slot will >> cause issues for users that build it as a module. When I tested this >> on Fedora the first update I ended up with a system that didn't boot. > > Yep, switching

Re: [RFC][PATCH] dma-buf: Introduce dma-buf test module

2017-03-15 Thread Daniel Vetter
On Tue, Mar 14, 2017 at 01:30:30PM -0700, Laura Abbott wrote: > On 03/14/2017 01:13 PM, Daniel Vetter wrote: > > On Tue, Mar 14, 2017 at 01:04:19PM -0700, Laura Abbott wrote: > >> > >> dma-buf is designed to share buffers. Sharing means that there needs to > >> be another subsystem to accept those

Re: [PATCH v4 4/5] mfd: exynos-lpass: Use common soc/exynos-regs-pmu.h header

2017-03-15 Thread Lee Jones
On Tue, 14 Mar 2017, Krzysztof Kozlowski wrote: > The MFD-specific header will go away because it duplicates defines from > exynos-regs-pmu.h. > > Reported-by: kbuild test robot > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Bartlomiej Zolnierkiewicz > --- > drivers/mfd/exynos-lpass.c |

Re: [PATCH 1/3] dt-bindings: add the grf clock for dw-mipi-dsi

2017-03-15 Thread Heiko Stübner
Am Mittwoch, 15. März 2017, 17:55:23 CET schrieb Chris Zhong: > Hi Heiko > > On 03/15/2017 05:03 PM, Heiko Stübner wrote: > > Am Mittwoch, 15. März 2017, 16:42:30 CET schrieb Chris Zhong: > >> For RK3399, the grf clock should be controlled by dw-mipi-dsi driver, > >> add the description for this c

Re: [PATCH 16/19] pinctrl: bcm: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:22 PM, Julia Cartwright wrote: > The bcm pinctrl drivers currently implement an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Because

Re: [PATCH v2] mfd: intel_soc_pmic: Fix a mess with compilation units

2017-03-15 Thread Lee Jones
On Tue, 14 Mar 2017, Andy Shevchenko wrote: > On Tue, 2017-03-14 at 15:02 +, Lee Jones wrote: > > On Mon, 13 Mar 2017, Andy Shevchenko wrote: > > > > > Crystal Cove and Whiskey Cove are two different PMICs which are > > > installed on Intel Atom SoC based platforms. > > > > > > Moreover ther

Re: [PATCH 17/19] pinctrl: amd: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:22 PM, Julia Cartwright wrote: > The amd pinctrl drivers currently implement an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Because

Re: [PATCH 18/19] pinctrl: sirf: atlas7: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:22 PM, Julia Cartwright wrote: > The sirf atlas7 pinctrl drivers currently implement an irq_chip for > handling interrupts; due to how irq_chip handling is done, it's > necessary for the irq_chip methods to be invoked from hardirq context, > even on a a real-time kernel.

Re: [PATCH 19/19] pinctrl: sunxi: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:22 PM, Julia Cartwright wrote: > The sunxi pinctrl driver currently implement an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Becaus

Re: [PATCH v3 2/8] staging: rtl8192e: Fix coding style

2017-03-15 Thread Dan Carpenter
On Wed, Mar 15, 2017 at 03:21:51PM +0530, suni...@techveda.org wrote: > @@ -1796,7 +1796,7 @@ static short _rtl92e_alloc_rx_ring(struct net_device > *dev) > > for (rx_queue_idx = 0; rx_queue_idx < MAX_RX_QUEUE; rx_queue_idx++) { > priv->rx_ring[rx_queue_idx] = pci_zalloc_cons

Re: net/sctp: recursive locking in sctp_do_peeloff

2017-03-15 Thread Dmitry Vyukov
On Wed, Mar 15, 2017 at 5:52 AM, Cong Wang wrote: > On Fri, Mar 10, 2017 at 12:04 PM, Dmitry Vyukov wrote: >> On Fri, Mar 10, 2017 at 8:46 PM, Marcelo Ricardo Leitner >> wrote: >>> On Fri, Mar 10, 2017 at 4:11 PM, Dmitry Vyukov wrote: Hello, I've got the following recursive locki

Re: [PATCH v3 2/8] staging: rtl8192e: Fix coding style

2017-03-15 Thread Dan Carpenter
Also the subject is too vague. regards, dan carpenter

Re: [PATCH 1/2] gpio: mmio: add support for NI 169445 NAND GPIO

2017-03-15 Thread Linus Walleij
On Wed, Mar 8, 2017 at 8:35 PM, Nathan Sullivan wrote: > The GPIO-based NAND controller on National Instruments 169445 hardware > exposes a set of simple lines for the control signals. > > Signed-off-by: Nathan Sullivan Oh a newer patch with comments exist. I take out the other patch then and w

Re: [PATCH v3 3/8] staging: rtl8192e: Remove unnecessary 'out of memory' message

2017-03-15 Thread Dan Carpenter
On Wed, Mar 15, 2017 at 03:21:52PM +0530, suni...@techveda.org wrote: > From: Suniel Mahesh > > Fixed the following checkpatch.pl warning: > Possible unnecessary 'out of memory' message > > Signed-off-by: Suniel Mahesh > --- > Changes for v3: > > - Split earlier patches into multiple commits f

Re: [PATCH v4 0/5] perf report: Show inline stack

2017-03-15 Thread Milian Wolff
On Friday, March 3, 2017 11:43:00 AM CET Jin Yao wrote: > v4: Remove the options "--inline-line" and "--inline-name". Just use > a new option "--inline" to print the inline function information. > The policy is if the inline function name can be resolved then > print the name in priorit

[PATCH v3] drm/rockchip: Refactor the component match logic.

2017-03-15 Thread Jeffy Chen
Currently we are adding all components from the dts, if one of their drivers been disabled, we would not be able to bring up others. Refactor component match logic, follow exynos drm. Signed-off-by: Jeffy Chen Reviewed-by: Andrzej Hajda --- Changes in v3: Address Andrzej Hajda 's comments. C

Re: [PATCH v3 4/4] mfd: cros_ec: add RTC as mfd subdevice

2017-03-15 Thread Lee Jones
On Tue, 14 Mar 2017, Enric Balletbo i Serra wrote: > On 14/03/17 14:59, Lee Jones wrote: > > On Tue, 14 Feb 2017, Enric Balletbo i Serra wrote: > > > >> From: Stephen Barber > >> > >> If the EC supports RTC host commands, expose an RTC device. > >> > >> Signed-off-by: Stephen Barber > >> Signed-

Re: [PATCH v3 5/8] staging: rtl8192e: Fix unbalanced braces

2017-03-15 Thread Dan Carpenter
On Wed, Mar 15, 2017 at 03:21:54PM +0530, suni...@techveda.org wrote: > @@ -2294,17 +2294,20 @@ static int _rtl92e_ioctl(struct net_device *dev, > struct ifreq *rq, int cmd) > > if (ipw->cmd == IEEE_CMD_SET_ENCRYPTION) { > if (ipw->u.crypt.set_tx) { > -

Re: [PATCH v2] drm/rockchip: Refactor the component match logic.

2017-03-15 Thread jeffy
Hi Andrzej, On 03/14/2017 08:05 PM, Andrzej Hajda wrote: Hi Jeffy, On 14.03.2017 11:45, Jeffy Chen wrote: Currently we are adding all components from the dts, if one of their drivers been disabled, we would not be able to bring up others. Refactor component match logic, follow exynos drm. S

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

2017-03-15 Thread Florian Westphal
Linus Lüssing wrote: > When trying to redirect bridged frames to the bridge device itself > via the ebtables nat-prerouting chain and the dnat target then this > currently fails: > > The ethernet destination of the frame is dnat'ed to the MAC address of > the bridge itself just fine and the corre

Re: [PATCH 2/8] mfd: db8500-prcmu: fix stub helper interface

2017-03-15 Thread Lee Jones
On Tue, 14 Mar 2017, Arnd Bergmann wrote: > On Tue, Mar 14, 2017 at 12:14 PM, Lee Jones wrote: > > On Tue, 28 Feb 2017, Arnd Bergmann wrote: > > > >> When the db8500 watchdog is enabled without the PRCMU, we get a lot of > >> warnings about duplicate or missing helper functions: > >> > >> In file

Re: [PATCH fixes v4] pinctrl: Do not check previous and current state

2017-03-15 Thread Linus Walleij
On Tue, Mar 7, 2017 at 7:52 PM, Florian Fainelli wrote: > In case a platform only defaults a "default" set of pins, but not a > "sleep" set of pins, and this particular platform suspends and resumes > in a way that the pin states are not preserved by the hardware, when we > resume, we would call

Re: [PATCH fixes v4] pinctrl: Do not check previous and current state

2017-03-15 Thread Linus Walleij
On Mon, Mar 13, 2017 at 8:06 PM, Andy Shevchenko wrote: > On Mon, Mar 13, 2017 at 8:59 PM, Florian Fainelli > wrote: >> On 03/07/2017 10:52 AM, Florian Fainelli wrote: > >> Linus am I hitting some of your spam folder, or you are really having >> way too much fun with Gemini ;) ? > > A bit offtop

Re: Getting "Wrong diagnostic page; asked for 7 got 0" error message on HBA's virtual SES device

2017-03-15 Thread Sreekanth Reddy
Hi, Any Update? Thanks, Sreekanth On Mon, Mar 13, 2017 at 12:13 PM, Sreekanth Reddy wrote: > Hi, > > Our LSI(Broadcom) SAS3.5 HBA device's support virtual SES device. > > Whenever we load the mpt3sas driver then we are observing below error message, > > "Wrong diagnostic page; asked for 7 got 0

Re: [PATCH] mfd: altr-a10sr: Add Arria10 SR sysfs attributes

2017-03-15 Thread Lee Jones
On Tue, 14 Feb 2017, thor.tha...@linux.intel.com wrote: > From: Thor Thayer > > Add the Altera Arria10 DevKit sysfs attributes to the > MFD device. Update copyright and email. > > Signed-off-by: Thor Thayer > --- > drivers/mfd/altera-a10sr.c | 98 > +++

[PATCH v5 0/3] printk: fix double printing with earlycon

2017-03-15 Thread Aleksey Makarov
If a console was specified by ACPI SPCR table _and_ command line parameters like "console=ttyAMA0" _and_ "earlycon" were specified, then log messages appear twice. This issue was addressed in the patch [1] but the approach was wrong and a revert [2] was suggested. First two patches "printk: fix n

[PATCH v5 1/3] printk: fix name/type/scope of preferred_console var

2017-03-15 Thread Aleksey Makarov
The variable preferred_console is used only inside register_console() and its semantics is boolean. It is negative when no console has been made preferred. Make it static bool and rename to has_preferred. Renaming was suggested by Peter Hurley Acked-by: Petr Mladek Reviewed-by: Steven Rostedt

[PATCH v5 3/3] printk: fix double printing with earlycon

2017-03-15 Thread Aleksey Makarov
If a console was specified by ACPI SPCR table _and_ command line parameters like "console=ttyAMA0" _and_ "earlycon" were specified, then log messages appear twice. The root cause is that the code traverses the list of specified consoles (the `console_cmdline` array) and stops at the first match. B

[PATCH v5 2/3] printk: rename selected_console -> preferred_console

2017-03-15 Thread Aleksey Makarov
The variable selected_console is set in __add_preferred_console() to point to the last console parameter that was added to the console_cmdline array. Rename it to preferred_console so that the name reflects the usage. Petr Mladek: "[..] the selected_console/preferred_console value is used to keep

Re: [PATCH 1/2] mfd: retu: Add OF device ID table

2017-03-15 Thread Lee Jones
On Tue, 21 Feb 2017, 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 and > that the MODALI

Re: [PATCH 2/2] mfd: tps6105x: Add OF device ID table

2017-03-15 Thread Lee Jones
On Tue, 21 Feb 2017, 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 and > that the MODALI

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

2017-03-15 Thread Pablo Neira Ayuso
On Wed, Mar 15, 2017 at 04:18:11AM +0100, Linus Lüssing wrote: > When trying to redirect bridged frames to the bridge device itself > via the ebtables nat-prerouting chain and the dnat target then this > currently fails: > > The ethernet destination of the frame is dnat'ed to the MAC address of >

Re: [PATCH v1] mfd: intel-lpss: Remove left over variable

2017-03-15 Thread Lee Jones
On Mon, 13 Mar 2017, Andy Shevchenko wrote: > After commit 028af5941dd8 ("mfd: intel-lpss: Pass SDA hold time to I2C host > controller driver") > the driver still has a non-used variable. > > Remove it here. > > Cc: Mika Westerberg > Cc: Rafael J. Wysocki > Signed-off-by: Andy Shevchenko > -

[PATCH] SUNRPC: fix include for cmpxhg_relaxed()

2017-03-15 Thread Mark Rutland
Currently net/sunrpc/xprtmultipath.c is the only file outside of arch/ headers and asm-generic/ headers to include , apparently for the use of cmpxchg_relaxed(). However, many architectures do not provide cmpxchg_relaxed() in their , and it is necessary to include to get this definition, as noted

Re: [PATCH v2 08/11] iio: adc: sun4i-gpadc-iio: add support for A33 thermal sensor

2017-03-15 Thread Lee Jones
On Fri, 10 Mar 2017, Quentin Schulz wrote: > This adds support for the Allwinner A33 thermal sensor. > > Unlike the A10, A13 and A31, the Allwinner A33 only has one channel > which is dedicated to the thermal sensor. Moreover, its thermal sensor > does not generate interruptions, thus we only nee

Re: [PATCH 1/2] reset: Add API to count number of reset available with device

2017-03-15 Thread Philipp Zabel
Hi Vivek, On Fri, 2017-03-10 at 20:10 +0530, Vivek Gautam wrote: > Hi Philipp, > > > On Wed, Feb 22, 2017 at 10:54 AM, Vivek Gautam > wrote: > > Count number of reset phandles available with the device node > > to know the resets a given device has. > > > > Cc: Philipp Zabel > > Signed-off-by:

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

2017-03-15 Thread Pablo Neira Ayuso
On Wed, Mar 15, 2017 at 11:26:08AM +0100, Florian Westphal wrote: > Linus Lüssing wrote: > > When trying to redirect bridged frames to the bridge device itself > > via the ebtables nat-prerouting chain and the dnat target then this > > currently fails: > > > > The ethernet destination of the fram

Re: [PATCH 4/4] drm/amdgpu: resize VRAM BAR for CPU access

2017-03-15 Thread Ayyappa Ch
It also needs any support from VBIOS side ? I mean PCIe large bar support? Thanks, Ayyappa. On Wed, Mar 15, 2017 at 1:07 PM, Christian König wrote: > Carizzo is an APU and resizing BARs isn't needed nor supported there. The > CPU can access the full stolen VRAM directly on that hardware. > > As

Re: [PATCH] sched/deadline: Add missing update_rq_clock() in dl_task_timer()

2017-03-15 Thread Daniel Bristot de Oliveira
On 03/15/2017 08:53 AM, Wanpeng Li wrote: > Ping, :) > 2017-03-07 13:51 GMT+08:00 Wanpeng Li : >> From: Wanpeng Li >> >> The following warning can be triggered by hot-unplugging the CPU >> on which an active SCHED_DEADLINE task is running on: >> >> [ cut here ] >> WARNING

Re: [PATCH 2/2] usb; dwc3: of-simple: Add support to get resets for the device

2017-03-15 Thread Philipp Zabel
On Wed, 2017-02-22 at 10:54 +0530, Vivek Gautam wrote: > Add support to get a list of resets available for the device. > These resets must be kept de-asserted until the device is > in use. > > Cc: Felipe Balbi > Signed-off-by: Vivek Gautam > --- > > Based on torvald's master branch. > > drive

Re: [PATCH v2 02/17] iio: mlx96014: Add OF device ID table

2017-03-15 Thread Crt Mori
Hi, Thanks for the patch. If the assumption will not be there than this fix is needed. I tested it on BeagleBoneBlack and it does not effect anything. Tested-by: Crt Mori Acked-by: Crt Mori Best regards, Crt On 15 March 2017 at 05:44, Javier Martinez Canillas wrote: > The driver doesn't have

Re: [RFC PATCH] rework memory hotplug onlining

2017-03-15 Thread Vitaly Kuznetsov
Michal Hocko writes: > Hi, > this is a follow up for [1]. In short the current semantic of the memory > hotplug is awkward and hard/impossible to use from the udev to online > memory as movable. The main problem is that only the last memblock or > the adjacent to highest movable memblock can be o

Re: [PATCH V3 0/7] PM / Domains: Implement domain performance states

2017-03-15 Thread Viresh Kumar
On 13 March 2017 at 16:09, Viresh Kumar wrote: > On 10-03-17, 12:38, Kevin Hilman wrote: >> Why limit it to just voltage levels. >> >> As I suggested earlier, I think this should use OPPs. Remember that a >> PM domain is not limited to a hardware power domain, but is just a >> grouping mechanism

[RESEND PATCH v2 1/2] mfd: retu: Add OF device ID table

2017-03-15 Thread Javier Martinez Canillas
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 and that the MODALIAS reported will always be of the form i2c:. But this could c

[RESEND PATCH v2 2/2] mfd: tps6105x: Add OF device ID table

2017-03-15 Thread Javier Martinez Canillas
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 and that the MODALIAS reported will always be of the form i2c:. But this could c

Re: [PATCH] [v2] mtd: spi-nor: don't include linux/mtd/cfi.h from header

2017-03-15 Thread Cyrille Pitchen
Hi Arnd, +Mark Brown and Kamal Dasu Le 14/03/2017 à 22:42, Arnd Bergmann a écrit : > The newly added broadcom qspi driver in drivers/spi produces a build > warning when CONFIG_MTD is disabled: > > include/linux/mtd/cfi.h:76:2: #warning No CONFIG_MTD_CFI_Ix selected. No NOR > chip support can wo

[PATCH] driver: rtc: tps65910: Add parameter check

2017-03-15 Thread Daniel Schultz
If the tps65910 driver has no interrupt, the probe of tps65910-rtc will fail. This patch adds a check in the probe of the rtc if an interrupt exist. The check is similar to the check in the function which creates the interrupt. Signed-off-by: Daniel Schultz --- drivers/rtc/rtc-tps65910.c | 5 ++

[PATCH v4 3/8] staging: rtl8192e: Remove unnecessary 'out of memory' message

2017-03-15 Thread sunil . m
From: Suniel Mahesh Fixed the following checkpatch.pl warning: Possible unnecessary 'out of memory' message If it is out of memory, function should return with an appropriate error code. Since this function is of type void, a return statement is used. Signed-off-by: Suniel Mahesh --- Changes fo

[PATCH 1/1] tty: serial_core, remove state checks in uart_poll*

2017-03-15 Thread Jiri Slaby
Coverity complains about uart_state checks in polling functions. And it is indeed correct. We do something like this: struct uart_state *state = drv->state + line; if (!state) return; Adding 'line' to drv->state would move the potential NULL pointer to something nea

[PATCH 1/1] sisusb_con: fix coccinelle warning

2017-03-15 Thread Jiri Slaby
After commit d705ff3818 (tty: vt, cleanup and document con_scroll), in the coccinelle output, we can see: drivers/usb/misc/sisusbvga/sisusb_con.c:852:8-9: WARNING: return of 0/1 in function 'sisusbcon_scroll_area' with return type bool Return true instead of 1 in the function returning bool which

Re: [PATCH 4/4] eeprom: at24: Add OF device ID table

2017-03-15 Thread Javier Martinez Canillas
Hello Wolfram, On 03/15/2017 04:58 AM, Wolfram Sang wrote: > >> So there isn't an agreement if is better to just rely in the current behavior >> (and have a superfluous I2C device ID table) or fix the I2C core (and need a >> OF device ID table). > > For at24, the i2c_device_id table is not super

Re: media / v4l2-mc: wishlist for complex cameras (was Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline)

2017-03-15 Thread Philippe De Muyter
On Tue, Mar 14, 2017 at 09:54:31PM -0300, Mauro Carvalho Chehab wrote: > Em Tue, 14 Mar 2017 23:32:54 +0100 > Pavel Machek escreveu: > > > > > Well, I believe first question is: what applications would we want to > > run on complex devices? Will sending control from video to subdevs > > actually

[PATCH v4 15/18] ARM: dtsi: axp209: add battery power supply subnode

2017-03-15 Thread Quentin Schulz
The X-Powers AXP209 PMIC exposes battery supply various data such as the battery status (charging, discharging, full, dead), current max limit, current current, battery capacity (in percentage), voltage max and min limits, current voltage, and battery capacity (in Ah). This adds the battery power

Re: [PATCH v2 4/5] mfd: rk808: Add RK805 support

2017-03-15 Thread Lee Jones
On Fri, 10 Mar 2017, Elaine Zhang wrote: > The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld > devices. It contains the following components: > > - Regulators > - RTC > - Clocking > > Both RK808 and RK805 chips are using a similar register map, > so we can re

Re: [PATCH v2 5/5] mfd: dt-bindings: Add RK805 device tree bindings document

2017-03-15 Thread Lee Jones
On Fri, 10 Mar 2017, Elaine Zhang wrote: > Add device tree bindings documentation for Rockchip's RK805 PMIC. > > Signed-off-by: Elaine Zhang > --- > Documentation/devicetree/bindings/mfd/rk808.txt | 20 +++- > 1 file changed, 19 insertions(+), 1 deletion(-) For my own reference

Re: [PATCH v2 1/5] mfd: rk808: fix up the chip id get failed

2017-03-15 Thread Lee Jones
On Fri, 10 Mar 2017, Elaine Zhang wrote: > the rk8xx chip id is: > ((MSB << 8) | LSB) & 0xfff0 > > Signed-off-by: Elaine Zhang > --- > drivers/mfd/rk808.c | 21 +++-- > include/linux/mfd/rk808.h | 1 + > 2 files changed, 16 insertions(+), 6 deletions(-) For my own refere

Re: [PATCH v2 2/5] linux: mfd: rk808: add rk805 regs addr and ID

2017-03-15 Thread Lee Jones
Subject line should be "mfd: rk808: ..." On Fri, 10 Mar 2017, Elaine Zhang wrote: > Signed-off-by: Elaine Zhang > --- > include/linux/mfd/rk808.h | 115 > ++ > 1 file changed, 115 insertions(+) Other than that: For my own reference: Acked-for-MFD

Re: [PATCH 4/4] drm/amdgpu: resize VRAM BAR for CPU access

2017-03-15 Thread Christian König
No, we resize the BAR on the fly during driver load without help from the BIOS or VBIOS. Christian. Am 15.03.2017 um 11:42 schrieb Ayyappa Ch: It also needs any support from VBIOS side ? I mean PCIe large bar support? Thanks, Ayyappa. On Wed, Mar 15, 2017 at 1:07 PM, Christian König wrote:

Re: [PATCH 2/3] kvm: arm/arm64: Take mmap_sem in kvm_arch_prepare_memory_region

2017-03-15 Thread Christoffer Dall
On Tue, Mar 14, 2017 at 02:52:33PM +, Suzuki K Poulose wrote: > From: Marc Zyngier > > We don't hold the mmap_sem while searching for VMAs (via find_vma), in > kvm_arch_prepare_memory_region, which can end up in expected failures. > > Fixes: commit 8eef91239e57 ("arm/arm64: KVM: map MMIO reg

Re: [PATCH 1/3] kvm: arm/arm64: Take mmap_sem in stage2_unmap_vm

2017-03-15 Thread Christoffer Dall
On Wed, Mar 15, 2017 at 09:34:53AM +, Marc Zyngier wrote: > On 15/03/17 09:17, Christoffer Dall wrote: > > On Tue, Mar 14, 2017 at 02:52:32PM +, Suzuki K Poulose wrote: > >> From: Marc Zyngier > >> > >> We don't hold the mmap_sem while searching for the VMAs when > >> we try to unmap each

Re: [PATCHv2 4/5] mfd: altr_a10sr: Add Arria10 DevKit Reset Controller

2017-03-15 Thread Lee Jones
On Wed, 22 Feb 2017, thor.tha...@linux.intel.com wrote: > From: Thor Thayer > > Add Peripheral PHY Reset Controller to the Arria10 > Development Kit System Resource Chip's MFD. > > Signed-off-by: Thor Thayer > --- > v2 Changes to commit header & body for clarification. > --- > drivers/mfd/al

Re: [PATCH 3/4] iio: accel: adxl345: Setup DATA_READY trigger

2017-03-15 Thread Andy Shevchenko
On Wed, Mar 15, 2017 at 11:49 AM, Eva Rachel Retuya wrote: > On Mon, Mar 13, 2017 at 02:12:54PM +0200, Andy Shevchenko wrote: >> On Mon, Mar 13, 2017 at 1:11 PM, Eva Rachel Retuya >> wrote: > Hello Andy, > Thanks for the review. You are welcome! >> > +static irqreturn_t adxl345_irq(int irq, v

Re: [PATCH v2 14/20] ARM64: dts: sun50i-a64: Add dt node for the syscon control module

2017-03-15 Thread Sergei Shtylyov
Hello! On 3/14/2017 5:18 PM, Corentin Labbe wrote: This patch add the dt node for the syscon register present on the Allwinner A64. Only two register are present in this syscon and the only one useful is the one dedicated to EMAC clock. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/

Re: [PATCHv2 1/5] dt-bindings: mfd: Add Altera Arria10 SR Reset Controller bindings

2017-03-15 Thread Lee Jones
On Wed, 22 Feb 2017, thor.tha...@linux.intel.com wrote: > From: Thor Thayer > > This patch adds documentation for the Altera A10-SR Reset > Controller DT bindings. > > Signed-off-by: Thor Thayer > --- > v2 No change > --- > Documentation/devicetree/bindings/mfd/altera-a10sr.txt | 11

Re: [PATCH v4 4/5] mfd: exynos-lpass: Use common soc/exynos-regs-pmu.h header

2017-03-15 Thread Krzysztof Kozlowski
On Wed, Mar 15, 2017 at 12:10 PM, Lee Jones wrote: > On Tue, 14 Mar 2017, Krzysztof Kozlowski wrote: > >> The MFD-specific header will go away because it duplicates defines from >> exynos-regs-pmu.h. >> >> Reported-by: kbuild test robot >> Signed-off-by: Krzysztof Kozlowski >> Reviewed-by: Bartl

Re: [PATCH] sched/deadline: Add missing update_rq_clock() in dl_task_timer()

2017-03-15 Thread Juri Lelli
Hi, On 06/03/17 21:51, Wanpeng Li wrote: > From: Wanpeng Li > > The following warning can be triggered by hot-unplugging the CPU > on which an active SCHED_DEADLINE task is running on: > > [ cut here ] > WARNING: CPU: 7 PID: 0 at kernel/sched/sched.h:833 > replenish_d

Re: [PATCH v3 2/8] staging: rtl8192e: Fix coding style

2017-03-15 Thread Suniel Mahesh
On Wednesday 15 March 2017 03:44 PM, Dan Carpenter wrote: On Wed, Mar 15, 2017 at 03:21:51PM +0530, suni...@techveda.org wrote: @@ -1796,7 +1796,7 @@ static short _rtl92e_alloc_rx_ring(struct net_device *dev) for (rx_queue_idx = 0; rx_queue_idx < MAX_RX_QUEUE; rx_queue_idx++) {

[PATCH 2/7] net, netfilter: convert ip_vs_dest.refcnt from atomic_t to refcount_t

2017-03-15 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 0/7] net, netfilter refcounter conversions

2017-03-15 Thread Elena Reshetova
This series, for the netfilter subsystem, replaces atomic_t reference counters with the new refcount_t type and API (see include/linux/refcount.h). By doing this we prevent intentional or accidental underflows or overflows that can led to use-after-free vulnerabilities. Please take the series to y

[PATCH 4/7] net, netfilter: convert nf_acct.refcnt from atomic_t to refcount_t

2017-03-15 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 5/7] net, netfilter: convert nf_conntrack_expect.use from atomic_t to refcount_t

2017-03-15 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: [PATCH 2/3] powernv:idle: Don't override default/deepest directly in kernel

2017-03-15 Thread Gautham R Shenoy
Hi Nick, Thanks for reviewing the patch. On Wed, Mar 15, 2017 at 12:05:43AM +1000, Nicholas Piggin wrote: > On Mon, 13 Mar 2017 11:31:27 +0530 > "Gautham R. Shenoy" wrote: > > > From: "Gautham R. Shenoy" > > > > Currently during idle-init on power9, if we don't find suitable stop > > states i

[PATCH 7/7] net, netfilter: convert clusterip_config.refcount and clusterip_config.entries from atomic_t to refcount_t

2017-03-15 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

<    1   2   3   4   5   6   7   8   9   10   >