Re: [PATCH] i2c: mux: mlxcpld: fix i2c mux selection caching

2016-12-17 Thread Wolfram Sang
On Sat, Dec 17, 2016 at 09:29:11PM +0100, Peter Rosin wrote: > smbus functions return -ve on error, 0 on success. However, > __i2c_transfer() have a different return signature - -ve on error, or > number of buffers transferred (which may be zero or greater.) > > The upshot of this is that the

Re: [PATCH] i2c: mux: mlxcpld: fix i2c mux selection caching

2016-12-17 Thread Wolfram Sang
On Sat, Dec 17, 2016 at 09:29:11PM +0100, Peter Rosin wrote: > smbus functions return -ve on error, 0 on success. However, > __i2c_transfer() have a different return signature - -ve on error, or > number of buffers transferred (which may be zero or greater.) > > The upshot of this is that the

Re: [PATCH] fix code alignment with open parenthesis in drivers/staging/fbtft/fb_agm1264k-fl.c

2016-12-17 Thread Greg KH
On Sat, Dec 17, 2016 at 08:42:53PM -0600, Scott Matheina wrote: > Signed-off-by: Scott Matheina I can't take patches without any changelog text :( > --- > drivers/staging/fbtft/fb_agm1264k-fl.c | 17 ++--- > 1 file changed, 10 insertions(+), 7 deletions(-) > >

Re: [PATCH] fix code alignment with open parenthesis in drivers/staging/fbtft/fb_agm1264k-fl.c

2016-12-17 Thread Greg KH
On Sat, Dec 17, 2016 at 08:42:53PM -0600, Scott Matheina wrote: > Signed-off-by: Scott Matheina I can't take patches without any changelog text :( > --- > drivers/staging/fbtft/fb_agm1264k-fl.c | 17 ++--- > 1 file changed, 10 insertions(+), 7 deletions(-) > > diff --git

Re: [PATCH] spi: rockchip: support "sleep" pin configuration

2016-12-17 Thread Caesar Wang
在 2016年12月17日 08:59, Brian Norris 写道: In the pattern of many other devices, support a system-sleep pin configuration. Signed-off-by: Brian Norris Tested-by: Caesar Wang --- Documentation/devicetree/bindings/spi/spi-rockchip.txt | 7 +++

Re: [PATCH] spi: rockchip: support "sleep" pin configuration

2016-12-17 Thread Caesar Wang
在 2016年12月17日 08:59, Brian Norris 写道: In the pattern of many other devices, support a system-sleep pin configuration. Signed-off-by: Brian Norris Tested-by: Caesar Wang --- Documentation/devicetree/bindings/spi/spi-rockchip.txt | 7 +++ drivers/spi/spi-rockchip.c

Re: [PATCH] Input: mouse: synaptics - change msleep to usleep_range for small msecs

2016-12-17 Thread Igor Grinberg
Hi Aniroop Mathur, On 12/04/16 15:05, Aniroop Mathur wrote: > Hello Mr. Igor Grinberg > > On Sun, Dec 4, 2016 at 1:32 PM, Igor Grinberg wrote: >> Hi Aniroop Mathur, >> >> On 11/29/16 23:02, Aniroop Mathur wrote: >>> Dear Mike Rapoport, Igor Grinberg, >>> Greetings! >>>

Re: [PATCH] Input: mouse: synaptics - change msleep to usleep_range for small msecs

2016-12-17 Thread Igor Grinberg
Hi Aniroop Mathur, On 12/04/16 15:05, Aniroop Mathur wrote: > Hello Mr. Igor Grinberg > > On Sun, Dec 4, 2016 at 1:32 PM, Igor Grinberg wrote: >> Hi Aniroop Mathur, >> >> On 11/29/16 23:02, Aniroop Mathur wrote: >>> Dear Mike Rapoport, Igor Grinberg, >>> Greetings! >>> >>> I am Aniroop Mathur

Re: [RFC3 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-12-17 Thread Yury Norov
On Fri, Oct 21, 2016 at 11:32:59PM +0300, Yury Norov wrote: > This series enables aarch64 with ilp32 mode, and as supporting work, > introduces ARCH_32BIT_OFF_T configuration option that is enabled for > existing 32-bit architectures but disabled for new arches (so 64-bit > off_t is is used by new

Re: [RFC3 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-12-17 Thread Yury Norov
On Fri, Oct 21, 2016 at 11:32:59PM +0300, Yury Norov wrote: > This series enables aarch64 with ilp32 mode, and as supporting work, > introduces ARCH_32BIT_OFF_T configuration option that is enabled for > existing 32-bit architectures but disabled for new arches (so 64-bit > off_t is is used by new

[PATCH] staging: rtl8712: changed struct members to __le32

2016-12-17 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". struct recv_stat and struct phy_stat have always little endian members. Signed-off-by: Jannik Becher --- drivers/staging/rtl8712/rtl8712_recv.h | 28 ++-- 1 file changed, 14 insertions(+), 14

[PATCH] staging: rtl8712: changed struct members to __le32

2016-12-17 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". struct recv_stat and struct phy_stat have always little endian members. Signed-off-by: Jannik Becher --- drivers/staging/rtl8712/rtl8712_recv.h | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

Re: [PATCH v9 2/4] vcodec: mediatek: Add Mediatek JPEG Decoder Driver

2016-12-17 Thread Ricky Liang
On Wed, Dec 14, 2016 at 4:04 PM, Rick Chang wrote: > Add v4l2 driver for Mediatek JPEG Decoder > > Signed-off-by: Rick Chang > Signed-off-by: Minghsiu Tsai > --- > drivers/media/platform/Kconfig |

Re: [PATCH v9 2/4] vcodec: mediatek: Add Mediatek JPEG Decoder Driver

2016-12-17 Thread Ricky Liang
On Wed, Dec 14, 2016 at 4:04 PM, Rick Chang wrote: > Add v4l2 driver for Mediatek JPEG Decoder > > Signed-off-by: Rick Chang > Signed-off-by: Minghsiu Tsai > --- > drivers/media/platform/Kconfig | 15 + > drivers/media/platform/Makefile |2 + >

RE: [PATCH] qed: fix memory leak of a qed_spq_entry on error failure paths

2016-12-17 Thread Mintz, Yuval
> From: Colin Ian King > > A qed_spq_entry entry is allocated by qed_sp_init_request but is not kfree'd > if an error occurs, causing a memory leak. Fix this by kfree'ing it and also > setting *pp_ent to NULL to be safe. > > Found with static analysis by CoverityScan,

RE: [PATCH] qed: fix memory leak of a qed_spq_entry on error failure paths

2016-12-17 Thread Mintz, Yuval
> From: Colin Ian King > > A qed_spq_entry entry is allocated by qed_sp_init_request but is not kfree'd > if an error occurs, causing a memory leak. Fix this by kfree'ing it and also > setting *pp_ent to NULL to be safe. > > Found with static analysis by CoverityScan, CIDs 1389468-1389470 > >

[PATCH] serial: pic32_uart: Fix 'request_irq' and 'free_irq' inconsistancy

2016-12-17 Thread Christophe JAILLET
'request_irq' and 'free_irq' should have the same 'dev_id'. Here one uses 'port', and the other one uses 'sport'. Signed-off-by: Christophe JAILLET --- drivers/tty/serial/pic32_uart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH] serial: pic32_uart: Fix 'request_irq' and 'free_irq' inconsistancy

2016-12-17 Thread Christophe JAILLET
'request_irq' and 'free_irq' should have the same 'dev_id'. Here one uses 'port', and the other one uses 'sport'. Signed-off-by: Christophe JAILLET --- drivers/tty/serial/pic32_uart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/pic32_uart.c

[PATCH] staging: vc04_services: Fix bracing on single statement blocks

2016-12-17 Thread Aaron Moore
Fix coding style issue caught by checkpatch.pl relating to braces on single statement blocks. This issue was corrected in 3 locations. Signed-off-by: Aaron Moore --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c | 9 +++-- 1 file changed, 3 insertions(+),

[PATCH] staging: vc04_services: Fix bracing on single statement blocks

2016-12-17 Thread Aaron Moore
Fix coding style issue caught by checkpatch.pl relating to braces on single statement blocks. This issue was corrected in 3 locations. Signed-off-by: Aaron Moore --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-)

[PATCH v10 2/3] Documentation: Add binding document for Lattice iCE40 FPGA manager

2016-12-17 Thread Joel Holdsworth
This adds documentation of the device tree bindings of the Lattice iCE40 FPGA driver for the FPGA manager framework. Signed-off-by: Joel Holdsworth Acked-by: Rob Herring Acked-by: Alan Tull Acked-by: Moritz Fischer

[PATCH v10 3/3] fpga: Add support for Lattice iCE40 FPGAs

2016-12-17 Thread Joel Holdsworth
This patch adds support to the FPGA manager for configuring the SRAM of iCE40LM, iCE40LP, iCE40HX, iCE40 Ultra, iCE40 UltraLite and iCE40 UltraPlus devices, through slave SPI. Signed-off-by: Joel Holdsworth Reviewed-by: Marek Vasut Reviewed-by: Moritz

[PATCH v10 1/3] of: Add vendor prefix for Lattice Semiconductor

2016-12-17 Thread Joel Holdsworth
Lattice Semiconductor Corporation is a manufacturer of integrated circuits and IP products, including low-power FPGAs, video connectivity devices and millimeter wave wireless products. Website: http://latticesemi.com Signed-off-by: Joel Holdsworth Acked-by: Rob Herring

[PATCH v10 2/3] Documentation: Add binding document for Lattice iCE40 FPGA manager

2016-12-17 Thread Joel Holdsworth
This adds documentation of the device tree bindings of the Lattice iCE40 FPGA driver for the FPGA manager framework. Signed-off-by: Joel Holdsworth Acked-by: Rob Herring Acked-by: Alan Tull Acked-by: Moritz Fischer Acked-by: Marek Vasut --- .../bindings/fpga/lattice-ice40-fpga-mgr.txt

[PATCH v10 3/3] fpga: Add support for Lattice iCE40 FPGAs

2016-12-17 Thread Joel Holdsworth
This patch adds support to the FPGA manager for configuring the SRAM of iCE40LM, iCE40LP, iCE40HX, iCE40 Ultra, iCE40 UltraLite and iCE40 UltraPlus devices, through slave SPI. Signed-off-by: Joel Holdsworth Reviewed-by: Marek Vasut Reviewed-by: Moritz Fischer Acked-by: Alan Tull ---

[PATCH v10 1/3] of: Add vendor prefix for Lattice Semiconductor

2016-12-17 Thread Joel Holdsworth
Lattice Semiconductor Corporation is a manufacturer of integrated circuits and IP products, including low-power FPGAs, video connectivity devices and millimeter wave wireless products. Website: http://latticesemi.com Signed-off-by: Joel Holdsworth Acked-by: Rob Herring Acked-by: Alan Tull

Re: OOM: Better, but still there on

2016-12-17 Thread Tetsuo Handa
Nils Holland wrote: > On Sat, Dec 17, 2016 at 11:44:45PM +0900, Tetsuo Handa wrote: > > On 2016/12/17 21:59, Nils Holland wrote: > > > On Sat, Dec 17, 2016 at 01:02:03AM +0100, Michal Hocko wrote: > > >> mount -t tracefs none /debug/trace > > >> echo 1 > /debug/trace/events/vmscan/enable > > >>

Re: OOM: Better, but still there on

2016-12-17 Thread Tetsuo Handa
Nils Holland wrote: > On Sat, Dec 17, 2016 at 11:44:45PM +0900, Tetsuo Handa wrote: > > On 2016/12/17 21:59, Nils Holland wrote: > > > On Sat, Dec 17, 2016 at 01:02:03AM +0100, Michal Hocko wrote: > > >> mount -t tracefs none /debug/trace > > >> echo 1 > /debug/trace/events/vmscan/enable > > >>

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Al Viro
On Sat, Dec 17, 2016 at 07:34:45PM -0800, Linus Torvalds wrote: > > What else am I missing there? > > I absolutely *abhor* this part: > > *len = isize - pos_in; > > because the whole code then depends on the overflow checking a few > lines down, and it's not at all obvious. We

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Al Viro
On Sat, Dec 17, 2016 at 07:34:45PM -0800, Linus Torvalds wrote: > > What else am I missing there? > > I absolutely *abhor* this part: > > *len = isize - pos_in; > > because the whole code then depends on the overflow checking a few > lines down, and it's not at all obvious. We

Re: [PATCH 5/5] firmware: add DECLARE_FW_CUSTOM_FALLBACK() annotation

2016-12-17 Thread Milo Kim
Hi Luis, On 12/17/2016 01:14 AM, Luis R. Rodriguez wrote: Milo if sysfs is used can't the old userspace be mapped to use the new sysfs interface through a wrapper of some sort ? What exactly would be needed to ensure old userspace will not break? LP5521 and LP5523 have two ways to load hex

Re: [PATCH 5/5] firmware: add DECLARE_FW_CUSTOM_FALLBACK() annotation

2016-12-17 Thread Milo Kim
Hi Luis, On 12/17/2016 01:14 AM, Luis R. Rodriguez wrote: Milo if sysfs is used can't the old userspace be mapped to use the new sysfs interface through a wrapper of some sort ? What exactly would be needed to ensure old userspace will not break? LP5521 and LP5523 have two ways to load hex

STRICTLY CONFIDENTIAL

2016-12-17 Thread Acct. Dept.
I have important transaction for you as next of kin to claim US$18.37m Mail me on my private email: chimwia...@gmail.com so I can send you more details Thanks Mr.Chim Wai Kim MOVE TO INBOX=== DISCLAIMER: This email and any files it contains are confidential

STRICTLY CONFIDENTIAL

2016-12-17 Thread Acct. Dept.
I have important transaction for you as next of kin to claim US$18.37m Mail me on my private email: chimwia...@gmail.com so I can send you more details Thanks Mr.Chim Wai Kim MOVE TO INBOX=== DISCLAIMER: This email and any files it contains are confidential

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Linus Torvalds
On Sat, Dec 17, 2016 at 7:26 PM, Al Viro wrote: > > One, AFAICS - pointless *len = 0 in case of is_dedupe. Yup. That part made sense in the original code where len and ret were different. Now it just looks like a five-year old has been eating crayons and paste. > What

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Linus Torvalds
On Sat, Dec 17, 2016 at 7:26 PM, Al Viro wrote: > > One, AFAICS - pointless *len = 0 in case of is_dedupe. Yup. That part made sense in the original code where len and ret were different. Now it just looks like a five-year old has been eating crayons and paste. > What else am I missing there?

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Al Viro
[Darrick Cc'd] On Sat, Dec 17, 2016 at 06:49:55PM -0800, Linus Torvalds wrote: > On Fri, Dec 16, 2016 at 2:12 PM, Al Viro wrote: > > In this pile: > > * autofs-namespace series > > * dedupe stuff > > * more struct path constification > > When

Re: [GIT PULL (resend)] readlink cleanup

2016-12-17 Thread Linus Torvalds
On Sat, Dec 17, 2016 at 7:21 PM, Linus Torvalds wrote: > > I pulled the non-controversial part of this branch, and made myself a > batch of popcorn for the rest of the discussion, Side note: I was pretty close to just pulling it all. Because do think the rest of

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Al Viro
[Darrick Cc'd] On Sat, Dec 17, 2016 at 06:49:55PM -0800, Linus Torvalds wrote: > On Fri, Dec 16, 2016 at 2:12 PM, Al Viro wrote: > > In this pile: > > * autofs-namespace series > > * dedupe stuff > > * more struct path constification > > When looking at the conflict, I

Re: [GIT PULL (resend)] readlink cleanup

2016-12-17 Thread Linus Torvalds
On Sat, Dec 17, 2016 at 7:21 PM, Linus Torvalds wrote: > > I pulled the non-controversial part of this branch, and made myself a > batch of popcorn for the rest of the discussion, Side note: I was pretty close to just pulling it all. Because do think the rest of the patch series looks quite

Re: [GIT PULL (resend)] readlink cleanup

2016-12-17 Thread Linus Torvalds
On Fri, Dec 16, 2016 at 2:48 PM, Miklos Szeredi wrote: > > Please consider pulling the following cleanup: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git readlink I pulled the non-controversial part of this branch, and made myself a batch of popcorn for

Re: [GIT PULL (resend)] readlink cleanup

2016-12-17 Thread Linus Torvalds
On Fri, Dec 16, 2016 at 2:48 PM, Miklos Szeredi wrote: > > Please consider pulling the following cleanup: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git readlink I pulled the non-controversial part of this branch, and made myself a batch of popcorn for the rest of the

Re: [RFC PATCH 04/14] sparc64: load shared id into context register 1

2016-12-17 Thread David Miller
From: Mike Kravetz Date: Fri, 16 Dec 2016 10:35:27 -0800 > In current code, only context ID register 0 is set and used by the MMU. > On sun4v platforms that support MMU shared context, there is an additional > context ID register: specifically context register 1. When

Re: [RFC PATCH 04/14] sparc64: load shared id into context register 1

2016-12-17 Thread David Miller
From: Mike Kravetz Date: Fri, 16 Dec 2016 10:35:27 -0800 > In current code, only context ID register 0 is set and used by the MMU. > On sun4v platforms that support MMU shared context, there is an additional > context ID register: specifically context register 1. When searching > the TLB, the

Re: [RFC PATCH 05/14] sparc64: Add PAGE_SHR_CTX flag

2016-12-17 Thread David Miller
From: Mike Kravetz Date: Fri, 16 Dec 2016 10:35:28 -0800 > @@ -166,6 +166,7 @@ bool kern_addr_valid(unsigned long addr); > #define _PAGE_EXEC_4V _AC(0x0080,UL) /* Executable Page > */ > #define _PAGE_W_4V _AC(0x0040,UL) /*

Re: [RFC PATCH 05/14] sparc64: Add PAGE_SHR_CTX flag

2016-12-17 Thread David Miller
From: Mike Kravetz Date: Fri, 16 Dec 2016 10:35:28 -0800 > @@ -166,6 +166,7 @@ bool kern_addr_valid(unsigned long addr); > #define _PAGE_EXEC_4V _AC(0x0080,UL) /* Executable Page > */ > #define _PAGE_W_4V _AC(0x0040,UL) /* Writable */ >

Re: [RFC PATCH 03/14] sparc64: routines for basic mmu shared context structure management

2016-12-17 Thread David Miller
From: Mike Kravetz Date: Fri, 16 Dec 2016 10:35:26 -0800 > +void smp_flush_shared_tlb_mm(struct mm_struct *mm) > +{ > + u32 ctx = SHARED_CTX_HWBITS(mm->context); > + > + (void)get_cpu();/* prevent preemption */ preempt_disable(); > + > +

Re: [RFC PATCH 03/14] sparc64: routines for basic mmu shared context structure management

2016-12-17 Thread David Miller
From: Mike Kravetz Date: Fri, 16 Dec 2016 10:35:26 -0800 > +void smp_flush_shared_tlb_mm(struct mm_struct *mm) > +{ > + u32 ctx = SHARED_CTX_HWBITS(mm->context); > + > + (void)get_cpu();/* prevent preemption */ preempt_disable(); > + > +

Re: [PATCH v2 0/8] power: supply: tps65217: Support USB charger feature

2016-12-17 Thread Milo Kim
On 12/18/2016 01:24 AM, Sebastian Reichel wrote: patches look fine, but these two patches must be reordered to fix bisectability. Otherwise after patch 1 the thread is not properly killed during driver removal. Thanks for your guidelines. The v3 patchset has been sent. Best regards, Milo

Re: [PATCH v2 0/8] power: supply: tps65217: Support USB charger feature

2016-12-17 Thread Milo Kim
On 12/18/2016 01:24 AM, Sebastian Reichel wrote: patches look fine, but these two patches must be reordered to fix bisectability. Otherwise after patch 1 the thread is not properly killed during driver removal. Thanks for your guidelines. The v3 patchset has been sent. Best regards, Milo

[PATCH v3 1/7] power: supply: tps65217: Use 'poll_task' on unloading the module

2016-12-17 Thread Milo Kim
Use the task_struct variable for running polling thread. If polling task is activated, then use it to stop running thread. This is a preceding step of supporting two interrupts of TPS65217 charger, so checking single IRQ number is not appropriate when the module is removed. Signed-off-by: Milo

[PATCH v3 5/7] power: supply: tps65217: Use generic name for power supply property

2016-12-17 Thread Milo Kim
Replace 'ac_props' with 'charger_props'. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/tps65217_charger.c b/drivers/power/supply/tps65217_charger.c index

[PATCH v3 1/7] power: supply: tps65217: Use 'poll_task' on unloading the module

2016-12-17 Thread Milo Kim
Use the task_struct variable for running polling thread. If polling task is activated, then use it to stop running thread. This is a preceding step of supporting two interrupts of TPS65217 charger, so checking single IRQ number is not appropriate when the module is removed. Signed-off-by: Milo

[PATCH v3 5/7] power: supply: tps65217: Use generic name for power supply property

2016-12-17 Thread Milo Kim
Replace 'ac_props' with 'charger_props'. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/tps65217_charger.c b/drivers/power/supply/tps65217_charger.c index

[GIT] Networking

2016-12-17 Thread David Miller
1) Revert bogus nla_ok() change, from Alexey Dobriyan. 2) Various bpf validator fixes from Daniel Borkmann. 3) Add some necessary SET_NETDEV_DEV() calls to hsis_femac and hip04 drivers, from Dongpo Li. 4) Several ethtool ksettings conversions from Philippe Reynes. 5) Fix bugs in inet port

[PATCH v3 7/7] power: supply: tps65217: Use generic charger name

2016-12-17 Thread Milo Kim
"tps65217-charger" is more appropriate name because the driver supports not only AC but also USB charger. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v3 6/7] power: supply: tps65217: Use generic name for get_property()

2016-12-17 Thread Milo Kim
Rename it as tps65217_charger_get_property(). Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/power/supply/tps65217_charger.c b/drivers/power/supply/tps65217_charger.c

[GIT] Networking

2016-12-17 Thread David Miller
1) Revert bogus nla_ok() change, from Alexey Dobriyan. 2) Various bpf validator fixes from Daniel Borkmann. 3) Add some necessary SET_NETDEV_DEV() calls to hsis_femac and hip04 drivers, from Dongpo Li. 4) Several ethtool ksettings conversions from Philippe Reynes. 5) Fix bugs in inet port

[PATCH v3 7/7] power: supply: tps65217: Use generic charger name

2016-12-17 Thread Milo Kim
"tps65217-charger" is more appropriate name because the driver supports not only AC but also USB charger. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/tps65217_charger.c

[PATCH v3 6/7] power: supply: tps65217: Use generic name for get_property()

2016-12-17 Thread Milo Kim
Rename it as tps65217_charger_get_property(). Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/power/supply/tps65217_charger.c b/drivers/power/supply/tps65217_charger.c index

[PATCH v3 4/7] power: supply: tps65217: Use generic name for power supply structure

2016-12-17 Thread Milo Kim
Replace 'ac' of tps65217_charger structure with 'psy'. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/power/supply/tps65217_charger.c

[PATCH v3 0/7] power: supply: tps65217: Support USB charger feature

2016-12-17 Thread Milo Kim
TPS65217 device supports two charger inputs - AC and USB. Currently, only AC charger is supported. This patch-set adds USB charger feature. Tested on Beaglebone black. Patch 1: Preceding step of the main patch Patch 2: Main patch Patch 3 ~ 7: Naming changes for generic power supply class

[PATCH v3 3/7] power: supply: tps65217: Use generic name for charger online

2016-12-17 Thread Milo Kim
This driver supports AC and USB chargers. Generic name is preferred. Replace 'ac_online' with 'online'. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v3 2/7] power: supply: tps65217: Support USB charger interrupt

2016-12-17 Thread Milo Kim
TPS65217 has two charger interrupts - AC and USB power status change. Interrupt number in the TPS65217 driver data: IRQ number is only used on requesting the interrupt, so no need to keep it inside the driver data. Interrupt handler: Check not only AC but also USB charger status. In both

[PATCH v3 4/7] power: supply: tps65217: Use generic name for power supply structure

2016-12-17 Thread Milo Kim
Replace 'ac' of tps65217_charger structure with 'psy'. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/power/supply/tps65217_charger.c b/drivers/power/supply/tps65217_charger.c index

[PATCH v3 0/7] power: supply: tps65217: Support USB charger feature

2016-12-17 Thread Milo Kim
TPS65217 device supports two charger inputs - AC and USB. Currently, only AC charger is supported. This patch-set adds USB charger feature. Tested on Beaglebone black. Patch 1: Preceding step of the main patch Patch 2: Main patch Patch 3 ~ 7: Naming changes for generic power supply class

[PATCH v3 3/7] power: supply: tps65217: Use generic name for charger online

2016-12-17 Thread Milo Kim
This driver supports AC and USB chargers. Generic name is preferred. Replace 'ac_online' with 'online'. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v3 2/7] power: supply: tps65217: Support USB charger interrupt

2016-12-17 Thread Milo Kim
TPS65217 has two charger interrupts - AC and USB power status change. Interrupt number in the TPS65217 driver data: IRQ number is only used on requesting the interrupt, so no need to keep it inside the driver data. Interrupt handler: Check not only AC but also USB charger status. In both

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Linus Torvalds
On Fri, Dec 16, 2016 at 2:12 PM, Al Viro wrote: > In this pile: > * autofs-namespace series > * dedupe stuff > * more struct path constification When looking at the conflict, I looked at that part of vfs_clone_file_prep_inodes(), and reacted to

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Linus Torvalds
On Fri, Dec 16, 2016 at 2:12 PM, Al Viro wrote: > In this pile: > * autofs-namespace series > * dedupe stuff > * more struct path constification When looking at the conflict, I looked at that part of vfs_clone_file_prep_inodes(), and reacted to the insanity. WTF?

Re: [PATCH] net: mv643xx_eth: fix build failure

2016-12-17 Thread David Miller
From: Sudip Mukherjee Date: Sat, 17 Dec 2016 00:45:05 + > The build of sparc allmodconfig fails with the error: > "of_irq_to_resource" [drivers/net/ethernet/marvell/mv643xx_eth.ko] > undefined! > > of_irq_to_resource() is defined when CONFIG_OF_IRQ is

Re: [PATCH] net: mv643xx_eth: fix build failure

2016-12-17 Thread David Miller
From: Sudip Mukherjee Date: Sat, 17 Dec 2016 00:45:05 + > The build of sparc allmodconfig fails with the error: > "of_irq_to_resource" [drivers/net/ethernet/marvell/mv643xx_eth.ko] > undefined! > > of_irq_to_resource() is defined when CONFIG_OF_IRQ is defined. And also > CONFIG_OF_IRQ

Re: [PATCH] isdn: Constify some function parameters

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 13:40:47 -0800 > From: Emese Revfy > > The coming initify gcc plugin expects const pointer types, and caught > some __printf arguments that weren't const yet. This fixes those. > > Signed-off-by: Emese Revfy

Re: [PATCH] isdn: Constify some function parameters

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 13:40:47 -0800 > From: Emese Revfy > > The coming initify gcc plugin expects const pointer types, and caught > some __printf arguments that weren't const yet. This fixes those. > > Signed-off-by: Emese Revfy > [kees: expanded commit message] >

[PATCH] fix code alignment with open parenthesis in drivers/staging/fbtft/fb_agm1264k-fl.c

2016-12-17 Thread Scott Matheina
Signed-off-by: Scott Matheina --- drivers/staging/fbtft/fb_agm1264k-fl.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c index a6e3af7..4e371ed 100644 ---

[PATCH] fix code alignment with open parenthesis in drivers/staging/fbtft/fb_agm1264k-fl.c

2016-12-17 Thread Scott Matheina
Signed-off-by: Scott Matheina --- drivers/staging/fbtft/fb_agm1264k-fl.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c index a6e3af7..4e371ed 100644 ---

RE: [RFC 00/10] implement alternative and much simpler id allocator

2016-12-17 Thread Matthew Wilcox
From: Matthew Wilcox > From: Matthew Wilcox > > Heh, I was thinking about that too. The radix tree supports "exceptional > > entries" which have the bottom bit set. On a 64-bit machine, we could use > 62 > > of the bits in the radix tree root to store the ID bitmap. I'm a little > > wary of >

RE: [RFC 00/10] implement alternative and much simpler id allocator

2016-12-17 Thread Matthew Wilcox
From: Matthew Wilcox > From: Matthew Wilcox > > Heh, I was thinking about that too. The radix tree supports "exceptional > > entries" which have the bottom bit set. On a 64-bit machine, we could use > 62 > > of the bits in the radix tree root to store the ID bitmap. I'm a little > > wary of >

Re: [PATCH net] qed: fix old-style function definition

2016-12-17 Thread David Miller
From: Arnd Bergmann Date: Fri, 16 Dec 2016 09:47:41 +0100 > The newly added file causes a harmless warning, with "make W=1": > > drivers/net/ethernet/qlogic/qed/qed_iscsi.c: In function 'qed_get_iscsi_ops': > drivers/net/ethernet/qlogic/qed/qed_iscsi.c:1268:29: warning: old-style

Re: [PATCH net] qed: fix old-style function definition

2016-12-17 Thread David Miller
From: Arnd Bergmann Date: Fri, 16 Dec 2016 09:47:41 +0100 > The newly added file causes a harmless warning, with "make W=1": > > drivers/net/ethernet/qlogic/qed/qed_iscsi.c: In function 'qed_get_iscsi_ops': > drivers/net/ethernet/qlogic/qed/qed_iscsi.c:1268:29: warning: old-style > function

Re: [PATCH] net: ipv6: check route protocol when deleting routes

2016-12-17 Thread David Miller
From: Mantas Mikulėnas Date: Fri, 16 Dec 2016 10:30:59 +0200 > The protocol field is checked when deleting IPv4 routes, but ignored for > IPv6, which causes problems with routing daemons accidentally deleting > externally set routes (observed by multiple bird6 users). > >

Re: [PATCH] net: ipv6: check route protocol when deleting routes

2016-12-17 Thread David Miller
From: Mantas Mikulėnas Date: Fri, 16 Dec 2016 10:30:59 +0200 > The protocol field is checked when deleting IPv4 routes, but ignored for > IPv6, which causes problems with routing daemons accidentally deleting > externally set routes (observed by multiple bird6 users). > > This can be verified

Re: [PATCH] net: sfc: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Thu, 15 Dec 2016 00:12:53 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: sfc: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Thu, 15 Dec 2016 00:12:53 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: chelsio: cxgb3: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Mon, 12 Dec 2016 00:27:49 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: cirrus: ep93xx: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Mon, 12 Dec 2016 23:28:33 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: chelsio: cxgb2: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Sun, 11 Dec 2016 22:47:50 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: chelsio: cxgb2: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Sun, 11 Dec 2016 22:47:50 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: chelsio: cxgb3: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Mon, 12 Dec 2016 00:27:49 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: cirrus: ep93xx: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Mon, 12 Dec 2016 23:28:33 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

[PATCH] ALSA: snd-usb: fix IRQ triggered NULL pointer dereference

2016-12-17 Thread Ioan-Adrian Ratiu
Commit 16200948d835 ("ALSA: usb-audio: Fix race at stopping the stream") fixes a race-codition but it also introduces another really nasty data race regression which makes my usb sound card [1] completely useless, throwing the kernel into a panic if anything from userspace tries to start playback.

[PATCH] ALSA: snd-usb: fix IRQ triggered NULL pointer dereference

2016-12-17 Thread Ioan-Adrian Ratiu
Commit 16200948d835 ("ALSA: usb-audio: Fix race at stopping the stream") fixes a race-codition but it also introduces another really nasty data race regression which makes my usb sound card [1] completely useless, throwing the kernel into a panic if anything from userspace tries to start playback.

Re: OOM: Better, but still there on

2016-12-17 Thread Xin Zhou
Hi, The system supposes to have special memory reservation for coredump and other debug info when encountering panic, the size seems configurable. Thanks, Xin     Sent: Saturday, December 17, 2016 at 6:44 AM From: "Tetsuo Handa" To: "Nils Holland"

Re: OOM: Better, but still there on

2016-12-17 Thread Xin Zhou
Hi, The system supposes to have special memory reservation for coredump and other debug info when encountering panic, the size seems configurable. Thanks, Xin     Sent: Saturday, December 17, 2016 at 6:44 AM From: "Tetsuo Handa" To: "Nils Holland" , "Michal Hocko" Cc: 

Re: [PATCH 1/2] net: ethernet: sxgbe: remove private tx queue lock

2016-12-17 Thread Francois Romieu
Pavel Machek : [...] > Won't this up/down the interface, in a way userspace can observe? It won't up/down the interface as it doesn't exactly mimic what the network code does (there's more than rtnl_lock). For the same reason it's broken if it races with the transmit path: it can

Re: [PATCH 1/2] net: ethernet: sxgbe: remove private tx queue lock

2016-12-17 Thread Francois Romieu
Pavel Machek : [...] > Won't this up/down the interface, in a way userspace can observe? It won't up/down the interface as it doesn't exactly mimic what the network code does (there's more than rtnl_lock). For the same reason it's broken if it races with the transmit path: it can release driver

Re: [PATCH v3 1/3] siphash: add cryptographically secure hashtable function

2016-12-17 Thread Christian Kujau
On Thu, 15 Dec 2016, Jason A. Donenfeld wrote: > > I'd still drop the "24" unless you really think we're going to have > > multiple variants coming into the kernel. > > Okay. I don't have a problem with this, unless anybody has some reason > to the contrary. What if the 2/4-round version falls

Re: [PATCH v3 1/3] siphash: add cryptographically secure hashtable function

2016-12-17 Thread Christian Kujau
On Thu, 15 Dec 2016, Jason A. Donenfeld wrote: > > I'd still drop the "24" unless you really think we're going to have > > multiple variants coming into the kernel. > > Okay. I don't have a problem with this, unless anybody has some reason > to the contrary. What if the 2/4-round version falls

[PATCH v2] usb: musb: debugfs: allow forcing host mode together with speed in testmode

2016-12-17 Thread Pali Rohár
Based on the musb ug, force_host bit is allowed to be set along with force_hs or force_fs bit. It could help to implement forced host mode via testmode on Nokia N900. Signed-off-by: Pali Rohár --- Changes in v2: * Use == instead of & for comparison of testmode ---

[PATCH v2] usb: musb: debugfs: allow forcing host mode together with speed in testmode

2016-12-17 Thread Pali Rohár
Based on the musb ug, force_host bit is allowed to be set along with force_hs or force_fs bit. It could help to implement forced host mode via testmode on Nokia N900. Signed-off-by: Pali Rohár --- Changes in v2: * Use == instead of & for comparison of testmode ---

  1   2   3   4   >