Re: [PATCHv2] backlight: pwm_bl: disable PWM when 'duty_cycle' is zero

2016-06-11 Thread Lothar Waßmann
Hi, On Fri, 10 Jun 2016 15:54:49 +0100 Lee Jones wrote: > On Fri, 10 Jun 2016, Lothar Waßmann wrote: > > On Fri, 10 Jun 2016 08:44:49 +0100 Lee Jones wrote: > > > On Fri, 10 Jun 2016, Lothar Waßmann wrote: > > > > > > > Hi, > > > > > > > > On Thu, 9 Jun 2016 14:51:25 +0100 Lee Jones wrote: > > >

Re: [RFC PATCHv3] usb: USB Type-C Connector Class

2016-06-11 Thread Oliver Neukum
On Fri, 2016-06-10 at 17:34 +0300, Heikki Krogerus wrote: > +static ssize_t > +preferred_role_store(struct device *dev, struct device_attribute > *attr, > +const char *buf, size_t size) > +{ > + struct typec_port *port = to_typec_port(dev); > + enum typec_role role;

[PATCH 0/2] acpi/pmic: add opregion driver for Intel BXT WhiskeyCove PMIC

2016-06-11 Thread Bin Gao
This series modifies the pen function signature to take bit field and adds a new opregion driver for Intel BXT WhiskeyCove PMIC. Yegnesh Iyer (1): acpi/pmic: Modifying the pen function signature to take bit field Ajay Thomas (1): acpi/pmic: Add opregion driver for Intel BXT WhiskeyCove PMIC

[PATCH 1/2] acpi/pmic: modify the pen function signature to take bit field

2016-06-11 Thread Bin Gao
Issue description: On some pmics, the policy enable for thermal alerts refers to different bit fields of the same registers, whereas on other pmics, the policy enable refers to the same bit field on different registers. Previous implementation did not provide the flexibility for supporting the firs

[PATCH 2/2] acpi/pmic: Add opregion driver for Intel BXT WhiskeyCove PMIC

2016-06-11 Thread Bin Gao
This patch adds operation region driver for Intel BXT WhiskeyCove PMIC. The register mapping is done as per the BXT WC data sheet. Signed-off-by: Ajay Thomas Signed-off-by: Bin Gao --- drivers/acpi/Kconfig | 6 + drivers/acpi/Makefile| 1 + drivers/acpi/pmic/

Re: possible new false positive in checkpatch

2016-06-11 Thread Tal Shorer
On Tue, Sep 15, 2015 at 6:01 PM, Andy Whitcroft wrote: > On Tue, Sep 15, 2015 at 05:50:40PM +0300, Tal Shorer wrote: > >> > Yes it feels like that should be eliding them completely, and likely any >> > following space as well, something like this: >> > >> > $s =~ s/$;+\s*//g; >> >

Re: [PATCH 01/48] clk: at91: replace usleep() by udelay() calls

2016-06-11 Thread Boris Brezillon
On Sat, 11 Jun 2016 00:03:04 +0200 Alexandre Belloni wrote: > From: Cyrille Pitchen > > Fix the main and slow clock .prepare() implementations which used to call > usleep() when the scheduler wasn't ready yet. > > Cc: Stephen Boyd > Cc: linux-...@vger.kernel.org > Signed-off-by: Cyrille Pitch

[PATCH 0/3] thermal: add thermal support for Intel BXT WhiskeyCove PMIC

2016-06-11 Thread Bin Gao
This series adds thermal support for Intel BXT WhiskeyCove PMIC Yegnesh Iyer (3): include/linux/mfd/intel_soc_pmic.h: add new data structures thermal: add Intel BXT WhiskeyCove PMIC thermal driver mfd/intel_soc_pmic_bxtwc: add Intel BXT WhiskeyCove PMIC ADC thermal channel-zone mapping i

[PATCH 1/3] include/linux/mfd/intel_soc_pmic.h: add new data structures

2016-06-11 Thread Bin Gao
This patch adds three new data structures: struct trip_config_map {}, struct thermal_irq_map {} and struct pmic_thermal_data {} which are required by some new drivers. Signed-off-by: ysiyer Signed-off-by: Bin Gao --- include/linux/mfd/intel_soc_pmic.h | 21 + 1 file changed,

[PATCH 2/3] thermal: add Intel BXT WhiskeyCove PMIC thermal driver

2016-06-11 Thread Bin Gao
This patch adds support for Intel BXT WhiskeyCove pmic thermal driver which is intended to handle the alert interrupts triggered upon thermal trip point cross and notify the thermal framework appropriately with the zone, temp, crossed trip and event details. Signed-off-by: Yegnesh Iyer Signed-off

Re: [PATCH 07/10] mm, oom: fortify task_will_free_mem

2016-06-11 Thread Tetsuo Handa
Michal Hocko wrote: > > Also, I think setting TIF_MEMDIE on p when find_lock_task_mm(p) != p is > > wrong. While oom_reap_task() will anyway clear TIF_MEMDIE even if we set > > TIF_MEMDIE on p when p->mm == NULL, it is not true for CONFIG_MMU=n case. > > Yes this would be racy for !CONFIG_MMU but

[PATCH 3/3] mfd/intel_soc_pmic_bxtwc: add Intel BXT WhiskeyCove PMIC ADC thermal channel-zone mapping

2016-06-11 Thread Bin Gao
This changes adds the mapping of Intel BXT WhiskeyCove PMIC ADC channel to thermal zone. This mapping is used in the pmic thermal driver to notify the thermal zone with the pmic adc channel alert interrupts. Signed-off-by: Yegnesh Iyer Signed-off-by: Bin Gao --- drivers/mfd/intel_soc_pmic_bxtwc

Re: [PATCH v2 08/15] clk: sunxi-ng: Add divider

2016-06-11 Thread Jean-Francois Moine
On Tue, 7 Jun 2016 22:41:47 +0200 Maxime Ripard wrote: > Add support for the various dividers (linear, table or pow-of-two based) > found in the CCU. > > Signed-off-by: Maxime Ripard > --- > drivers/clk/sunxi-ng/Makefile | 1 + > drivers/clk/sunxi-ng/ccu_div.c | 136 >

Re: [PATCH 1/2] liblockdep: Fix compile errors

2016-06-11 Thread Vishal Thanki
On Sat, Jun 11, 2016 at 5:53 AM, Sasha Levin wrote: > On 06/09/2016 09:34 AM, Vishal Thanki wrote: >> dfaaf3fa0: (Use __jhash_mix() for iterate_chain_key()) >> Fixed by adding jhash.h with minimal stuff required > > Can we, instead of copying it over, include jhash.h directly > (just like we do fo

Re: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels

2016-06-11 Thread Ivan Khoronzhuk
On 11.06.16 04:17, David Miller wrote: From: Ivan Khoronzhuk Date: Sat, 11 Jun 2016 01:11:54 +0300 Based on master master... of what? master of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git but it's applicable on linux-next master also. -- Regards, Ivan Khoronzhuk

Re: [Xen-devel] [PATCH 1/7] x86/xen: Simplify set_aliased_prot

2016-06-11 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Wed, May 25, 2016 at 2:50 AM, David Vrabel wrote: > > On 24/05/16 23:48, Andy Lutomirski wrote: > >> In aa1acff356bb ("x86/xen: Probe target addresses in > >> set_aliased_prot() before the hypercall"), I added an explicit probe > >> to work around a hypercall issue

Re: [PATCH v3 1/2] clocksource/arm_arch_timer: Force per-CPU interrupt to be level-triggered

2016-06-11 Thread Marc Zyngier
On Fri, 10 Jun 2016 10:39:22 -0700 David Daney wrote: > On 06/10/2016 12:29 AM, Marc Zyngier wrote: > > On Thu, 09 Jun 2016 14:10:48 -0700 > > David Daney wrote: > > > >> On 06/06/2016 10:56 AM, Marc Zyngier wrote: > >>> The ARM architected timer produces level-triggered interrupts (this > >>> i

Re: [PATCH 44/48] clocksource: atmel-pit: allow unselecting ATMEL_PIT

2016-06-11 Thread Thomas Gleixner
On Sat, 11 Jun 2016, Alexandre Belloni wrote: > With the new TCB clocksource driver, atmel platforms are now able to boot > without the PIT driver. Allow unselecting it. Yay! Thanks for doing this! tglx

Re: [PATCH 2/9] mm: implement new pkey_mprotect() system call

2016-06-11 Thread Thomas Gleixner
On Wed, 8 Jun 2016, Dave Hansen wrote: > Proposed semantics: > 1. protection key 0 is special and represents the default, >unassigned protection key. It is always allocated. > 2. mprotect() never affects a mapping's pkey_mprotect()-assigned >protection key. A protection key of 0 (even if s

Re: [PATCH V9 00/11] Support for ARM64 ACPI based PCI host controller

2016-06-11 Thread Tomasz Nowicki
On 11.06.2016 01:41, Bjorn Helgaas wrote: On Fri, Jun 10, 2016 at 09:55:08PM +0200, Tomasz Nowicki wrote: From the functionality point of view this series may be split into the following logic parts: 1. Export ECAM API and add parent device to pci_config_window 2. Add IO resources handling to P

Re: Using irq-crossbar.c

2016-06-11 Thread Marc Zyngier
On Fri, 10 Jun 2016 21:36:29 +0200 Mason wrote: > On 10/06/2016 18:05, Marc Zyngier wrote: > > > On 10/06/16 16:37, Sebastian Frias wrote: > > > >> here's the diff on our DT: > >> > >> --- tango4-common.dtsi 2016-06-10 16:23:08.244246017 +0200 > >> +++ tangox_irqv2-common.dtsi 2016-06-

Re: [PATCH v3 2/2] arm64: dts: Fix broken architected timer interrupt trigger

2016-06-11 Thread Marc Zyngier
On Fri, 10 Jun 2016 10:32:24 -0700 David Daney wrote: > On 06/10/2016 09:56 AM, Marc Zyngier wrote: > > On 10/06/16 17:50, David Daney wrote: > >> On 06/10/2016 12:23 AM, Marc Zyngier wrote: > >>> On Thu, 09 Jun 2016 14:06:02 -0700 > >>> David Daney wrote: > >>> > I spoke too soon... >

Re: [PATCH v2 1/2] net: ethernet: ti: cpsw: remove rx_descs property

2016-06-11 Thread Ivan Khoronzhuk
On 11.06.16 08:50, David Miller wrote: From: Ivan Khoronzhuk Date: Tue, 7 Jun 2016 16:59:35 +0300 if (!cpsw_common_res_usage_state(priv)) { + int buf_num; struct cpsw_priv *priv_sl0 = cpsw_get_slave_priv(priv, 0); Please always order local variable d

Re: [PATCH 48/48] ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding

2016-06-11 Thread Alexandre Belloni
; > url: > https://github.com/0day-ci/linux/commits/Alexandre-Belloni/ARM-at91-rework-Atmel-TCB-drivers/20160611-062134 > base: https://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91.git > at91-next > config: arm-at91_dt_defconfig (attached as .config) > compiler: arm-l

Re: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels

2016-06-11 Thread Ivan Khoronzhuk
On 11.06.16 12:24, Ivan Khoronzhuk wrote: On 11.06.16 04:17, David Miller wrote: From: Ivan Khoronzhuk Date: Sat, 11 Jun 2016 01:11:54 +0300 Based on master master... of what? master of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git but it's applicable on linux-next

[tip:x86/asm] x86/xen: Simplify set_aliased_prot()

2016-06-11 Thread tip-bot for Andy Lutomirski
Commit-ID: 99158f10e91768d34c5004c40c42f802b719bcae Gitweb: http://git.kernel.org/tip/99158f10e91768d34c5004c40c42f802b719bcae Author: Andy Lutomirski AuthorDate: Tue, 24 May 2016 15:48:38 -0700 Committer: Ingo Molnar CommitDate: Sat, 11 Jun 2016 11:28:11 +0200 x86/xen: Simplify set_al

Re: acpi: broken suspend to RAM with v4.7-rc1

2016-06-11 Thread Andrey Skvortsov
On 10 Jun, Rafael J. Wysocki wrote: > On Friday, June 10, 2016 11:32:10 PM Andrey Skvortsov wrote: > > Hi, > > > > On my laptop (DELL Vostro 1500) in v4.7-rc1 is broken suspend to RAM. > > Laptop doesn't finish suspend to RAM process (disks are off, but WiFi > > and Power LEDs are still on). The o

Re: [PATCH 44/48] clocksource: atmel-pit: allow unselecting ATMEL_PIT

2016-06-11 Thread Alexandre Belloni
On 11/06/2016 at 11:43:54 +0200, Thomas Gleixner wrote : > On Sat, 11 Jun 2016, Alexandre Belloni wrote: > > > With the new TCB clocksource driver, atmel platforms are now able to boot > > without the PIT driver. Allow unselecting it. > > Yay! Thanks for doing this! > Sure! Can you still check

[PATCH v2 0/2] media: add et8ek8 camera sensor driver and documentation

2016-06-11 Thread Ivaylo Dimitrov
This series adds driver for Toshiba et8ek8 camera sensor found in Nokia N900 Changes from v2: - driver and documentation split into separate patches - removed custom controls - code changed according to the comments on v1 Ivaylo Dimitrov (2): media: Driver for Toshiba et8ek8 5MP sensor me

[PATCH v2 2/2] media: et8ek8: Add documentation

2016-06-11 Thread Ivaylo Dimitrov
Add DT bindings description Signed-off-by: Ivaylo Dimitrov --- .../bindings/media/i2c/toshiba,et8ek8.txt | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/toshiba,et8ek8.txt diff --git a/Documentation/devicetr

[PATCH v2 1/2] media: Driver for Toshiba et8ek8 5MP sensor

2016-06-11 Thread Ivaylo Dimitrov
The sensor is found in Nokia N900 main camera Signed-off-by: Ivaylo Dimitrov --- drivers/media/i2c/Kconfig|1 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/et8ek8/Kconfig |6 + drivers/media/i2c/et8ek8/Makefile|2 + drivers/med

Re: [PATCH V2 1/1] iio: light: Added CM36672 Proximity Sensor Driver.

2016-06-11 Thread Jonathan Cameron
On 09/06/16 14:54, Anatol Pomazau wrote: > Hi > > Thanks for the update > > On Thu, Jun 9, 2016 at 2:00 AM, Kevin Tsai wrote: >> >> Added Vishay Capella CM36672 Proximity Sensor IIO driver. Support both >> ACPI and Device Tree. >> >> Signed-off-by: Kevin Tsai >> --- >> V2: >> Thanks commends f

Re: [PATCH V2 1/1] iio: light: Added CM36672 Proximity Sensor Driver.

2016-06-11 Thread Jonathan Cameron
On 09/06/16 10:00, Kevin Tsai wrote: > Added Vishay Capella CM36672 Proximity Sensor IIO driver. Support both > ACPI and Device Tree. > > Signed-off-by: Kevin Tsai Few additional bits from me. Thanks, Jonathan > --- > V2: > Thanks commends from Peter Meerwald-Stadler, Jonathan Cameron, and Lin

Re: PROBLEM: Resume form hibernate broken by setting NX on gap

2016-06-11 Thread Rafael J. Wysocki
On Saturday, June 11, 2016 03:47:59 AM Rafael J. Wysocki wrote: > On Saturday, June 11, 2016 02:13:45 AM Rafael J. Wysocki wrote: > > On Saturday, June 11, 2016 12:33:31 AM Rafael J. Wysocki wrote: > > > On Friday, June 10, 2016 04:28:01 PM Logan Gunthorpe wrote: > > > > > > > > On 10/06/16 04:29

Re: acpi: broken suspend to RAM with v4.7-rc1

2016-06-11 Thread Rafael J. Wysocki
On Saturday, June 11, 2016 01:49:22 PM Andrey Skvortsov wrote: > On 10 Jun, Rafael J. Wysocki wrote: > > On Friday, June 10, 2016 11:32:10 PM Andrey Skvortsov wrote: > > > Hi, > > > > > > On my laptop (DELL Vostro 1500) in v4.7-rc1 is broken suspend to RAM. > > > Laptop doesn't finish suspend to R

[PATCH 6/6] hid: hid-sensor-hub: Add ISH quirk

2016-06-11 Thread Srinivas Pandruvada
Need enum quirk to change the base of enums to 1 for power and report descriptors. Signed-off-by: Srinivas Pandruvada --- drivers/hid/hid-sensor-hub.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c index 3d5ba5b..658a607 100644

[PATCH 1/6] Documentation: hid: Intel ISH HID document

2016-06-11 Thread Srinivas Pandruvada
Document explaining ISH HID operation and implementation. Signed-off-by: Srinivas Pandruvada --- Documentation/hid/intel-ish-hid.txt | 417 1 file changed, 417 insertions(+) create mode 100644 Documentation/hid/intel-ish-hid.txt diff --git a/Documentation/h

[PATCH 0/6] Intel Integrated Sensor Hub Support (ISH)

2016-06-11 Thread Srinivas Pandruvada
Starting from Cherrytrail, multiple generation of Intel processors offers on package sensor hub. Several recent tablets, 2-in-1 convertible laptops are using ISH instead of external sensor hubs. This resulted in lack of support of sensor function like device rotation and auto backlight adjustment.

[PATCH 4/6] hid: intel-ish-hid: ISH HID client driver

2016-06-11 Thread Srinivas Pandruvada
From: Daniel Drubin This driver is responsible for implementing ISH HID client, which gets HID description and report. Once it has completely gets report descriptors, it registers as a HID LL drivers. This implements necessary callbacks so that it can be used by HID sensor hub driver. Signed-off

[PATCH 2/6] hid: intel_ish-hid: ISH Transport layer

2016-06-11 Thread Srinivas Pandruvada
From: Daniel Drubin The ISH transport layer (ishtp) is a bi-directional protocol implemented on the top of PCI based inter processor communication layer. This layer offers: - Connection management - Flow control with the firmware - Multiple client sessions - Client message transfer - Client messa

[PATCH 5/6] iio: hid-sensors: use asynchronous resume

2016-06-11 Thread Srinivas Pandruvada
Some platforms power off sensor hubs during S3 suspend, which will require longer time to resume. This hurts system resume time, so resume asynchronously. Signed-off-by: Srinivas Pandruvada --- drivers/iio/common/hid-sensors/hid-sensor-trigger.c | 21 - include/linux/hid-sens

[PATCH 3/6] hid: intel-ish-hid: ipc layer

2016-06-11 Thread Srinivas Pandruvada
From: Daniel Drubin This layer is responsible for - Enumerating over PCI bus - Inform FW about host readiness - Provide HW interface to transport layer for control and messages - Interrupt handling and routing Signed-off-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/Kconfig |

Re: [PATCH 42/48] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks

2016-06-11 Thread Boris Brezillon
On Sat, 11 Jun 2016 00:03:45 +0200 Alexandre Belloni wrote: > Add a driver for the Atmel Timer Counter Blocks. This driver provides a > clocksource and a clockevent device. The clockevent device is linked to the > clocksource counter and so it will run at the same frequency. > > This driver uses

Re: USB broken on Banana Pi in Linux 4.6

2016-06-11 Thread Marc Haber
On Tue, Jun 07, 2016 at 10:30:17AM -0700, Greg KH wrote: > Nothing obvious, can you use 'git bisect' to go from 4.5.0 to 4.6.0 to > find the offending commit? I can. The first round of bisecting let me end up with c8b710b3e4348119924051551b836c94835331b1 as the first bad commit, which is wrong, si

VFS regression ? Re: disfunctional floppy driver in kernels 4.5, 4.6 and 4.7

2016-06-11 Thread One Thousand Gnomes
On Sat, 11 Jun 2016 01:02:55 +0200 Wim Osterholt wrote: > L.S. > > up to vanilla kernel 4.4.13 floppy functionality performs like it should. > (On an x86 PC that is. With a 1.44MB diskette drive.) > >From kernel 4.5* and up it changed to barely usable. > > After a virgin start (cold or warm b

Re: [PATCH 3/3] i.MX: system.c: Replace magic numbers

2016-06-11 Thread Shawn Guo
On Tue, Jun 07, 2016 at 08:29:26AM -0700, Andrey Smirnov wrote: > Signed-off-by: Andrey Smirnov > --- > arch/arm/include/asm/hardware/cache-l2x0.h | 7 +++ I need Russell's ACK on this file. Shawn > arch/arm/mach-imx/system.c | 5 - > 2 files changed, 11 insertions(+),

Re: [PATCH v2 1/2] media: Driver for Toshiba et8ek8 5MP sensor

2016-06-11 Thread kbuild test robot
-sensor-driver-and-documentation/20160611-191922 base: git://linuxtv.org/media_tree.git master config: m32r-allyesconfig (attached as .config) compiler: m32r-linux-gcc (GCC) 4.9.0 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin

Re: [PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-11 Thread Shawn Guo
On Thu, Jun 09, 2016 at 08:40:33PM +0530, Bhuvanchandra DV wrote: > From: Stefan Agner > > In order to allow wake support in STOP sleep mode, clocks are > needed. Use imx_clk_gate2_cgr to disable automatic clock gating > in low power mode STOP. This allows to enable wake by UART using: > echo ena

[PATCH tip/master] [BUGFIX] kprobes/x86: Fix to clear TF bit in fault-on-single-stepping

2016-06-11 Thread Masami Hiramatsu
Fix kprobe_fault_handler to clear TF (trap flag) bit of flags register in the case of fault fixup on single-stepping. If we put a kprobe on the instruction which can cause a page fault (e.g. actual mov instructions in copy_user_*), that fault happens on a single-stepping buffer. In this case, kpro

Re: [PATCH 0/3] Add dis_rxdet_inp3_quirk property to USB3 node

2016-06-11 Thread Shawn Guo
On Fri, Jun 10, 2016 at 11:53:43AM +0530, Rajesh Bhagat wrote: > Adds dis_rxdet_inp3_quirk property to USB3 nodes of ls1021a, ls2080a > and ls1043a platform. > > Rajesh Bhagat (3): > arm: dts: ls1021a: Add dis_rxdet_inp3_quirk property to USB3 node > arm: dts: ls2080a: Add dis_rxdet_inp3_quirk

Re: [RFC PATCH 1/2] mm, tree wide: replace __GFP_REPEAT by __GFP_RETRY_HARD with more useful semantic

2016-06-11 Thread Tetsuo Handa
Michal Hocko wrote: > On Tue 07-06-16 21:11:03, Tetsuo Handa wrote: > > Remaining __GFP_REPEAT users are not always doing costly allocations. > > Yes but... > > > Sometimes they pass __GFP_REPEAT because the size is given from userspace. > > Thus, unconditional s/__GFP_REPEAT/__GFP_RETRY_HARD/g i

[PATCH 1/1] perf tools: use correct format specifier

2016-06-11 Thread Heinrich Schuchardt
waking is defined as unsigned long. So use %lu for printing. Signed-off-by: Heinrich Schuchardt --- tools/perf/builtin-record.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index d4cf1b0..4a470646 100644 ---

[PATCH] phy: marvell: fix LED configuration via marvell,reg-init

2016-06-11 Thread Clemens Gruber
Configuring the PHY LED registers for the Marvell 88E1510 and others is not possible, because regardless of the values in marvell,reg-init, it is later overridden in m88e1121_config_aneg with a non-standard default. This patch moves that default configuration to .config_init to allow setting the L

Re: [PATCH 5/8] ntb_tool: BUG: Ensure the buffer size is large enough to return all spads

2016-06-11 Thread Logan Gunthorpe
Ok, I'll add a comment. Logan On 10/06/16 08:35 PM, Allen Hubbe wrote: On Fri, Jun 10, 2016 at 6:54 PM, Logan Gunthorpe wrote: On hardware with 32 scratchpad registers the spad field in ntb tool could chop off the end. The maximum buffer size is increased from 256 to 15 times the number or sc

Re: [PATCH 6/8] ntb_tool: Add link status file to debugfs

2016-06-11 Thread Logan Gunthorpe
Hey Allen, Thanks for the feedback it's a bit more complicated but I don't object to that. I'll work something up on Monday. I was trying to avoid adding link controls, but if we do, would you say the module should still enable the link when it's installed? Or would we have the user explicit

Re: [PATCH 7/8] ntb_pingpong: Add a debugfs file to get the ping count

2016-06-11 Thread Logan Gunthorpe
The pp_debugfs_dir is already initialized by the module init function. If it doesn't exist here, I think we should just return instead of trying again. It's also worth noting, though it is probably no harm, the code here does not check debugfs_initialized(). +static int __init tool_init(void)

Re: [PATCH v2 1/4] mfd: mxs-lradc: Add support for mxs-lradc MFD

2016-06-11 Thread Jonathan Cameron
On 08/06/16 15:45, Ksenija Stanojevic wrote: > Add core files for mxs-lradc MFD driver. > > Signed-off-by: Ksenija Stanojevic > --- One really minor point inline that would make for a slighlty more 'obviously correct' driver. I haven't absolutely established there isn't a race (which not using t

[PATCH] perf tools: use %ul to print unsigned long

2016-06-11 Thread Heinrich Schuchardt
Always use %ul and not %ud to print unsigned long. Signed-off-by: Heinrich Schuchardt --- tools/perf/builtin-sched.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index afa0576..959cf6e

Re: Using irq-crossbar.c

2016-06-11 Thread Mason
On 11/06/2016 11:58, Marc Zyngier wrote: > Mason wrote: > >> I think Sebastian is even more baffled by the DT mess >> (sorry, intricacies) than I am. > > This mess is what has saved us from the apocalypse 5 years ago, and > describing a complex system is not easy (what a surprise...). The probl

Re: [PATCH v6] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-11 Thread Andrew Lunn
On Fri, Jun 10, 2016 at 10:51:56PM -0700, David Miller wrote: > From: Mario Limonciello > Date: Tue, 7 Jun 2016 13:22:37 -0500 > > > The RTL8153-AD supports a persistent system specific MAC address. > > This means a device plugged into two different systems with host side > > support will show d

[PATCH v3 2/2] media: et8ek8: Add documentation

2016-06-11 Thread Ivaylo Dimitrov
Add DT bindings description Signed-off-by: Ivaylo Dimitrov --- .../bindings/media/i2c/toshiba,et8ek8.txt | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/toshiba,et8ek8.txt diff --git a/Documentation/devicetr

[PATCH v3 0/2] media: add et8ek8 camera sensor driver and documentation

2016-06-11 Thread Ivaylo Dimitrov
This series adds driver for Toshiba et8ek8 camera sensor found in Nokia N900 Changes from v2: - fix build when CONFIG_PM is not defined Changes from v1: - driver and documentation split into separate patches - removed custom controls - code changed according to the comments on v1 Ivaylo Di

[PATCH v3 1/2] media: Driver for Toshiba et8ek8 5MP sensor

2016-06-11 Thread Ivaylo Dimitrov
The sensor is found in Nokia N900 main camera Signed-off-by: Ivaylo Dimitrov --- drivers/media/i2c/Kconfig|1 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/et8ek8/Kconfig |6 + drivers/media/i2c/et8ek8/Makefile|2 + drivers/med

[PATCH 1/1] perf tools: avoid null pointer dereference

2016-06-11 Thread Heinrich Schuchardt
If ttrace is NULL we should not dereference it. Strangely enough this is done for one component and not for the other. Signed-off-by: Heinrich Schuchardt --- tools/perf/builtin-trace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/builtin-trace.c b/tools/pe

Re: [PATCH] nfsd: Close a race between access checking/setting in nfs4_get_vfs_file

2016-06-11 Thread Oleg Drokin
On Jun 10, 2016, at 4:55 PM, J . Bruce Fields wrote: > On Fri, Jun 10, 2016 at 06:50:33AM -0400, Jeff Layton wrote: >> On Fri, 2016-06-10 at 00:18 -0400, Oleg Drokin wrote: >>> On Jun 9, 2016, at 5:01 PM, Oleg Drokin wrote: >>> Currently there's an unprotected access mode check in nfs4

Re: [PATCH] phy: marvell: fix LED configuration via marvell,reg-init

2016-06-11 Thread Andrew Lunn
On Sat, Jun 11, 2016 at 05:21:26PM +0200, Clemens Gruber wrote: > Configuring the PHY LED registers for the Marvell 88E1510 and others is > not possible, because regardless of the values in marvell,reg-init, it > is later overridden in m88e1121_config_aneg with a non-standard default. > > This pat

Re: [PATCH v2 2/4] iio: adc: mxs-lradc: Add support for adc driver

2016-06-11 Thread Jonathan Cameron
On 08/06/16 15:47, Ksenija Stanojevic wrote: > Add support for sixteen-channel 12-bit resolution ADC and its functions, > which include general-purpose ADC readings, battery voltage measurement, > and die temperature measurement. > > Signed-off-by: Ksenija Stanojevic Some really trivial white spa

Re: [PATCH v2 4/4] iio: adc: mxs-lradc: Remove driver

2016-06-11 Thread Jonathan Cameron
On 08/06/16 15:49, Ksenija Stanojevic wrote: > Since the driver has been split into mfd there is no reason for it to > stay, so remove it. > > Signed-off-by: Ksenija Stanojevic Acked-by: Jonathan Cameron This whole set will presumably go through the mfd tree once everyone is happy. Thanks, Jo

Re: [PATCH] iio: light: gp2ap020a00f: use iio helper function to lock direct mode

2016-06-11 Thread Jonathan Cameron
On 08/06/16 08:17, Jacek Anaszewski wrote: > Hi Alison, > > On 06/08/2016 02:19 AM, Alison Schofield wrote: >> Replace the code that guarantees the device stays in direct mode >> with iio_device_claim_direct_mode() which does same. Includes a >> tiny bit of refactoring (single case -> if) and sim

Re: [PATCH] iio: light: tcs3414: use iio helper function to guarantee direct mode

2016-06-11 Thread Jonathan Cameron
On 07/06/16 06:23, Peter Meerwald-Stadler wrote: > >> Replace the code that guarantees the device stays in direct mode >> with iio_device_claim_direct_mode() which does same. This allows >> removal of an unused lock in the device private global data. > > Acked-by: Peter Meerwald-Stadler Applied

Re: [PATCH] iio: light: isl29125: use iio helper function to guarantee direct mode

2016-06-11 Thread Jonathan Cameron
On 07/06/16 06:23, Peter Meerwald-Stadler wrote: > >> Replace the code that guarantees the device stays in direct mode >> with iio_device_claim_direct_mode() which does same. This allows >> removal of an unused lock in the device private global data. > > nice! > Acked-by: Peter Meerwald-Stadler

Re: [PATCH] iio: light: tcs3472: use iio helper function to guarantee direct mode

2016-06-11 Thread Jonathan Cameron
On 07/06/16 06:23, Peter Meerwald-Stadler wrote: > On Mon, 6 Jun 2016, Alison Schofield wrote: > >> Replace the code that guarantees the device stays in direct mode >> with iio_device_claim_direct_mode() which does same. This allows >> removal of an unused lock in the device private global data.

Re: [PATCH] iio: light: isl29125: use iio helper function to guarantee direct mode

2016-06-11 Thread Jonathan Cameron
On 11/06/16 16:57, Jonathan Cameron wrote: > On 07/06/16 06:23, Peter Meerwald-Stadler wrote: >> >>> Replace the code that guarantees the device stays in direct mode >>> with iio_device_claim_direct_mode() which does same. This allows >>> removal of an unused lock in the device private global data

[GIT PULL] Devicetree fixes for 4.7

2016-06-11 Thread Rob Herring
Hi Linus, Please pull DT fixes for 4.7. Details below. Rob The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git tags/devic

Re: [PATCH] iio: light: tcs3414: use iio helper function to guarantee direct mode

2016-06-11 Thread Jonathan Cameron
On 11/06/16 16:56, Jonathan Cameron wrote: > On 07/06/16 06:23, Peter Meerwald-Stadler wrote: >> >>> Replace the code that guarantees the device stays in direct mode >>> with iio_device_claim_direct_mode() which does same. This allows >>> removal of an unused lock in the device private global data

[PATCH 1/1] btrfs: Use correct format specifier

2016-06-11 Thread Heinrich Schuchardt
Component mirror_num of struct btrfsic_block is defined as unsigned int. Use %u as format specifier. Signed-off-by: Heinrich Schuchardt --- fs/btrfs/check-integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c index

[PATCH] gcc-plugins: disable under COMPILE_TEST

2016-06-11 Thread Kees Cook
Since adding the gcc plugin development headers is required for the gcc plugin support, we should ease into this new kernel build dependency more slowly. For now, disable the gcc plugins under COMPILE_TEST so that all*config builds will skip it. Signed-off-by: Kees Cook --- arch/Kconfig | 1

Re: [PATCH] iio: light: tcs3472: use iio helper function to guarantee direct mode

2016-06-11 Thread Jonathan Cameron
On 11/06/16 17:03, Jonathan Cameron wrote: > On 07/06/16 06:23, Peter Meerwald-Stadler wrote: >> On Mon, 6 Jun 2016, Alison Schofield wrote: >> >>> Replace the code that guarantees the device stays in direct mode >>> with iio_device_claim_direct_mode() which does same. This allows >>> removal of a

Re: [PATCH] iio: light: isl29125: use iio helper function to guarantee direct mode

2016-06-11 Thread Jonathan Cameron
On 11/06/16 17:05, Jonathan Cameron wrote: > On 11/06/16 16:57, Jonathan Cameron wrote: >> On 07/06/16 06:23, Peter Meerwald-Stadler wrote: >>> Replace the code that guarantees the device stays in direct mode with iio_device_claim_direct_mode() which does same. This allows removal o

Re: [PATCH] iio: inv_mpu6050: Fix use-after-free in ACPI code

2016-06-11 Thread Jonathan Cameron
On 06/06/16 13:33, Daniel Baluta wrote: > On Fri, Jun 3, 2016 at 9:30 PM, Crestez Dan Leonard > wrote: >> In some cases this can result in incorrectly returning a negative value >> from asus_acpi_get_sensor_info and the AK8963 magnetometer failing to >> show up. >> >> Cc: Srinivas Pandruvada >> S

Re: [PATCH 1/3] iio: mma8452: update contact information for Martin Kepplinger

2016-06-11 Thread Jonathan Cameron
On 03/06/16 13:51, Martin Kepplinger wrote: > Signed-off-by: Martin Kepplinger Applied to the togreg branch of iio.git Thanks for the update. Jonathan > --- > drivers/iio/accel/mma8452.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/accel/mma8452.c b/driv

Re: [PATCH 2/3] iio: mma8452: update device description in header comments

2016-06-11 Thread Jonathan Cameron
On 03/06/16 13:51, Martin Kepplinger wrote: > Signed-off-by: Martin Kepplinger Applied. > --- > drivers/iio/accel/mma8452.c | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c > index 9e679af..4be2a18

Re: [PATCH 3/3] iio: mma8452: update Freescale company information

2016-06-11 Thread Jonathan Cameron
On 06/06/16 11:18, Martin Kepplinger wrote: > Am 2016-06-06 um 11:08 schrieb Daniel Baluta: >> On Fri, Jun 3, 2016 at 3:51 PM, Martin Kepplinger wrote: >>> NXP took over Freescale, so add NXP to the driver descriptions >>> >> >> Is it worth to bother with these kind of changes? The part number >>

Re: [PATCH] gcc-plugins: disable under COMPILE_TEST

2016-06-11 Thread Paul Gortmaker
[[PATCH] gcc-plugins: disable under COMPILE_TEST] On 11/06/2016 (Sat 09:12) Kees Cook wrote: > Since adding the gcc plugin development headers is required for the > gcc plugin support, we should ease into this new kernel build dependency > more slowly. For now, disable the gcc plugins under COMPI

Re: [PATCH] iio: as3935: improve error reporting in as3935_event_work

2016-06-11 Thread Jonathan Cameron
On 31/05/16 15:53, Andrew F. Davis wrote: > On 05/30/2016 09:52 AM, Arnd Bergmann wrote: >> gcc warns about a potentially uninitialized variable use >> in as3935_event_work: >> >> drivers/iio/proximity/as3935.c: In function ‘as3935_event_work’: >> drivers/iio/proximity/as3935.c:231:6: error: ‘val’

Re: PROBLEM: Resume form hibernate broken by setting NX on gap

2016-06-11 Thread Logan Gunthorpe
Hey Rafael, Thank for looking into this. I tried the patch below applied to v4.6 and I still got a lockup on resume. Additionally there was a kernel warning at arch/x86/mm/pageattr.c:1414 change_page_attr_set_clr+0x2bb/0x440 and another one right afterwards at kernel/smp.c:416 smp_call_functi

Re: [PATCH] mailmap: update Matt Ranostay email address

2016-06-11 Thread Jonathan Cameron
On 06/06/16 04:37, Matt Ranostay wrote: > Set current email address to replace previous employers email addresses. > > Cc: Jonathan Cameron > Cc: Daniel Baluta > Cc: linux-...@vger.kernel.org > Signed-off-by: Matt Ranostay Applied. Didn't even know this existed ;) Jonathan > --- > .mailmap |

Re: [PATCH] iio: generic_buffer: Fix --trigger-num option

2016-06-11 Thread Jonathan Cameron
On 03/06/16 19:56, Crestez Dan Leonard wrote: > Initialize trig_num to -1 and handle trig_num=0 as a valid id. Good spot. Applied to the togreg branch of iio.git. Thanks, Jonathan > > Fixes: 7c7e9dad (iio: iio_generic_buffer: Add --trigger-num option) > Signed-off-by: Crestez Dan Leonard > ---

Re: [PATCH v2] iio: stx104: Add GPIO support for the Apex Embedded Systems STX104

2016-06-11 Thread Jonathan Cameron
On 03/06/16 18:42, William Breathitt Gray wrote: > The Apex Embedded Systems STX104 device features eight lines of digital > I/O (four digital inputs and four digital outputs). This patch adds GPIO > support for these eight lines of digital I/O via GPIOLIB. > > Signed-off-by: William Breathitt Gra

Re: [PATCH v4 2/5] clockevents: Add timed freeze

2016-06-11 Thread kbuild test robot
Hi, [auto build test ERROR on pm/linux-next] [also build test ERROR on v4.7-rc2 next-20160609] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/dbasehore-chromium-org/Add-suspend-to-idle-validatio

Re: [PATCH v2] staging: iio: ad5933: fix order of cycle conditions

2016-06-11 Thread Jonathan Cameron
On 01/06/16 20:25, Luis de Bethencourt wrote: > Correctly handle the settling time cycles value. The else branch is an > impossible condition, > 1022 in the else branch of > 511. Flipping the order. > > Based on the Table 13 at the bottom of Page 25 of the Data Sheet: > http://www.analog.com/media

Re: [RFC 6/7] iio: Refuse to register triggers with duplicate names

2016-06-11 Thread Jonathan Cameron
On 31/05/16 15:03, Lars-Peter Clausen wrote: > On 05/30/2016 02:49 PM, Crestez Dan Leonard wrote: >> On 05/29/2016 10:48 PM, Jonathan Cameron wrote: >>> On 23/05/16 19:40, Crestez Dan Leonard wrote: The trigger name is documented as unique but drivers are currently allowed to register tri

Re: [PATCH] staging: iio: fix ad7606_spi regression

2016-06-11 Thread Jonathan Cameron
On 30/05/16 14:54, Geert Uytterhoeven wrote: > On Mon, May 30, 2016 at 3:50 PM, Arnd Bergmann wrote: >> As pointed out by Geert Uytterhoeven, the patch was incorrect >> and breaks the driver, which was fortunately pointed out by >> this gcc warning: >> >> drivers/staging/iio/adc/ad7606_spi.c: In f

Re: [Cocci] [PATCH 3/4] scripts: add glimpse.sh for indexing the kernel

2016-06-11 Thread SF Markus Elfring
> Glimpse is a tool you can use to index the kernel. The tool > was recently open sourced under the ISC license and can be > obtained at: How do you think about to mention the script addition also directly in the commit message? > @@ -0,0 +1,12 @@ > +#!/bin/bash > + > +DIR=$(dirname $(readlink -

Re: [PATCH v2] iio: Add driver for Silabs si1132, si1141/2/3 and si1145/6/7 ambient light, uv index and proximity sensors

2016-06-11 Thread Jonathan Cameron
On 30/05/16 20:27, Crestez Dan Leonard wrote: > From: Peter Meerwald > > The si114x supports x=1,2,3 IR LEDs for proximity sensing together with > visible and IR ambient light sensing (ALS). > > Newer parts (si1132, si1145/6/7) can measure UV light and compute an UV index > > Signed-off-by: Pet

Re: [PATCH v2] staging: iio: ad5933: fix order of cycle conditions

2016-06-11 Thread Lars-Peter Clausen
On 06/11/2016 06:50 PM, Jonathan Cameron wrote: > On 01/06/16 20:25, Luis de Bethencourt wrote: >> Correctly handle the settling time cycles value. The else branch is an >> impossible condition, > 1022 in the else branch of > 511. Flipping the order. >> >> Based on the Table 13 at the bottom of Pag

Re: [PATCH v2] staging: iio: ad5933: fix order of cycle conditions

2016-06-11 Thread Jonathan Cameron
On 11/06/16 18:25, Lars-Peter Clausen wrote: > On 06/11/2016 06:50 PM, Jonathan Cameron wrote: >> On 01/06/16 20:25, Luis de Bethencourt wrote: >>> Correctly handle the settling time cycles value. The else branch is an >>> impossible condition, > 1022 in the else branch of > 511. Flipping the >>>

Re: PROBLEM: Resume form hibernate broken by setting NX on gap

2016-06-11 Thread Logan Gunthorpe
Hey Rafael, I tried this patch as well and there was no change. I have a couple tentative observations to make though. None of this is 100% clear to me so please correct me if I'm wrong anywhere: 1) Commit ab76f7b4ab only extends the NX bit between __ex_table and rodata; which, by my underst

Re: [PATCH v6] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-11 Thread David Miller
From: Andrew Lunn Date: Sat, 11 Jun 2016 17:39:21 +0200 > What is still open is do we want to accept it at all? Do we accept the > concept of putting the same MAC address on multiple interfaces at > hotplug time? Do we trust BIOS vendors to not keep changing DSDT > property name, since it is not

lib/atomic64_test.c:107:2: error: implicit declaration of function 'atomic64_add_unless'

2016-06-11 Thread kbuild test robot
Hi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3d0f0b6a5520878305589411b8d434fe088e4f21 commit: 86a8938078a8bb518c5376de493e348c7490d506 lib: Add self-test for atomic64_t date: 6 years ago config: frv-allmodc

  1   2   3   >