Re: [PATCH v3 4/8] rtc: ac100: Add RTC driver for X-Powers AC100

2016-06-25 Thread Alexandre Belloni
Hi, A few comments, mostly about style. On 20/06/2016 at 10:52:14 +0800, Chen-Yu Tsai wrote : > +struct ac100_rtc_dev { > + struct rtc_device *rtc; > + struct device *dev; > + struct regmap *regmap; > + struct mutex mutex; I don't think that mutex is needed. Instead, you can take

Re: [GIT pull] x86 fixes for 4.7

2016-06-25 Thread Rafael J. Wysocki
On Saturday, June 25, 2016 06:49:09 AM Linus Torvalds wrote: > On Sat, Jun 25, 2016 at 1:25 AM, Thomas Gleixner wrote: > > > > please pull the latest x86-urgent-for-linus git tree from: > > Nope. > > > This update contains: > > > > - The final fix for the hibernation resume path which addresse

Re: [PATCH v3 5/8] rtc: ac100: Add clk output support

2016-06-25 Thread Alexandre Belloni
On 20/06/2016 at 10:52:15 +0800, Chen-Yu Tsai wrote : > +struct ac100_clk32k { > + struct clk_hw hw; > + struct regmap *regmap; > + u8 offset; > +}; > + > +#define to_ac100_clk32k(_hw) container_of(_hw, struct ac100_clk32k, hw) > + > +#define AC100_RTC_32K_NAME "ac100-rtc-32k" > +#def

Re: [PATCH v3 4/8] rtc: ac100: Add RTC driver for X-Powers AC100

2016-06-25 Thread Alexandre Belloni
On 20/06/2016 at 10:52:14 +0800, Chen-Yu Tsai wrote : > +static int ac100_rtc_probe(struct platform_device *pdev) > +{ > + struct ac100_dev *ac100 = dev_get_drvdata(pdev->dev.parent); > + struct ac100_rtc_dev *chip; > + int ret; > + > + chip = devm_kzalloc(&pdev->dev, sizeof(*chip),

Re: [PATCH 1/3] spi: spidev: fix the check for spidev in dt

2016-06-25 Thread Mark Brown
On Fri, Jun 24, 2016 at 04:20:32PM +0200, Michal Suchanek wrote: > The check is supposed to warn about spidev specified directly in > devicetree as compatible. This just does not work. I have a devicetree > with no compatible whatsoever and hacked my kernel so I can manually > bind spidev. This st

Re: [PATCH 1/3] spi: spidev: fix the check for spidev in dt

2016-06-25 Thread Mark Brown
On Thu, Jun 23, 2016 at 05:41:19PM -, Michal Suchanek wrote: > The check is supposed to warn about spidev specified directly in > devicetree as compatible. This just does not work. I have a devicetree > with no compatible whatsoever and hacked my kernel so I can manually > bind spidev. This st

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-25 Thread Mark Brown
On Thu, Jun 23, 2016 at 05:41:20PM -, Michal Suchanek wrote: > SPI slave devices are not created when looking up driver for the slave > fails. Create a device anyway so it can be manually bound to a driver. > @@ -1543,11 +1542,10 @@ of_register_spi_device(struct spi_master *master, > struct d

[PATCH v3 4/5] mfd: rn5t618: register power off callback optionally

2016-06-25 Thread Stefan Agner
Only register power off if the PMIC is defined as system power controller (see Documentation/devicetree/bindings/power/ power-controller.txt). Signed-off-by: Stefan Agner Reviewed-by: Marcel Ziswiler --- drivers/mfd/rn5t618.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) dif

[PATCH v3 0/5] regulator: add Ricoh RN5T567 PMIC support

2016-06-25 Thread Stefan Agner
This patchset adds RN5T567 PMIC support which is used on the Toradex Colibri iMX7S/iMX7D modules. The existing RN5T618 is from the same family, hence this patchset uses the same driver and adds variant support. The Colibris currently do not use the PMIC's power off capabilities, as do the current

[PATCH v3 3/5] regulator: rn5t618: add RN5T567 PMIC support

2016-06-25 Thread Stefan Agner
Extend the driver to support Ricoh RN5T567. Support the additional DCDC and slightly different voltage range of LDORTC1. Signed-off-by: Stefan Agner Reviewed-by: Marcel Ziswiler Acked-by: Mark Brown Acked-by: Lee Jones --- drivers/regulator/Kconfig | 5 +++-- drivers/regulator/rn

[PATCH v3 2/5] mfd: add Ricoh RN5T567 PMIC support

2016-06-25 Thread Stefan Agner
The Ricoh RN5T567 is from the same family as the Ricoh RN5T618 is, the differences are: + DCDC4 + Slightly different output voltage/currents + 32kHz Output - ADC/Charger capabilities Signed-off-by: Stefan Agner Reviewed-by: Marcel Ziswiler Acked-by: Rob Herring --- Documentation/devicetree/bi

[PATCH v3 1/5] ARM: dts: meson: minix-neo-x8: define PMIC as power controller

2016-06-25 Thread Stefan Agner
The PMIC driver used to register itself as poweroff controller by default, hence assuming that this device is using the PMIC as system power controller. Signed-off-by: Stefan Agner Reviewed-by: Marcel Ziswiler --- arch/arm/boot/dts/meson8-minix-neo-x8.dts | 1 + 1 file changed, 1 insertion(+)

[PATCH v3 5/5] mfd: rn5t618: register restart handler

2016-06-25 Thread Stefan Agner
Use the PMIC's repower capability for reboots. Register a restart handler and use a slightly elevated priority of 192 since the PMIC has suprior reset capability (causing a system wide reset). Signed-off-by: Stefan Agner Reviewed-by: Marcel Ziswiler --- drivers/mfd/rn5t618.c | 42 ++

RE: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it is NULL

2016-06-25 Thread Chen, Yu C
Hi, > -Original Message- > From: Pavel Machek [mailto:pa...@ucw.cz] > Sent: Sunday, June 26, 2016 12:51 AM > To: Chen, Yu C > Cc: linux...@vger.kernel.org; x...@kernel.org; Rafael J. Wysocki; Len Brown; > Peter Zijlstra; H. Peter Anvin; Borislav Petkov; Brian Gerst; Thomas Gleixner; > Ingo

Re: [PATCH 3/3] drivers core: allow id match override when manually binding driver

2016-06-25 Thread Mark Brown
On Thu, Jun 23, 2016 at 05:41:20PM -, Michal Suchanek wrote: > This allows binding spidev on any slave device by hand using sysfs > without adding superfluous compatibles or any other needless > complication. This says "spidev" but it's a change to the driver core, not something that is speci

RE: [PATCH 2/4][RFC v2] PM / sleep: Introduce arch-specific hook for disable/enable nonboot cpus

2016-06-25 Thread Chen, Yu C
Hi, > -Original Message- > From: Pavel Machek [mailto:pa...@ucw.cz] > Sent: Sunday, June 26, 2016 12:52 AM > To: Chen, Yu C > Cc: linux...@vger.kernel.org; x...@kernel.org; Rafael J. Wysocki; Len Brown; > Peter Zijlstra; H. Peter Anvin; Borislav Petkov; Brian Gerst; Thomas Gleixner; > In

undefined reference to `printk'

2016-06-25 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: da2f6aba4a21f8da3331e5251a117c52764da579 commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT date

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-25 Thread Linus Torvalds
On Sat, Jun 25, 2016 at 4:30 PM, Andy Lutomirski wrote: > > Maybe I'm misunderstanding the role of release_task. It looks like > there's this path in the scheduler I can borrow: > > if (unlikely(prev_state == TASK_DEAD)) { > > With a kludge in place to free the stack in there and release_task

include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'

2016-06-25 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: da2f6aba4a21f8da3331e5251a117c52764da579 commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays date: 2

RE: [PATCH 3/4][RFC v2] PM / hibernate: introduce a flag to indicate resuming from hibernation

2016-06-25 Thread Chen, Yu C
Hi, > -Original Message- > From: Pavel Machek [mailto:pa...@ucw.cz] > Sent: Sunday, June 26, 2016 12:53 AM > To: Chen, Yu C > Cc: linux...@vger.kernel.org; x...@kernel.org; Rafael J. Wysocki; Len Brown; > Peter Zijlstra; H. Peter Anvin; Borislav Petkov; Brian Gerst; Thomas Gleixner; > Ingo

fs/binfmt_em86.c:73:35: error: passing argument 2 of 'copy_strings_kernel' from incompatible pointer type

2016-06-25 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: da2f6aba4a21f8da3331e5251a117c52764da579 commit: ea8daa7b97842aab8507b5b5b1e3226cf2d514a6 kbuild: Add option to turn incompatible pointer check into error date:

Re: [PATCH 1/3] spi: spidev: fix the check for spidev in dt

2016-06-25 Thread Michal Suchanek
On 26 June 2016 at 03:09, Mark Brown wrote: > On Fri, Jun 24, 2016 at 04:20:32PM +0200, Michal Suchanek wrote: > >> The check is supposed to warn about spidev specified directly in >> devicetree as compatible. This just does not work. I have a devicetree >> with no compatible whatsoever and hacked

Re: [PATCH 1/3] spi: spidev: fix the check for spidev in dt

2016-06-25 Thread Michal Suchanek
On 26 June 2016 at 03:13, Mark Brown wrote: > On Thu, Jun 23, 2016 at 05:41:19PM -, Michal Suchanek wrote: > >> The check is supposed to warn about spidev specified directly in >> devicetree as compatible. This just does not work. I have a devicetree >> with no compatible whatsoever and hacked

Re: [PATCH] locking/osq: Drop the overload of osq lock

2016-06-25 Thread Boqun Feng
On Sat, Jun 25, 2016 at 09:20:25PM +0200, Peter Zijlstra wrote: > On Sun, Jun 26, 2016 at 01:27:56AM +0800, panxinhui wrote: > > >> Would that not have issues where the owner cpu is kept running but the > > >> spinner (ie. _this_ vcpu) gets preempted? I would think that in that > > >> case we too w

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-25 Thread Michal Suchanek
On 26 June 2016 at 03:15, Mark Brown wrote: > On Thu, Jun 23, 2016 at 05:41:20PM -, Michal Suchanek wrote: >> SPI slave devices are not created when looking up driver for the slave >> fails. Create a device anyway so it can be manually bound to a driver. > >> @@ -1543,11 +1542,10 @@ of_registe

[PATCH v2 1/5] hwmon: (tmp102) Use devm_add_action to register cleanup function

2016-06-25 Thread Guenter Roeck
By registering a cleanup function with devm_add_action(), we can simplify the error path in the probe function and drop the remove function entirely. Signed-off-by: Guenter Roeck --- v2: No change drivers/hwmon/tmp102.c | 54 ++ 1 file changed, 19

[PATCH v2 4/5] hwmon: (tmp102) Rework chip configuration

2016-06-25 Thread Guenter Roeck
So far the chip was forced into polarity 0, even if it was preconfigured differently. Do not touch the polarity when configuring the chip. Also, the configuration register was read beack to check if the configuration 'sticks'. Ultimately, that is similar to checking if the chip is a tmp102 in the

[PATCH v2 2/5] hwmon: (tmp102) Drop FSF address

2016-06-25 Thread Guenter Roeck
The FSF address can change, so drop it from the driver. Signed-off-by: Guenter Roeck --- v2: No change drivers/hwmon/tmp102.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c index befd06b6f3a5..5bdf262e6a0e 100644 --- a/drivers/hwmon/tmp102

[PATCH v2 5/5] hwmon: (tmp102) Convert to use regmap, and drop local cache

2016-06-25 Thread Guenter Roeck
By concerting the driver to regmap, we can use regmap to cache non-volatile registers. Stop caching the temperature register; while potentially reading it more often can result in reading it more often than necessary, this is offset by the gain due to not re-reading the limit registers. Cc: Mark B

[PATCH v2 3/5] hwmon: (tmp102) Improve handling of initial read delay

2016-06-25 Thread Guenter Roeck
If the chip was in shutdown mode when the driver was loaded, the first conversion is ready no more than 35 milli-seconds after the chip was taken out of shutdown. The driver delay was so far set to 333 ms (HZ / 3), which is much higher than the maximum time needed by the chip. Reduce the time to 3

[PATCH 01/19] pinctrl: freescale: remove needless module.h include

2016-06-25 Thread Paul Gortmaker
None of these files have anything modular in them, so they don't need to be bringing in module.h and all its dependencies. Cc: Linus Walleij Cc: linux-g...@vger.kernel.org Signed-off-by: Paul Gortmaker --- drivers/pinctrl/freescale/pinctrl-imx.c | 1 - drivers/pinctrl/freescale/pinctrl-im

[PATCH 19/19] pinctrl: remove orphaned exported ".remove" function

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_MXS drivers/pinctrl/freescale/Kconfig: bool ...meaning that it currently is not being built as a module by anyone. It also doesn't have any modular functionality, so it doesn't ne

[PATCH 17/19] pinctrl: imx23: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX23 drivers/pinctrl/freescale/Kconfig: bool ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so

[PATCH 06/19] pinctrl: imx35: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX35 drivers/pinctrl/freescale/Kconfig: bool "IMX35 pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is es

[PATCH 15/19] pinctrl: imx7d: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX7D drivers/pinctrl/freescale/Kconfig: bool "IMX7D pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is es

[PATCH 11/19] pinctrl: imx6q: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6Q drivers/pinctrl/freescale/Kconfig: bool "IMX6Q/DL pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

[PATCH 12/19] pinctrl: imx6sl: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6SL drivers/pinctrl/freescale/Kconfig: bool "IMX6SL pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

[PATCH 00/19] pinctrl/freescale: fix module usage in non-modular code

2016-06-25 Thread Paul Gortmaker
This series covers the audit of non-modular module code use in the drivers/pinctrl/freescale directory. It has a few more commits than I'd normally like in a single series, but fortunately the most of them are dead simple. That said, I can put the branch on kernel.org if that makes life easier fo

[PATCH 02/19] pinctrl: imx1: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX1 drivers/pinctrl/freescale/Kconfig: bool "IMX1 pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is esse

[PATCH 09/19] pinctrl: imx53: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX53 drivers/pinctrl/freescale/Kconfig: bool "IMX53 pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is es

[PATCH 10/19] pinctrl: imx6dl: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6Q drivers/pinctrl/freescale/Kconfig: bool "IMX6Q/DL pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

[PATCH 13/19] pinctrl: imx6sx: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6SX drivers/pinctrl/freescale/Kconfig: bool "IMX6SX pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

[PATCH 08/19] pinctrl: imx51: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX51 drivers/pinctrl/freescale/Kconfig: bool "IMX51 pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is es

[PATCH 18/19] pinctrl: imx28: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX28 drivers/pinctrl/freescale/Kconfig: bool ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so

[PATCH 03/19] pinctrl: imx21: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX21 drivers/pinctrl/freescale/Kconfig: bool "i.MX21 pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is e

[PATCH 14/19] pinctrl: imx6ul: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6UL drivers/pinctrl/freescale/Kconfig: bool "IMX6UL pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

[PATCH 07/19] pinctrl: imx50: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX50 drivers/pinctrl/freescale/Kconfig: bool "IMX50 pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is es

[PATCH 05/19] pinctrl: imx27: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX27 drivers/pinctrl/freescale/Kconfig: bool "IMX27 pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is es

[PATCH 16/19] pinctrl: vf610: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_VF610 drivers/pinctrl/freescale/Kconfig: bool "Freescale Vybrid VF610 pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modul

[PATCH 04/19] pinctrl: imx25: make it explicitly non-modular

2016-06-25 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX25 drivers/pinctrl/freescale/Kconfig:bool "IMX25 pinctrl driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

include/linux/unaligned/access_ok.h:7:19: error: redefinition of 'get_unaligned_le16'

2016-06-25 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: da2f6aba4a21f8da3331e5251a117c52764da579 commit: 3194c6870158e305dac2af52f83681e9cb67280f NFC: nfcmrvl: add firmware download support date: 8 months ago config:

Re: [PATCH 3/5] cputime: allow irq time accounting to be selected as an option

2016-06-25 Thread kbuild test robot
Hi, [auto build test WARNING on tip/sched/core] [also build test WARNING on next-20160624] [cannot apply to v4.7-rc4] [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/riel-redhat-com/sched-time-fi

[PATCH v2] ARM: dts: sun7i: Add BCM53125 switch nodes to the lamobo-r1 board

2016-06-25 Thread Florian Fainelli
Now that we have a proper binding for Ethernet switches hanging off different buses, and a driver for the BCM53125 switch, add its Device Tree as a child MDIO node, at MDIO address 30 (Broadcom pseudo-PHY address) and describe the ports layout of the Lamobo R1 board. This switch is hanging off the

[PATCH 0/5] hwmon: New hwmon registration API

2016-06-25 Thread Guenter Roeck
Up to now, each hwmon driver has to implement its own sysfs attributes. This requires a lot of template code, and distracts from the driver's core function to read and write chip registers. To be able to reduce driver complexity, move sensor attribute handling and thermal zone registration into th

[PATCH 6/7] hwmon: (core) Add fan attribute support to new API

2016-06-25 Thread Guenter Roeck
Signed-off-by: Guenter Roeck --- drivers/hwmon/hwmon.c | 16 include/linux/hwmon.h | 27 +++ 2 files changed, 43 insertions(+) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index 363ec5660d0c..ca18a6f4f9bc 100644 --- a/drivers/hwmon/hwmon.c +

[PATCH 4/7] hwmon: (core) Add power attribute support to new API

2016-06-25 Thread Guenter Roeck
Signed-off-by: Guenter Roeck --- drivers/hwmon/hwmon.c | 30 include/linux/hwmon.h | 54 +++ 2 files changed, 84 insertions(+) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index 8c3c7ffe828b..dff07e8f9509

[PATCH 5/7] hwmon: (core) Add energy and humidity attribute support to new API

2016-06-25 Thread Guenter Roeck
Signed-off-by: Guenter Roeck --- drivers/hwmon/hwmon.c | 20 include/linux/hwmon.h | 29 + 2 files changed, 49 insertions(+) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index dff07e8f9509..363ec5660d0c 100644 --- a/drivers/hwmon/hwm

[PATCH 7/7] hwmon: (core) Document new kernel API

2016-06-25 Thread Guenter Roeck
Describe the new registration API function as well as the data structures it requires. Signed-off-by: Guenter Roeck --- Documentation/hwmon/hwmon-kernel-api.txt | 229 ++- 1 file changed, 227 insertions(+), 2 deletions(-) diff --git a/Documentation/hwmon/hwmon-kernel

[PATCH 3/7] hwmon: (core) Add current attribute support to new API

2016-06-25 Thread Guenter Roeck
Signed-off-by: Guenter Roeck --- drivers/hwmon/hwmon.c | 21 + include/linux/hwmon.h | 36 2 files changed, 57 insertions(+) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index d2916074befd..8c3c7ffe828b 100644 --- a/drivers/h

[PATCH 2/7] hwmon: (core) Add voltage attribute support to new API

2016-06-25 Thread Guenter Roeck
Signed-off-by: Guenter Roeck --- drivers/hwmon/hwmon.c | 21 + include/linux/hwmon.h | 35 +++ 2 files changed, 56 insertions(+) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index 9530644ae297..d2916074befd 100644 --- a/drivers/hw

[PATCH 1/7] hwmon: (core) New hwmon registration API

2016-06-25 Thread Guenter Roeck
Up to now, each hwmon driver has to implement its own sysfs attributes. This requires a lot of template code, and distracts from the driver's core function to read and write chip registers. To be able to reduce driver complexity, move sensor attribute handling and thermal zone registration into hw

Re: [PATCH v3 1/3] arm: tegra: initial support for apalis tk1

2016-06-25 Thread kbuild test robot
Hi, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.7-rc4 next-20160624] [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/Marcel-Ziswiler/arm-tegra-initial-support-for-apalis

[PATCH V5 1/3] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-06-25 Thread Rui Wang
v5: Remove #ifdef CONFIG_X86 from setup-bus.c, making it neutral to archs. v4: Add comments explaining when to call acpi_ioapic_add(). v3: Previous versions break mips. This version fixes it. IOAPICs present during system boot aren't added to ioapic_list, thus are unable to be hot-removed. Fix it

Re: [RFC] kref: pin objects with dangerously high reference count

2016-06-25 Thread Jann Horn
On Sun, Jun 26, 2016 at 2:03 AM, PaX Team wrote: > On 25 Jun 2016 at 3:13, Jann Horn wrote: > >> Since 2009 or so, PaX had reference count overflow mitigation code. My main >> reasons for reinventing the wheel are: >> >> - PaX adds arch-specific code, both in the atomic_t operations and in >>

arch/ia64/kernel/entry.S:621: Error: Operand 2 of `adds' should be a 14-bit integer (-8192-8191)

2016-06-25 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: da2f6aba4a21f8da3331e5251a117c52764da579 commit: da48d094ce5d7c7dcdad9011648a81c42fd1c2ef Kconfig: remove HAVE_LATENCYTOP_SUPPORT date: 5 months ago config: ia64

Re: [PATCH 3/3] drivers core: allow id match override when manually binding driver

2016-06-25 Thread Dan Williams
On Thu, Jun 23, 2016 at 10:41 AM, Michal Suchanek wrote: > This allows binding spidev on any slave device by hand using sysfs > without adding superfluous compatibles or any other needless > complication. > > Note that any slave driver that requires configuration will fail to > probe anyway. Only

Re: powerpc/fadump: trivial fix of spelling mistake, clean up message

2016-06-25 Thread Michael Ellerman
On Fri, 2016-24-06 at 17:43:00 UTC, Colin King wrote: > From: Colin Ian King > > trivial fix to spelling mistake "rgistration" and minor clean up > of the printk error message Can you also: - use pr_err() - unsplit the message, ie. keep the string all on one line. cheers

Re: [PATCH V2 13/63] clocksource/drivers/bcm2835_timer: Convert init function to return error

2016-06-25 Thread Eric Anholt
Daniel Lezcano writes: > The init functions do not return any error. They behave as the following: > > - panic, thus leading to a kernel crash while another timer may work and >make the system boot up correctly > > or > > - print an error and let the caller unaware if the state of the syst

RE: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it is NULL

2016-06-25 Thread Chen, Yu C
> -Original Message- > From: Chen, Yu C > Sent: Sunday, June 26, 2016 9:17 AM > To: 'Pavel Machek' > Cc: linux...@vger.kernel.org; x...@kernel.org; Rafael J. Wysocki; Len Brown; > Peter Zijlstra; H. Peter Anvin; Borislav Petkov; Brian Gerst; Thomas Gleixner; > Ingo Molnar; Varun Koyyalagun

[PATCH] geneve: fix max_mtu setting

2016-06-25 Thread Haishuang Yan
For ipv6+udp+geneve encapsulation data, the max_mtu should subtract sizeof(ipv6hdr), instead of sizeof(iphdr). Signed-off-by: Haishuang Yan --- drivers/net/geneve.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index aa61

[sched] a550c94136: BUG: unable to handle kernel NULL pointer dereference at (null)

2016-06-25 Thread kernel test robot
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/vmap_stack commit a550c94136a5253a727e3af39f306b8c55b1721e ("sched: Free the stack early if CONFIG_THREAD_INFO_IN_TASK") on test machine: vm-lkp-wsx03-quantal-x86_64: 2 threads qemu-system

vgacon.c:undefined reference to `screen_info'

2016-06-25 Thread kbuild test robot
Hi, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: da2f6aba4a21f8da3331e5251a117c52764da579 commit: f69405ce6c0fc9f4a039011007371b31f80b470d openrisc: include: asm: Kbuild: add default "vga.h" date:

Re: [PATCH] locking/osq: Drop the overload of osq lock

2016-06-25 Thread panxinhui
> 在 2016年6月26日,03:12,Peter Zijlstra 写道: > > On Sun, Jun 26, 2016 at 01:27:51AM +0800, panxinhui wrote: > >> by the way I still think mutex_unlock has a big overload too. > > Do you mean overhead? > oh, maybe you are right. mutex_unlock ’s implementation uses inc_return variant on ppc, and

Re: [PATCH] locking/osq: Drop the overload of osq lock

2016-06-25 Thread panxinhui
> 在 2016年6月26日,03:20,Peter Zijlstra 写道: > > On Sun, Jun 26, 2016 at 01:27:56AM +0800, panxinhui wrote: Would that not have issues where the owner cpu is kept running but the spinner (ie. _this_ vcpu) gets preempted? I would think that in that case we too want to stop spinning. >>>

[PATCH 2/2] pinctrl: qcom: msm8974: Add hsic_ctl pinmux

2016-06-25 Thread Stephen Boyd
The msm8974 pinctrl variant has a couple USB HSIC "glue" registers that let us mux between the pinctrl register settings or the HSIC core settings for the HSIC pins (gpio 144 and gpio 145). Support this method of operation by adding hsic_data and hsic_strobe pins that can select between hsic_ctl an

[PATCH 0/2] Support HSIC "pins" on msm8974 tlmm

2016-06-25 Thread Stephen Boyd
This is part of a larger patch series that adds support for the USB HSIC controller on msm8974 based SoCs. The first patch here is a minor fix for a problem that isn't happening yet but could happen in the future. The second patch adds an hsic pin so we can configure the hsic bits that live in the

[PATCH 1/2] pinctrl: qcom: Clear all function selection bits

2016-06-25 Thread Stephen Boyd
The function selection bitfield is not always 3 bits wide. Sometimes it is 4 bits wide. Let's use the npins struct member to determine how many bits wide the function selection bitfield is so we clear the correct amount of bits in the register while remuxing the pins. Cc: Bjorn Andersson Signed-o

[PATCH] usb: misc: Add driver for usb4604

2016-06-25 Thread Stephen Boyd
This is a minimal driver to support bringing a usb4604 device from microchip out of reset and into hub mode. The usb4604 device is related to the usb3503 device, but it didn't seem close enough to warrant putting both into the same file. This patch borrows some of the usb3503 structure and trims it

[PATCH] usb: ulpi: Automatically set driver::owner with ulpi_driver_register()

2016-06-25 Thread Stephen Boyd
Let's follow other driver registration functions and automatically set the driver's owner member to THIS_MODULE when ulpi_driver_register() is called. This allows ulpi driver writers to forget about this boiler plate detail and avoids common bugs in the process. Cc: Heikki Krogerus Signed-off-by:

[PATCH 0/3] Update pm8941 spmi regulators for USB OTG

2016-06-25 Thread Stephen Boyd
While rewriting the USB support for MSM SoCs I ran into a few minor bugs with the pm8941 regulator driver that hadn't been found before. These patches are part of a larger series that allows me to get proper USB OTG support working on the apq8074 dragonboard. Stephen Boyd (3): regulator: qcom_sp

[PATCH 3/3] regulator: qcom_spmi: Add support for get_mode/set_mode on switches

2016-06-25 Thread Stephen Boyd
The voltage switches support mode switching, so add support for these ops to those types of regulators. Cc: Bjorn Andersson Fixes: e92a4047419c ("regulator: Add QCOM SPMI regulator driver") Signed-off-by: Stephen Boyd --- drivers/regulator/qcom_spmi-regulator.c | 2 ++ 1 file changed, 2 inserti

[PATCH 2/3] regulator: qcom_spmi: Update mvs1/mvs2 switches on pm8941

2016-06-25 Thread Stephen Boyd
The mvs1 and mvs2 switches are actually called 5vs1 and 5vs2 on some datasheets. Let's rename them to match the datasheets and also match the RPM based regulator driver which calls these by their 5vs names (see qcom_smd-regulator.c). There aren't any users of these regulators so far, so there aren'

[PATCH 1/3] regulator: qcom_spmi: Add support for S4 supply on pm8941

2016-06-25 Thread Stephen Boyd
The S4 supply is sometimes called the boost regulator because it outputs 5V. Typically it's connected to the 5vs1 and 5vs2 switches for use in USB OTG and HDMI applications. Add support for this regulator which was mistakenly left out from the initial submission of this driver. Cc: Bjorn Andersson

[PATCH] power: qcom_smbb: Make an extcon for usb cable detection

2016-06-25 Thread Stephen Boyd
On these PMICs the usb cable connection/disconnection is indicated by the usb-valid interrupt being high or low respectively. Let's make an extcon for that, so we can notify usb drivers of the cable state. Cc: Bjorn Andersson Cc: Chanwoo Choi Signed-off-by: Stephen Boyd --- drivers/power/qcom_

[PATCH] extcon: Add support for qcom SPMI PMIC USB id detection hardware

2016-06-25 Thread Stephen Boyd
Some Qualcomm PMICs have a misc device that performs USB id pin detection via an interrupt. When the interrupt triggers, we should read the interrupt line to see if it has gone high or low. If the interrupt is low then the ID pin is grounded, and if the interrupt is high then the ID pin is being he

Re: [PATCH] locking/osq: Drop the overload of osq lock

2016-06-25 Thread Boqun Feng
On Sun, Jun 26, 2016 at 01:21:04PM +0800, panxinhui wrote: > > > 在 2016年6月26日,03:20,Peter Zijlstra 写道: > > > > On Sun, Jun 26, 2016 at 01:27:56AM +0800, panxinhui wrote: > Would that not have issues where the owner cpu is kept running but the > spinner (ie. _this_ vcpu) gets preempted?

Re: [PATCH 01/27] [AARCH64] Fix utmp struct for compatibility reasons.

2016-06-25 Thread Yury Norov
On Sat, Jun 25, 2016 at 04:26:01PM -0700, Andrew Pinski wrote: > On Fri, Jun 24, 2016 at 4:38 AM, Florian Weimer wrote: > > On 06/23/2016 09:56 AM, Andreas Schwab wrote: > >> > >> Andrew Pinski writes: > >> > >>> So the question becomes do we care enough about the incompatibles > >>> between AARC

[GIT PULL] tpmdd updates for Linux 4.8

2016-06-25 Thread Jarkko Sakkinen
James, This patch set contains two new major features: * Multi-instance TPM proxy driver * Rework of sharing common TIS code with different physical interfaces. In addition, there are a vast number of small fixes and cleanups. /Jarkko Multi-instance TPM proxy driver ===

Re: [PATCH 2/3] mailbox: Add Broadcom PDC mailbox driver

2016-06-25 Thread Jassi Brar
On Tue, May 24, 2016 at 11:37 PM, Rob Rice wrote: > From: Rob Rice > > The Broadcom PDC mailbox driver is a mailbox controller that > manages data transfers to and from one or more offload engines. > > Signed-off-by: Rob Rice > Reviewed-by: Scott Branden > Reviewed-by: Ray Jui > --- > drivers

[PATCH 0/2] implement vcpu preempted check

2016-06-25 Thread Pan Xinhui
This is to fix some bad issues on an over-commited guest. test-caes: perf record -a perf bench sched messaging -g 400 -p && perf report 18.09% sched-messaging [kernel.vmlinux] [k] osq_lock 12.28% sched-messaging [kernel.vmlinux] [k] rwsem_spin_on_owner 5.27% sched-messaging [kernel.vmlin

[PATCH 1/2] kernel/sched: introduce vcpu preempted interface

2016-06-25 Thread Pan Xinhui
From: pan xinhui this supports to fix lock holder preempted issue which run as a guest two interfaces, bool vcpu_is_preempted(int cpu); unsigned int vcpu_get_yield_count(int cpu); arch may need implement anyone of them. some spinneris may also need call need_yield_to(int cpu, unsigned int old_y

[PATCH 2/2] locking/osq: Drop the overload of osq_lock()

2016-06-25 Thread Pan Xinhui
An over-committed guest with more vCPUs than pCPUs has a heavy overload in osq_lock(). This is because vCPU A hold the osq lock and yield out, vCPU B wait per_cpu node->locked to be set. IOW, vCPU B wait vCPU A to run and unlock the osq lock. So lets also use neet_yield_to() to detect if we need

Re: [PATCH 3/3] drivers core: allow id match override when manually binding driver

2016-06-25 Thread Michal Suchanek
Hello, On 26 June 2016 at 06:14, Dan Williams wrote: > On Thu, Jun 23, 2016 at 10:41 AM, Michal Suchanek wrote: >> This allows binding spidev on any slave device by hand using sysfs >> without adding superfluous compatibles or any other needless >> complication. >> >> Note that any slave driver

Re: [PATCH] locking/osq: Drop the overload of osq lock

2016-06-25 Thread Boqun Feng
On Sun, Jun 26, 2016 at 02:10:57PM +0800, Boqun Feng wrote: > On Sun, Jun 26, 2016 at 01:21:04PM +0800, panxinhui wrote: > > > > > 在 2016年6月26日,03:20,Peter Zijlstra 写道: > > > > > > On Sun, Jun 26, 2016 at 01:27:56AM +0800, panxinhui wrote: > > Would that not have issues where the owner cpu

Re: [PATCH] locking/osq: Drop the overload of osq lock

2016-06-25 Thread panxinhui
> 在 2016年6月26日,14:10,Boqun Feng 写道: > > On Sun, Jun 26, 2016 at 01:21:04PM +0800, panxinhui wrote: >> >>> 在 2016年6月26日,03:20,Peter Zijlstra 写道: >>> >>> On Sun, Jun 26, 2016 at 01:27:56AM +0800, panxinhui wrote: >> Would that not have issues where the owner cpu is kept running but the

<    1   2   3