[PATCH] clocksource/drivers/moxart: fix memory leak

2016-12-18 Thread Sudip Mukherjee
If of_iomap() or any other subsequent function fails we were exiting but we missed to free timer and unmap timer->base if iomap has already been done. Signed-off-by: Sudip Mukherjee --- drivers/clocksource/moxart_timer.c | 22 -- 1 file

linux-next: manual merge of the target-bva tree with Linus' tree

2016-12-18 Thread Stephen Rothwell
Hi Bart, Today's linux-next merge of the target-bva tree got a conflict in: drivers/target/target_core_configfs.c between commit: 450630975da9 ("don't open-code file_inode()") from Linus' tree and commit: 8cc3bb0789ea ("target: Use NULL instead of 0 to represent a pointer") from the

Re: [PATCH v4 2/2] ARM: ep93xx: Register ts73xx-fpga manager driver for TS-7300

2016-12-18 Thread Alan Tull
On Sun, 18 Dec 2016, Florian Fainelli wrote: > Register the TS-7300 FPGA manager device drivers which allows us to load > bitstreams into the on-board Altera Cyclone II FPGA. > > Acked-by: H Hartley Sweeten > Signed-off-by: Florian Fainelli

Re: [PATCH] extcon: 3gpio: add driver for USB OTG port controlled by 3 GPIOs

2016-12-18 Thread kbuild test robot
Hi David, [auto build test WARNING on chanwoo-extcon/extcon-next] [also build test WARNING on v4.9 next-20161216] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH 05/21] MIPS memblock: Alter initrd memory reservation method

2016-12-18 Thread Serge Semin
Since memblock is used, initrd memory region can be easily verified and reserved if looks ok. Verification method will be useful for other reservation methods. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 157 - 1 file changed,

Re: [PATCH v5] media: Driver for Toshiba et8ek8 5MP sensor

2016-12-18 Thread Sakari Ailus
Hi Pavel, On Wed, Dec 14, 2016 at 09:12:02PM +0100, Pavel Machek wrote: > Hi! > > > On Wednesday 14 December 2016 13:24:51 Pavel Machek wrote: > > > > > > Add driver for et8ek8 sensor, found in Nokia N900 main camera. Can be > > > used for taking photos in 2.5MP resolution with fcam-dev. > > >

[PATCH] usb: storage: ene_ub6250: remove unused variable

2016-12-18 Thread Sudip Mukherjee
The variable Newblk was only being assigned some value but was never used after that. Signed-off-by: Sudip Mukherjee --- drivers/usb/storage/ene_ub6250.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/storage/ene_ub6250.c

[GIT PULL] platform-drivers-x86 for 4.10-2

2016-12-18 Thread Darren Hart
Hi Linus, This is the last of the patches queued for the 4.10 merge window for platform-drivers-x86. This series was reviewed and committed by Andy Shevchenko. I'm submitting the pull request as part of the ramp/transition effort to working as a maintainer team. In the future Andy will prepare

Re: regression: ath_tx_edma_tasklet() Illegal idle entry in RCU read-side critical section

2016-12-18 Thread Gabriel C
On 18.12.2016 21:14, Paul E. McKenney wrote: On Sun, Dec 18, 2016 at 07:57:42PM +, Valo, Kalle wrote: Tobias Klausmann writes: A patch for this is already floating on the ML for a while now latest: (ath9k: do not return early to fix rcu unlocking)

linux-next: manual merge of the overlayfs tree with Linus' tree

2016-12-18 Thread Stephen Rothwell
Hi Miklos, Today's linux-next merge of the overlayfs tree got conflicts in: fs/overlayfs/dir.c fs/overlayfs/inode.c I am pretty sure thses conflicts only exist because the overlayfs tree was rebased before being merged by Linus. I am dropping the oevrlay fs tree for today. Please clean it

Re: [PATCH] input: i8042-x86ia64io.h: Add Pegatron touchpad to noloop table

2016-12-18 Thread Dmitry Torokhov
On Sat, Dec 17, 2016 at 12:19:34AM -0200, Marcos Paulo de Souza wrote: > Avoid AUX loopback in Pegatron C15B touchpad, so input subsystem is able > to recognize a synaptics touchpad in the AUX port. > > Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=93791 > (Touchpad is not detected on DNS

[PATCH] at86rf230: Allow slow GPIO pins for "rstn"

2016-12-18 Thread Andrey Smirnov
Driver code never touches "rstn" signal in atomic context, so there's no need to implicitly put such restriction on it by using gpio_set_value to manipulate it. Replace gpio_set_value to gpio_set_value_cansleep to fix that. As a an example of where such restriction might be inconvenient, consider

Re: [PATCH -v4 02/10] futex: Add missing error handling to FUTEX_REQUEUE_PI

2016-12-18 Thread Darren Hart
On Sat, Dec 17, 2016 at 02:54:11PM +0100, Peter Zijlstra wrote: > On Fri, Dec 16, 2016 at 04:06:39PM -0800, Darren Hart wrote: > > On Tue, Dec 13, 2016 at 09:36:40AM +0100, Peter Zijlstra wrote: > > > Thomas spotted that fixup_pi_state_owner() can return errors and we > > > fail to unlock the

Re: [git pull] vfs.git pile 2

2016-12-18 Thread Darrick J. Wong
On Sun, Dec 18, 2016 at 04:06:06AM +, Al Viro wrote: > 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

Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for shared context support

2016-12-18 Thread Mike Kravetz
On 12/16/2016 11:38 PM, Sam Ravnborg wrote: > Hi Mike > >> diff --git a/arch/sparc/include/asm/mmu_context_64.h >> b/arch/sparc/include/asm/mmu_context_64.h >> index b84be67..d031799 100644 >> --- a/arch/sparc/include/asm/mmu_context_64.h >> +++ b/arch/sparc/include/asm/mmu_context_64.h >> @@

Re: [GIT PULL] platform-drivers-x86 for 4.10-2

2016-12-18 Thread Linus Torvalds
On Sun, Dec 18, 2016 at 3:13 PM, Darren Hart wrote: > > The commits he reviewed and committed only have his Signed-off-by, and not > mine. > Is this correct procedure? Yes. Basically the sign-off chain should go from the author to the committer, with any possibly

[PATCH 6/8] extcon: axp288: Use vbus-valid instead of -present to determine cable presence

2016-12-18 Thread Hans de Goede
The vbus-present bit in the power status register also gets set to 1 when a usb-host cable (id-pin shorted to ground) is plugged in and a 5v boost converter is supplying 5v to the otg usb bus. This causes a "disconnect or unknown or ID event" warning in dmesg as well as the extcon device to

[PATCH 3/8] extcon: axp288: Simplify axp288_handle_chrg_det_event

2016-12-18 Thread Hans de Goede
axp288_handle_chrg_det_event only gets called on change interrupts (so not that often), extcon_set_state_sync() checks itself if there are any actual changes before notifying listeners, and gpiod_set_value is not really expensive either. So we can simply always do both on each interrupt removing

[PATCH 7/8] extcon: axp288: Remove unnecessary irq?_en register writes

2016-12-18 Thread Hans de Goede
Setting the irq_enable bits is taken care of by the irq chip when we request the irqs and the driver should not be meddling with the irq?_en registers itself. Signed-off-by: Hans de Goede --- drivers/extcon/extcon-axp288.c | 19 +++ 1 file changed, 3

[PATCH 8/8] extcon: axp288: Fix the module not auto-loading

2016-12-18 Thread Hans de Goede
Add a MODULE_DEVICE_TABLE to fix the module not auto-loading. Signed-off-by: Hans de Goede --- drivers/extcon/extcon-axp288.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c index a27ee68..509a5f9

[PATCH 4/8] extcon: axp288: Fix possibly reporting 2 cables in state true

2016-12-18 Thread Hans de Goede
When the charger type changes from e.g. SDP to CDP, without Vbus being seen as low in between axp288_handle_chrg_det_event would set the state for the new cable type to true, without clearing the state of the previous cable type to false. This commit fixes this and also gets rid of the function

[PATCH 5/8] extcon: axp288: Make a couple of messages dev_info instead of dev_dbg

2016-12-18 Thread Hans de Goede
These messages are helpful for the user to check if their charger is correctly detected, so make them dev_dbg instead of dev_info. Also add a new message to indicate when the vbus is disconnected / no cable is detected. Signed-off-by: Hans de Goede ---

[PATCH v2 4/4] clk: rockchip: add new pll-type for rk3328

2016-12-18 Thread Elaine Zhang
The rk3328's pll and clock are similar with rk3036's, it different with pll_mode_mask,there are different control registers bit, so these should be independent and separate from the series of rk3328s. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-pll.c | 13

[PATCH v2 2/4] dt-bindings: add bindings for rk3328 clock controller

2016-12-18 Thread Elaine Zhang
Add devicetree bindings for Rockchip cru which found on Rockchip SoCs. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,rk3328-cru.txt | 57 ++ 1 file changed, 57 insertions(+) create mode 100644

[PATCH v2 0/4] clk: rockchip: support clk controller for rk3328 SoC

2016-12-18 Thread Elaine Zhang
Changes in v2: add bindings for rk3328 clock controller Elaine Zhang (4): clk: rockchip: add dt-binding header for rk3328 dt-bindings: add bindings for rk3328 clock controller clk: rockchip: add clock controller for rk3328 clk: rockchip: add new pll-type for rk3328

Re: [PATCH v6 0/5] Altera Cyclone Passive Serial SPI FPGA Manager

2016-12-18 Thread Alan Tull
On Fri, 16 Dec 2016, Joshua Clayton wrote: > This series adds an FPGA manager for Altera cyclone FPGAs > that can program them using an spi port and a couple of gpios, using > Alteras passive serial protocol. > > Need ACKs from ARCH maintainers for ARCH specific implementations of >

[PATCH 19/21] MIPS memblock: Add print out method of kernel virtual memory layout

2016-12-18 Thread Serge Semin
It's useful to have some printed map of the kernel virtual memory, at least for debugging purpose. Signed-off-by: Serge Semin --- arch/mips/mm/init.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/arch/mips/mm/init.c

[PATCH] USB: cypress_m8: remove unused variable

2016-12-18 Thread Sudip Mukherjee
The variable havedata was only being set but never used afterwards. Signed-off-by: Sudip Mukherjee --- drivers/usb/serial/cypress_m8.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index

Re: [PATCH -v4 00/10] FUTEX_UNLOCK_PI wobbles

2016-12-18 Thread Darren Hart
On Sat, Dec 17, 2016 at 02:52:14PM +0100, Peter Zijlstra wrote: > On Fri, Dec 16, 2016 at 03:31:40PM -0800, Darren Hart wrote: > > On Tue, Dec 13, 2016 at 09:36:38AM +0100, Peter Zijlstra wrote: > > > That way, when we drop hb->lock to wait, futex and rt_mutex wait state is > > > consistent. > > >

[PATCH] usb: storage: sddr09: remove unused variable

2016-12-18 Thread Sudip Mukherjee
The variable isnew was only assigned 0 or 1 but was never used after that. Signed-off-by: Sudip Mukherjee --- drivers/usb/storage/sddr09.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/storage/sddr09.c

Re: [PATCH] ARM: disallow ARM_THUMB for ARMv4 builds

2016-12-18 Thread Russell King - ARM Linux
On Sun, Dec 18, 2016 at 03:04:24PM +, Ard Biesheuvel wrote: > The only issue I spotted is that the kuser_get_tls routine has only > two instruction slots for the return sequence, but we can easily work > around that by moving the TLS hardware instruction around in the > template (and update

[PATCH 00/14] extcon api extension + axp288_charger fixes

2016-12-18 Thread Hans de Goede
Hi extcon and power-supply system maintainers, This series really are 2 separate series, patches 1 - 2 add a new extcon_get_extcon_dev_by_cable_id function to the extcon core. Patches 3 - 15 consist of various fixes for the axp288_charger driver, including one fix which uses the new

[PATCH 02/14] extcon: Make extcon_register_notifier use extcon_get_extcon_dev_by_cable_id

2016-12-18 Thread Hans de Goede
Implement extcon_register_notifier's support for a NULL edev argument using the new extcon_get_extcon_dev_by_cable_id function. Signed-off-by: Hans de Goede --- drivers/extcon/extcon.c | 35 +++ 1 file changed, 11 insertions(+), 24

[PATCH] extcon: 3gpio: add driver for USB OTG port controlled by 3 GPIOs

2016-12-18 Thread Hans de Goede
From: David Cohen Add an exntcon driver to for USB OTG ports controlled by 3 GPIOs used on Intel Baytrail and Cherrytrail tablets. Signed-off-by: David Cohen [hdgo...@redhat.com: Port to current kernel, submit upstream] Signed-off-by: Hans de

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

2016-12-18 Thread Mike Kravetz
On 12/16/2016 11:45 PM, Sam Ravnborg wrote: > Hi Mike > >> diff --git a/arch/sparc/kernel/fpu_traps.S b/arch/sparc/kernel/fpu_traps.S >> index 336d275..f85a034 100644 >> --- a/arch/sparc/kernel/fpu_traps.S >> +++ b/arch/sparc/kernel/fpu_traps.S >> @@ -73,6 +73,16 @@ do_fpdis: >> ldxa

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

2016-12-18 Thread Mike Kravetz
On 12/17/2016 07:12 PM, David Miller wrote: > 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 >> */ >>

[PATCH 06/21] MIPS memblock: Alter kexec-crashkernel parameters parser

2016-12-18 Thread Serge Semin
Memblock API can be successfully used to verify whether crashkernel memory region belongs to low memory, then it can be reserved within memblock allocator. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 105 ++--- 1 file changed, 52

[PATCH 07/21] MIPS memblock: Alter elfcorehdr parameters parser

2016-12-18 Thread Serge Semin
Memblock API can be successfully used to verify whether elfcorehdr memory region belongs to lowmemory, then it can be reserved within memblock allocator. There is also available default method for early parameters parser in kernel/crash_dump.c: setup_elfcorehdr(), so it's wise to use one instead

Re: [PATCH] ARM: ep93xx: Disable TS-72xx watchdog before uncompressing

2016-12-18 Thread Florian Fainelli
Le 12/11/16 à 11:16, Florian Fainelli a écrit : > The TS-72xx/73xx boards have a CPLD watchdog which is configured to > reset the board after 8 seconds, if the kernel is large enough that this > takes about this time to decompress the kernel, we will encounter a > spurious reboot. > > Do not pull

Re: [PATCH v6 3/5] doc: dt: add cyclone-ps-spi binding document

2016-12-18 Thread Alan Tull
On Fri, 16 Dec 2016, Joshua Clayton wrote: > Describe a cyclone-ps-spi devicetree entry, required features > > Signed-off-by: Joshua Clayton > Acked-by: Rob Herring Acked-by: Alan Tull > --- >

[PATCH 08/21] MIPS memblock: Move kernel parameters parser into individual method

2016-12-18 Thread Serge Semin
Main memory initialization method looks messy with cmd line parser built-in. So it's better for readability to put it into a separated method. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 87 -- 1 file changed, 48 insertions(+),

Re: [PATCH v6 5/5] ARM: dts: imx6q-evi: support cyclone-ps-spi

2016-12-18 Thread Alan Tull
On Fri, 16 Dec 2016, Joshua Clayton wrote: > Add support for Altera cyclone V FPGA connected to an spi port > to the evi devicetree file > > Signed-off-by: Joshua Clayton Acked-by: Alan Tull > --- > arch/arm/boot/dts/imx6q-evi.dts | 16

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-12-18 Thread Sakari Ailus
Hi Pavel, On Tue, Dec 13, 2016 at 10:05:06PM +0100, Pavel Machek wrote: > Hi! > > I have finally found the old mail you were refering to. Let me go > through it. > > > > +/* > > > + * Convert exposure time `us' to rows. Modify `us' to make it to > > > + * correspond to the actual exposure time.

[PATCH] usbip: vudc: check for NULL before use

2016-12-18 Thread Sudip Mukherjee
to_vep() is doing a container_of() on _ep. It is better to do the NULL check first and then use it. Signed-off-by: Sudip Mukherjee --- drivers/usb/usbip/vudc_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/usbip/vudc_dev.c

Re: [PATCH v3] net: macb: Added PCI wrapper for Platform Driver.

2016-12-18 Thread Andy Shevchenko
On Wed, Dec 14, 2016 at 8:39 AM, Bartosz Folta wrote: > There are hardware PCI implementations of Cadence GEM network > controller. This patch will allow to use such hardware with reuse of > existing Platform Driver. Since it's already applied, perhaps you would consider

Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for shared context support

2016-12-18 Thread Mike Kravetz
On 12/16/2016 11:34 PM, Sam Ravnborg wrote: > Hi Mike. > > On Fri, Dec 16, 2016 at 10:35:25AM -0800, Mike Kravetz wrote: >> Add new fields to the mm_context structure to support shared context. >> Instead of a simple context ID, add a pointer to a structure with a >> reference count. This is

[PATCH 2/3] of/overlay: sysfs based ABI for dt overlays

2016-12-18 Thread Heinrich Schuchardt
Currently the kernel only supplies an internal API for creating and destroying device tree overlays. For some boards vendor specific kernel modules exist for managing device tree overlays but the have not been upstreamed. This patch provides a sysfs based ABI for creation and destruction of dt

[PATCH 3/3] of/overlay: documentation for sysfs ABI

2016-12-18 Thread Heinrich Schuchardt
The sysfs filesystem ABI to load and unload devicetree overlays is decribed. Signed-off-by: Heinrich Schuchardt --- .../ABI/testing/sysfs-firmware-devicetree-overlays | 24 ++ 1 file changed, 24 insertions(+) create mode 100644

[PATCH] serial: 8250: Avoid "too much work" from bogus rx timeout interrupt

2016-12-18 Thread Douglas Anderson
On a Rockchip rk3399-based board during suspend/resume testing, we found that we could get the console UART into a state where it would print this to the console a lot: serial8250: too much work for irq42 Followed eventually by: NMI watchdog: BUG: soft lockup - CPU#0 stuck for 11s! Upon

linux-next: build failure after merge of the kvm tree

2016-12-18 Thread Stephen Rothwell
Hi all, After merging the kvm tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/kernel/kvm.c: In function '__kvm_vcpu_is_preempted': arch/x86/kernel/kvm.c:596:14: error: 'struct kvm_steal_time' has no member named 'preempted' return !!src->preempted;

[PATCH v2 1/4] clk: rockchip: add dt-binding header for rk3328

2016-12-18 Thread Elaine Zhang
Add the dt-bindings header for the rk3328, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3328. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3328-cru.h | 403 + 1

[PATCH v2 3/4] clk: rockchip: add clock controller for rk3328

2016-12-18 Thread Elaine Zhang
Add the clock tree definition for the new rk3328 SoC. Changes in v2: fix up these *_sample error description. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3328.c | 1068 +

[PATCH 09/21] MIPS memblock: Move kernel memory reservation to individual method

2016-12-18 Thread Serge Semin
The whole kernel text/data/bss must be reserved to prevent sudden kernel crashes, for instance, due to unexpected non-zero default static variables initializations. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 117 +++-- 1 file

[PATCH 20/21] MIPS memblock: Add free low memory test method call

2016-12-18 Thread Serge Semin
Right after all the necessary reservations are done, free memory regions can be tested if it is activated with "memtest" parameter. Signed-off-by: Serge Semin --- arch/mips/mm/init.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/mm/init.c

Re: [PATCH 1/3] of/overlay: add API function to count and pop last

2016-12-18 Thread kbuild test robot
Hi Heinrich, [auto build test ERROR on linus/master] [also build test ERROR on next-20161216] [cannot apply to glikely/devicetree/next robh/for-next v4.9] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH 21/21] MIPS memblock: Deactivate old bootmem allocator

2016-12-18 Thread Serge Semin
Memblock allocator can be successfully used from now for early memory management. Signed-off-by: Serge Semin --- arch/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 2ef1e2d..527f2fe 100644 ---

[PATCH 04/21] MIPS memblock: Alter user-defined memory parameter parser

2016-12-18 Thread Serge Semin
Both new memblock and boot_mem_map subsystems need to be fully cleared before a new memory region is added. So the early parser is correspondingly modified. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 67 +- 1 file changed, 37

[PATCH 02/21] MIPS memblock: Add dts mem and reserved-mem callbacks

2016-12-18 Thread Serge Semin
In order to get a structured table of platform devices, it is widespread amongst modern systems to use fdt'es. MIPS should support one as well. Particularly /memory/ and /reserved-memory/ should be analyzed and corresponding regions registered with memblock subsystem. Signed-off-by: Serge Semin

[PATCH 00/21] MIPS memblock: Remove bootmem code and switch to NO_BOOTMEM

2016-12-18 Thread Serge Semin
Most of the modern platforms supported by linux kernel have already been cleaned up of old bootmem allocator by moving to nobootmem interface wrapping up the memblock. This patchset is the first attempt to do the similar improvement for MIPS for UMA systems only. Even though the porting was

[PATCH 03/21] MIPS memblock: Alter traditional add_memory_region() method

2016-12-18 Thread Serge Semin
There is no safe and fast way to get rid of boot_mem_map usage in the wide set of platform code. But it's luck, that the architecture specific code doesn't make any direct changes in the boot_mem_map structure. Additionally the platform specific code registers the available memory using

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

2016-12-18 Thread Dmitry Torokhov
On Sun, Dec 18, 2016 at 09:35:48AM +0200, Igor Grinberg wrote: > 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

[GIT PULL] libnvdimm for 4.10

2016-12-18 Thread Williams, Dan J
Hi Linus, please full from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-for-4.10 ...to receive the libnvdimm update for 4.10. The libnvdimm pull request is relatively small this time around due to some development topics being deferred to 4.11. However, Jan

[PATCH 10/14] power: supply: axp288_charger: Some minor cleanups

2016-12-18 Thread Hans de Goede
Remove info->health, info->present and info->online caching, as no code is reading the cached values. Remove if (changed) check before calling power_supply_changed(), we return early from axp288_charger_extcon_evt_worker if nothing has changed, so the check is not needed. Signed-off-by: Hans de

[PATCH 09/14] power: supply: axp288_charger: Handle charger type changing without disconnect

2016-12-18 Thread Hans de Goede
Deal with the charger type changing without a vbus-disconnect being reported in between the 2 charger type states: -Do not return from axp288_charger_extcon_evt_worker early in this case (track old_chg_type) -Make calling axp288_charger_enable_charger with the same value as before a nop, to

[PATCH 12/14] power: supply: axp288_charger: Fix wrong regmap_update_bits

2016-12-18 Thread Hans de Goede
To set a bit to 1 one needs to pass the mask for the bit to set as second argument into regmap_update_bits, not "1". Signed-off-by: Hans de Goede --- drivers/power/supply/axp288_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 13/14] power: supply: axp288_charger: Remove unnecessary irq?_en register writes

2016-12-18 Thread Hans de Goede
Setting the irq_enable bits is taken care of by the irq chip when we request the irqs and the driver should not be meddling with the irq?_en registers itself. Signed-off-by: Hans de Goede --- drivers/power/supply/axp288_charger.c | 32 1

[PATCH 04/14] power: supply: axp288_charger: Drop platform_data dependency

2016-12-18 Thread Hans de Goede
When the axp288_charger driver was originally merged, it was merged with a dependency on some other driver providing platform data for it. However the battery-data-framework which should provide that data never got merged, so the axp288_charger as merged upstream has never worked, its probe

[PATCH 08/14] power: supply: axp288_charger: Actually get and use the USB_HOST extcon device

2016-12-18 Thread Hans de Goede
Nothing was setting info->otg.cable, so the extcon_get_cable_state_ calls on it would always return -EINVAL. This commit fixes this by actually setting info->otg.cable using the new extcon_get_extcon_dev_by_cable_id function. This commit also makes failing to register the extcon notifier for the

[PATCH 06/14] power: supply: axp288_charger: Register extcon notifers after power_supply

2016-12-18 Thread Hans de Goede
The extcon notifier work calls power_supply_changed on the power_supply we register, so the extcon notifiers should be registered after we register the power_supply. While touching this code anyways, refactor the code for the 3 cable types into a loop to avoid code repetition. Signed-off-by:

[PATCH 03/14] power: supply: axp288_charger: Make charger_init_hw_regs propagate i2c errors

2016-12-18 Thread Hans de Goede
Make charger_init_hw_regs propagate i2c errors, instead of only warning about them and then ignoring them. Signed-off-by: Hans de Goede --- drivers/power/supply/axp288_charger.c | 62 --- 1 file changed, 42 insertions(+), 20 deletions(-)

Re: [RFC PATCH 06/14] sparc64: general shared context tsb creation and support

2016-12-18 Thread Mike Kravetz
On 12/16/2016 11:53 PM, Sam Ravnborg wrote: > Hi Mike > >> --- a/arch/sparc/mm/hugetlbpage.c >> +++ b/arch/sparc/mm/hugetlbpage.c >> @@ -162,8 +162,14 @@ void set_huge_pte_at(struct mm_struct *mm, unsigned >> long addr, >> { >> pte_t orig; >> >> -if (!pte_present(*ptep) &&

[PATCH] extcon: 3gpio: fix platform_no_drv_owner.cocci warnings

2016-12-18 Thread kbuild test robot
drivers/extcon/extcon-3gpio_otg.c:190:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: David Cohen Signed-off-by: Fengguang Wu

Re: [PATCH 03/11] powerpc/kvm: Gather HPT related variables into sub-structure

2016-12-18 Thread David Gibson
On Fri, Dec 16, 2016 at 10:24:17AM +0100, Thomas Huth wrote: > On 15.12.2016 06:53, David Gibson wrote: > > Currently, the powerpc kvm_arch structure contains a number of variables > > tracking the state of the guest's hashed page table (HPT) in KVM HV. This > > patch gathers them all together

Re: [PATCH 06/11] powerpc/kvm: Allow KVM_PPC_ALLOCATE_HTAB ioctl() to change HPT size

2016-12-18 Thread David Gibson
On Fri, Dec 16, 2016 at 01:44:57PM +0100, Thomas Huth wrote: > On 15.12.2016 06:53, David Gibson wrote: > > The KVM_PPC_ALLOCATE_HTAB ioctl() is used to set the size of hashed page > > table (HPT) that userspace expects a guest VM to have, and is also used to > > clear that HPT when necessary

Re: [PATCH] extcon: 3gpio: add driver for USB OTG port controlled by 3 GPIOs

2016-12-18 Thread kbuild test robot
Hi David, [auto build test WARNING on chanwoo-extcon/extcon-next] [also build test WARNING on v4.9 next-20161216] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH v3 0/2] Add MediaTek crypto accelerator driver

2016-12-18 Thread Ryder Lee
Hello, This adds support for the MediaTek hardware accelerator on some SoCs. This driver currently implement: - SHA1 and SHA2 family(HMAC) hash algorithms. - AES block cipher in CBC/ECB mode with 128/196/256 bits keys. Chances since v3: -remove unused structure member -drop interrupt-parent

[PATCH v3 1/2] Add crypto driver support for some MediaTek chips

2016-12-18 Thread Ryder Lee
This adds support for the MediaTek hardware accelerator on mt7623/mt2701/mt8521p SoC. This driver currently implement: - SHA1 and SHA2 family(HMAC) hash algorithms. - AES block cipher in CBC/ECB mode with 128/196/256 bits keys. Signed-off-by: Ryder Lee ---

[PATCH v3 2/2] crypto: mediatek - add DT bindings documentation

2016-12-18 Thread Ryder Lee
Add DT bindings documentation for the crypto driver Signed-off-by: Ryder Lee --- .../devicetree/bindings/crypto/mediatek-crypto.txt | 27 ++ 1 file changed, 27 insertions(+) create mode 100644

Re: [PATCH 0/2] z3fold fixes

2016-12-18 Thread Vitaly Wool
On Tue, Nov 29, 2016 at 11:39 PM, Andrew Morton wrote: > On Tue, 29 Nov 2016 17:33:19 -0500 Dan Streetman wrote: > >> On Sat, Nov 26, 2016 at 2:15 PM, Vitaly Wool wrote: >> > Here come 2 patches with z3fold fixes for chunks

[PATCH] lib/Kconfig.debug: fix frv build failure

2016-12-18 Thread Sudip Mukherjee
The build of frv allmodconfig was failing with the errors like: /tmp/cc0JSPc3.s: Assembler messages: /tmp/cc0JSPc3.s:1839: Error: symbol `.LSLT0' is already defined /tmp/cc0JSPc3.s:1842: Error: symbol `.LASLTP0' is already defined /tmp/cc0JSPc3.s:1969: Error: symbol `.LELTP0' is already defined

Re: regression: ath_tx_edma_tasklet() Illegal idle entry in RCU read-side critical section

2016-12-18 Thread Tobias Klausmann
Hi, A patch for this is already floating on the ML for a while now latest: (ath9k: do not return early to fix rcu unlocking) Hopefully Kalle will include it in one of his upcoming pull requests. Greetings, Tobias On 18.12.2016 16:59, Paul E. McKenney wrote: On Sun, Dec 18, 2016 at

[PATCH v2] staging: emxx_udc: Fix styling issues

2016-12-18 Thread Afonso Bordado
Fix CamelCase styling issues with EP0_out_PIO Remove unecessary temporary variables Signed-off-by: Afonso Bordado --- drivers/staging/emxx_udc/emxx_udc.c | 29 - 1 file changed, 12 insertions(+), 17 deletions(-) diff --git

Re: [PATCH v3 6/7] thunderbolt: Power down controller when idle

2016-12-18 Thread Andy Shevchenko
On Sat, Dec 17, 2016 at 4:39 PM, Lukas Wunner wrote: > Document and implement Apple's ACPI-based (but nonstandard) pm mechanism > for Thunderbolt. Briefly, an ACPI method provided by Apple is used to > cut power to the controller. A GPE is enabled while the controller is >

[PATCH 01/14] extcon: Add extcon_get_extcon_dev_by_cable_id function

2016-12-18 Thread Hans de Goede
extcon_register_notifier() allows passing in a NULL pointer for the extcon_device, so that extcon consumers which want extcon events of a certain type, but do not know the extcon device name (e.g. because there are different implementation depending on the board), can still get such events. But

[PATCH 05/14] power: supply: axp288_charger: use devm extcon / supply register

2016-12-18 Thread Hans de Goede
Use devm_extcon_register_notifier and devm_power_supply_register instead of their non devm counterparts, this avoids the need to do manual cleanup and results in quite a nice code cleanup. Signed-off-by: Hans de Goede --- drivers/power/supply/axp288_charger.c | 71

[PATCH 14/14] power: supply: axp288_charger: Fix the module not auto-loading

2016-12-18 Thread Hans de Goede
Add a MODULE_DEVICE_TABLE to fix the module not auto-loading. Signed-off-by: Hans de Goede --- drivers/power/supply/axp288_charger.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/power/supply/axp288_charger.c b/drivers/power/supply/axp288_charger.c

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

2016-12-18 Thread Mike Kravetz
On 12/17/2016 07:14 PM, David Miller wrote: > 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

[PATCH 11/14] power: supply: axp288_charger: Get and process initial hardware-state

2016-12-18 Thread Hans de Goede
Do not wait for an extcon notification before processing the cable states, instead queue the otg / cable work on probe to make sure we immediately process the initial hardware state. Note this also requiree moving the getting of the USB_HOST cable state from the extcon notifier to the workqueue

[GIT PULL] RTC for 4.10

2016-12-18 Thread Alexandre Belloni
Hi Linus, Here is the pull-request for the RTC subsystem for 4.10. Unfortunately, I had to rewrite a commit before sending because patchwork changed the author's name unexpectedly. The following changes since commit 1001354ca34179f3db924eb66672442a173147dc: Linux 4.9-rc1 (2016-10-15 12:17:50

[PATCH 07/14] power: supply: axp288_charger: Move init_hw_regs call before supply registration

2016-12-18 Thread Hans de Goede
Move the charger_init_hw_regs() above the power_supply_register call, the axp288_charger_usb_set_property() uses axp288_chrg_info.max_cv and .max_cc which get set by charger_init_hw_regs(). Signed-off-by: Hans de Goede --- drivers/power/supply/axp288_charger.c | 8

[PATCH 1/8] extcon: axp288: Remove dependency on non-existing platform_data

2016-12-18 Thread Hans de Goede
When the extcon_axp288 driver was originally merged, it was merged with a dependency on some other driver providing platform data for it. However such another driver was never merged, so the extcon_axp288 as merged upstream has never worked, its probe method simply always returns -ENODEV. This

[PATCH 2/8] extcon: axp288: Remove usb_phy notification code

2016-12-18 Thread Hans de Goede
The usb_phy based intel-usb-phy code never got merged into the mainline kernel, so the devm_usb_get_phy() call will always fail, blocking the driver from loading. Since new drivers should use the generic-phy framework, not the old-style usb_phy stuff, keeping this around is not useful. Therefor

[PATCH 1/3] of/overlay: add API function to count and pop last

2016-12-18 Thread Heinrich Schuchardt
To allow building interfaces which are not id based two new functions are added to the device tree overlay API: of_overlay_count- counts the loaded overlays of_overlay_destroy_last - removes the last overlay loaded Signed-off-by: Heinrich Schuchardt ---

[PATCH 0/3] of/overlay: sysfs based ABI for dt overlays

2016-12-18 Thread Heinrich Schuchardt
Currently the kernel only supplies an internal API for creating and destroying device tree overlays. For some boards vendor specific kernel modules exist for managing device tree overlays but they have not been upstreamed or upstreaming stalled. https://lkml.org/lkml/2015/6/12/624

Re: [PATCH v2] dma-buf: Wait on the reservation object when sync'ing before CPU access

2016-12-18 Thread Inki Dae
2016년 08월 16일 01:02에 Daniel Vetter 이(가) 쓴 글: > On Mon, Aug 15, 2016 at 04:42:18PM +0100, Chris Wilson wrote: >> Rendering operations to the dma-buf are tracked implicitly via the >> reservation_object (dmabuf->resv). This is used to allow poll() to >> wait upon outstanding rendering (or just

Re: [PATCH 04/11] powerpc/kvm: Don't store values derivable from HPT order

2016-12-18 Thread David Gibson
On Fri, Dec 16, 2016 at 11:39:26AM +0100, Thomas Huth wrote: > On 15.12.2016 06:53, David Gibson wrote: > > Currently the kvm_hpt_info structure stores the hashed page table's order, > > and also the number of HPTEs it contains and a mask for its size. The > > last two can be easily derived from

Re: [PATCH 05/11] powerpc/kvm: Split HPT allocation from activation

2016-12-18 Thread David Gibson
On Fri, Dec 16, 2016 at 12:57:26PM +0100, Thomas Huth wrote: > On 15.12.2016 06:53, David Gibson wrote: > > Currently, kvmppc_alloc_hpt() both allocates a new hashed page table (HPT) > > and sets it up as the active page table for a VM. For the upcoming HPT > > resize implementation we're going

[PATCH 18/21] MIPS memblock: Slightly improve buddy allocator init method

2016-12-18 Thread Serge Semin
Just add some minor changes into buddy allocator initialization. After all the alterations it shall work just fine from now. Signed-off-by: Serge Semin --- arch/mips/mm/init.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git

[PATCH 11/21] MIPS memblock: Add memblock sanity check method

2016-12-18 Thread Serge Semin
Perform memory sanity check right after basic memory is added. It makes sure there is low memory available and there is no high memory if one isn't supported. Additionally low memory limit needs to be calculated so memblock would have a proper upper boundary for memory allocations. Signed-off-by:

[PATCH 14/21] MIPS memblock: Alter IO resources initialization method

2016-12-18 Thread Serge Semin
Replace resource initialization method with one using memblocks. It fully reflects all available system RAM within memory regions. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 40 +- 1 file changed, 12 insertions(+), 28

  1   2   3   4   5   6   >