Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-08 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 08:27 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 06:24 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:48 PM, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:42 PM

[PATCH-v6 6/6] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-07-08 Thread Vaibhav Hiremath
With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Rob Herring r...@kernel.org Acked

[PATCH-v6 5/6] mfd: 88pm800: Set default interrupt clear method

2015-07-08 Thread Vaibhav Hiremath
, as suggested by Lee Jones renaming variable field to appropriate name and removed unnecessary field pm80x_chip.irq_mode, using platform_data.irq_clr_method. Signed-off-by: Zhao Ye zh...@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org Reviewed-by: Krzysztof Kozlowski k.kozlow

[PATCH-v6 2/6] mfd: 88pm800: Add device tree support

2015-07-08 Thread Vaibhav Hiremath
Add DT support to the 88pm800 driver, along with compatible field for it's sub-devices (rtc, onkey and regulator) Signed-off-by: Chao Xie chao@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Lee Jones

[PATCH-v6 4/6] mfd: 88pm800: Remove unnecessary protection around pdata

2015-07-08 Thread Vaibhav Hiremath
With addition of proper checks in place in pm800_probe function, which makes sure that pdata would never become NULL. So remove all unnecessary protection around pdata in whole driver code. Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org Reviewed-by: Krzysztof Kozlowski k.kozlow

[PATCH-v6 1/6] mfd: 88pm800: remove duplicate dev_err calls during probe

2015-07-08 Thread Vaibhav Hiremath
During probe, inside fn device_800_init(), submodule init is happening and the same error message is getting printed in both the places, subdev_init() and inside device_800_init(). So this patch gets rid of dev_err from subdev_init() fns. Signed-off-by: Vaibhav Hiremath vaibhav.hirem

[PATCH-v6 3/6] mfd: 88pm800: Get pdata from 'device' rather than passing as a parameter

2015-07-08 Thread Vaibhav Hiremath
Currently the device_xxx_init() fns take pdata as an input parameter to the fn, but the cleaner approach would be to use dev_get_platdata() to get the pdata. So this patch changes the code accordingly. Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- drivers/mfd/88pm800.c | 29

Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-08 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 08:27 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 06:24 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:48 PM, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:42 PM

Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-07 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 06:24 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:48 PM, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:42 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:10 PM

Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-07 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 04:48 PM, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:42 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:10 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 12:59 PM, Lee

Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-07 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 04:42 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:10 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 12:59 PM, Lee Jones wrote: On Mon, 29 Jun 2015, Vaibhav Hiremath wrote

Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-07 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 04:10 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 12:59 PM, Lee Jones wrote: On Mon, 29 Jun 2015, Vaibhav Hiremath wrote: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing

Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-07 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 12:59 PM, Lee Jones wrote: On Mon, 29 Jun 2015, Vaibhav Hiremath wrote: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing interrupt status of 88pm800 family of devices; 0: clear on read 1: clear on write If pdata

Re: [rtc-linux] [PATCH-v2] rtc: 88pm80x: add device tree support

2015-07-07 Thread Vaibhav Hiremath
On Thursday 25 June 2015 01:16 PM, Vaibhav Hiremath wrote: On Saturday 20 June 2015 06:13 AM, Alexandre Belloni wrote: Hi, Sorry I missed this email. Just wanted to send reminder email and saw this :) On 18/06/2015 at 00:28:06 +0530, Vaibhav Hiremath wrote : -pdata

Re: [rtc-linux] [PATCH-v2] rtc: 88pm80x: add device tree support

2015-07-07 Thread Vaibhav Hiremath
On Thursday 25 June 2015 01:16 PM, Vaibhav Hiremath wrote: On Saturday 20 June 2015 06:13 AM, Alexandre Belloni wrote: Hi, Sorry I missed this email. Just wanted to send reminder email and saw this :) On 18/06/2015 at 00:28:06 +0530, Vaibhav Hiremath wrote : -pdata

Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-07 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 04:10 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 12:59 PM, Lee Jones wrote: On Mon, 29 Jun 2015, Vaibhav Hiremath wrote: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing

Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-07 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 12:59 PM, Lee Jones wrote: On Mon, 29 Jun 2015, Vaibhav Hiremath wrote: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing interrupt status of 88pm800 family of devices; 0: clear on read 1: clear on write If pdata

Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-07 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 04:42 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:10 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 12:59 PM, Lee Jones wrote: On Mon, 29 Jun 2015, Vaibhav Hiremath wrote

Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-07 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 04:48 PM, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:42 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:10 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 12:59 PM, Lee

Re: [PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-07-07 Thread Vaibhav Hiremath
On Tuesday 07 July 2015 06:24 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:48 PM, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:42 PM, Lee Jones wrote: On Tue, 07 Jul 2015, Vaibhav Hiremath wrote: On Tuesday 07 July 2015 04:10 PM

[PATCH-v3 04/11] i2c: pxa: Remove compile warnning in 64bit mode

2015-07-06 Thread Vaibhav Hiremath
From: Yipeng Yao Fix below warning message, coming from 64 bit toolchain. drivers/i2c/busses/i2c-pxa.c:1237:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Yipeng Yao [vaibhav.hirem...@linaro.org: Updated Changelog] Signed-off-by: Vaibhav

[PATCH-v3 07/11] i2c: pxa: enable/disable i2c module across msg xfer

2015-07-06 Thread Vaibhav Hiremath
of the I2C module after xfer in master mode of operation. i2c-disable-after-xfer : If set, driver will disable I2C module after msg xfer Signed-off-by: Yi Zhang Signed-off-by: Vaibhav Hiremath --- drivers/i2c/busses/i2c-pxa.c | 43 +-- 1 file changed, 41

[PATCH-v3 11/11] Documentation: binding: add sclk adjustment properties to i2c-pxa

2015-07-06 Thread Vaibhav Hiremath
hold/setup wait counter for standard and fast mode. Signed-off-by: Vaibhav Hiremath --- Documentation/devicetree/bindings/i2c/i2c-pxa.txt | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-pxa.txt b/Documentation/devicetree/bindings

[PATCH-v3 02/11] i2c: pxa: No need to set slave addr for i2c master mode reset

2015-07-06 Thread Vaibhav Hiremath
Normally i2c controller works as master, so slave addr is not needed, or it will impact some slave device (eg. ST NFC chip) i2c accesses, because it has the same i2c address with controller. Signed-off-by: Jett.Zhou Signed-off-by: Vaibhav Hiremath Acked-by: Robert Jarzmik --- drivers/i2c

[PATCH-v3 08/11] Documentation: binding: add new property 'disable_after_xfer' to i2c-pxa

2015-07-06 Thread Vaibhav Hiremath
Driver now supports enable/disable across msg xfer, which user can control it by new DT property - i2c-disable-after-xfer : If set, driver will disable I2C module after msg xfer and enable it back before xfer. Signed-off-by: Vaibhav Hiremath --- Documentation/devicetree/bindings/i2c/i2c

[PATCH-v3 09/11] i2c: pxa: Add support for pxa910/988 & new configuration features

2015-07-06 Thread Vaibhav Hiremath
ndard DT properties for ilcr and iwcr configuration fields. In case of Master ilcr is used for low/high time and in case of slave mode of operation iwcr is used for setup/hold time. Signed-off-by: Jett.Zhou Signed-off-by: Yi Zhang Signed-off-by: Vaibhav Hiremath --- drive

[PATCH-v3 10/11] i2c: pxa: Add ILCR (tLow & tHigh) configuration support

2015-07-06 Thread Vaibhav Hiremath
-by: Vaibhav Hiremath Signed-off-by: Jett.Zhou Signed-off-by: Yi Zhang --- drivers/i2c/busses/i2c-pxa.c | 68 +++- 1 file changed, 61 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index d5cf6f5..537555a

[PATCH-v3 03/11] i2c: pxa: Return I2C_RETRY when timeout in pio mode

2015-07-06 Thread Vaibhav Hiremath
From: Shouming Wang In case of timeout in pio mode of operation return I2C_RETRY. This behavior will be same as interrupt mode of operation. Signed-off-by: Shouming Wang [vaibhav.hirem...@linaro.org: Updated changelog] Signed-off-by: Vaibhav Hiremath Acked-by: Robert Jarzmik --- drivers/i2c

[PATCH-v3 05/11] i2c: pxa: Update debug function to dump more info on error

2015-07-06 Thread Vaibhav Hiremath
Update i2c_pxa_scream_blue_murder() fn to print more information in case of error. Also, use dev_err variants instead of printk. Signed-off-by: Jett.Zhou Signed-off-by: Vaibhav Hiremath Cc: Wolfram Sang --- drivers/i2c/busses/i2c-pxa.c | 22 +++--- 1 file changed, 15

[PATCH-v3 06/11] i2c:pxa: Use devm_ variants in probe function

2015-07-06 Thread Vaibhav Hiremath
instead of printk for KERN_INFO Signed-off-by: Vaibhav Hiremath Acked-by: Robert Jarzmik --- drivers/i2c/busses/i2c-pxa.c | 82 ++-- 1 file changed, 34 insertions(+), 48 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c

[PATCH-v3 01/11] i2c: pxa: keep i2c irq ON in suspend

2015-07-06 Thread Vaibhav Hiremath
[vaibhav.hirem...@linaro.org: updated Changelog] Signed-off-by: Vaibhav Hiremath Cc: Wolfram Sang --- drivers/i2c/busses/i2c-pxa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index d9c0d6a..f4ac8c5 100644

[PATCH-v3 00/11] i2c: pxa: Fixes, cleanup and support for pxa910 family

2015-07-06 Thread Vaibhav Hiremath
l submit shortly. 08/12: NAKed and dropped - Separated DT binding patch from driver changes, for easy merge Leilei Shang (1): i2c: pxa: keep i2c irq ON in suspend Shouming Wang (1): i2c: pxa: Return I2C_RETRY when timeout in pio mode Vaibhav Hiremath (7): i2c: pxa: No need to set slave

Re: [RFC PATCH] pinctrl-single: Use of pinctrl-single for external device over I2C

2015-07-06 Thread Vaibhav Hiremath
On Monday 06 July 2015 12:05 PM, Tony Lindgren wrote: * Vaibhav Hiremath [150702 09:58]: --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c -static unsigned __maybe_unused pcs_readb(void __iomem *reg) +static unsigned pcs_read(struct regmap *map, unsigned int reg

Re: [RFC PATCH] pinctrl-single: Use of pinctrl-single for external device over I2C

2015-07-06 Thread Vaibhav Hiremath
On Monday 06 July 2015 12:05 PM, Tony Lindgren wrote: * Vaibhav Hiremath vaibhav.hirem...@linaro.org [150702 09:58]: --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c -static unsigned __maybe_unused pcs_readb(void __iomem *reg) +static unsigned pcs_read(struct

[PATCH-v3 07/11] i2c: pxa: enable/disable i2c module across msg xfer

2015-07-06 Thread Vaibhav Hiremath
to control disable of the I2C module after xfer in master mode of operation. i2c-disable-after-xfer : If set, driver will disable I2C module after msg xfer Signed-off-by: Yi Zhang yizh...@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- drivers/i2c/busses/i2c-pxa.c | 43

[PATCH-v3 11/11] Documentation: binding: add sclk adjustment properties to i2c-pxa

2015-07-06 Thread Vaibhav Hiremath
hold/setup wait counter for standard and fast mode. Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- Documentation/devicetree/bindings/i2c/i2c-pxa.txt | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-pxa.txt b

[PATCH-v3 09/11] i2c: pxa: Add support for pxa910/988 new configuration features

2015-07-06 Thread Vaibhav Hiremath
configuration fields. In case of Master ilcr is used for low/high time and in case of slave mode of operation iwcr is used for setup/hold time. Signed-off-by: Jett.Zhou jtz...@marvell.com Signed-off-by: Yi Zhang yizh...@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org

[PATCH-v3 08/11] Documentation: binding: add new property 'disable_after_xfer' to i2c-pxa

2015-07-06 Thread Vaibhav Hiremath
Driver now supports enable/disable across msg xfer, which user can control it by new DT property - i2c-disable-after-xfer : If set, driver will disable I2C module after msg xfer and enable it back before xfer. Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- Documentation

[PATCH-v3 02/11] i2c: pxa: No need to set slave addr for i2c master mode reset

2015-07-06 Thread Vaibhav Hiremath
Normally i2c controller works as master, so slave addr is not needed, or it will impact some slave device (eg. ST NFC chip) i2c accesses, because it has the same i2c address with controller. Signed-off-by: Jett.Zhou jtz...@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org

[PATCH-v3 03/11] i2c: pxa: Return I2C_RETRY when timeout in pio mode

2015-07-06 Thread Vaibhav Hiremath
From: Shouming Wang wang...@marvell.com In case of timeout in pio mode of operation return I2C_RETRY. This behavior will be same as interrupt mode of operation. Signed-off-by: Shouming Wang wang...@marvell.com [vaibhav.hirem...@linaro.org: Updated changelog] Signed-off-by: Vaibhav Hiremath

[PATCH-v3 05/11] i2c: pxa: Update debug function to dump more info on error

2015-07-06 Thread Vaibhav Hiremath
Update i2c_pxa_scream_blue_murder() fn to print more information in case of error. Also, use dev_err variants instead of printk. Signed-off-by: Jett.Zhou jtz...@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org Cc: Wolfram Sang w...@the-dreams.de --- drivers/i2c/busses/i2c

[PATCH-v3 10/11] i2c: pxa: Add ILCR (tLow tHigh) configuration support

2015-07-06 Thread Vaibhav Hiremath
-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org Signed-off-by: Jett.Zhou jtz...@marvell.com Signed-off-by: Yi Zhang yizh...@marvell.com --- drivers/i2c/busses/i2c-pxa.c | 68 +++- 1 file changed, 61 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c

[PATCH-v3 06/11] i2c:pxa: Use devm_ variants in probe function

2015-07-06 Thread Vaibhav Hiremath
instead of printk for KERN_INFO Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org Acked-by: Robert Jarzmik robert.jarz...@free.fr --- drivers/i2c/busses/i2c-pxa.c | 82 ++-- 1 file changed, 34 insertions(+), 48 deletions(-) diff --git a/drivers/i2c

[PATCH-v3 00/11] i2c: pxa: Fixes, cleanup and support for pxa910 family

2015-07-06 Thread Vaibhav Hiremath
binding patch from driver changes, for easy merge Leilei Shang (1): i2c: pxa: keep i2c irq ON in suspend Shouming Wang (1): i2c: pxa: Return I2C_RETRY when timeout in pio mode Vaibhav Hiremath (7): i2c: pxa: No need to set slave addr for i2c master mode reset i2c: pxa: Update debug

[PATCH-v3 01/11] i2c: pxa: keep i2c irq ON in suspend

2015-07-06 Thread Vaibhav Hiremath
...@marvell.com Signed-off-by: Xiaofan Tian tia...@marvell.com [vaibhav.hirem...@linaro.org: updated Changelog] Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org Cc: Wolfram Sang w...@the-dreams.de --- drivers/i2c/busses/i2c-pxa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH-v3 04/11] i2c: pxa: Remove compile warnning in 64bit mode

2015-07-06 Thread Vaibhav Hiremath
Changelog] Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org Cc: Wolfram Sang w...@the-dreams.de Acked-by: Robert Jarzmik robert.jarz...@free.fr --- drivers/i2c/busses/i2c-pxa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c

[RFC PATCH] pinctrl-single: Use of pinctrl-single for external device over I2C

2015-07-02 Thread Vaibhav Hiremath
, accepted, nacked, acked, suggestions... Signed-off-by: Vaibhav Hiremath --- arch/arm64/boot/dts/marvell/pxa1928-helium.dts | 15 +++ drivers/mfd/88pm800.c | 41 +++ drivers/pinctrl/pinctrl-single.c | 159 + 3 files changed, 140

[RFC PATCH] pinctrl-single: Use of pinctrl-single for external device over I2C

2015-07-02 Thread Vaibhav Hiremath
, accepted, nacked, acked, suggestions... Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- arch/arm64/boot/dts/marvell/pxa1928-helium.dts | 15 +++ drivers/mfd/88pm800.c | 41 +++ drivers/pinctrl/pinctrl-single.c | 159

Re: [PATCH-V5 4/4] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-07-01 Thread Vaibhav Hiremath
On Wednesday 01 July 2015 10:47 PM, Rob Herring wrote: On Wed, Jul 1, 2015 at 11:21 AM, Vaibhav Hiremath wrote: On Wednesday 01 July 2015 09:40 PM, Rob Herring wrote: On Mon, Jun 29, 2015 at 10:31 AM, Vaibhav Hiremath wrote: With addition of DT support to 88pm800 mfd driver

Re: [PATCH-V5 4/4] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-07-01 Thread Vaibhav Hiremath
On Wednesday 01 July 2015 09:40 PM, Rob Herring wrote: On Mon, Jun 29, 2015 at 10:31 AM, Vaibhav Hiremath wrote: With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav Hiremath Didn't I ack

Re: [PATCH-V5 4/4] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-07-01 Thread Vaibhav Hiremath
On Wednesday 01 July 2015 09:40 PM, Rob Herring wrote: On Mon, Jun 29, 2015 at 10:31 AM, Vaibhav Hiremath vaibhav.hirem...@linaro.org wrote: With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off

Re: [PATCH-V5 4/4] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-07-01 Thread Vaibhav Hiremath
On Wednesday 01 July 2015 10:47 PM, Rob Herring wrote: On Wed, Jul 1, 2015 at 11:21 AM, Vaibhav Hiremath vaibhav.hirem...@linaro.org wrote: On Wednesday 01 July 2015 09:40 PM, Rob Herring wrote: On Mon, Jun 29, 2015 at 10:31 AM, Vaibhav Hiremath vaibhav.hirem...@linaro.org wrote

Re: Use of pinctrl-single for external device over I2C

2015-06-30 Thread Vaibhav Hiremath
On Tuesday 30 June 2015 01:16 PM, Vaibhav Hiremath wrote: On Thursday 25 June 2015 11:16 AM, Vaibhav Hiremath wrote: On Thursday 25 June 2015 10:08 AM, Tony Lindgren wrote: * Vaibhav Hiremath [150624 10:12]: I do not like this, as this is not HW feature, so DT may not be right

Re: Use of pinctrl-single for external device over I2C

2015-06-30 Thread Vaibhav Hiremath
On Thursday 25 June 2015 11:16 AM, Vaibhav Hiremath wrote: On Thursday 25 June 2015 10:08 AM, Tony Lindgren wrote: * Vaibhav Hiremath [150624 10:12]: I do not like this, as this is not HW feature, so DT may not be right approach. So I will dig more from either runtime or Compile time

Re: Use of pinctrl-single for external device over I2C

2015-06-30 Thread Vaibhav Hiremath
On Tuesday 30 June 2015 01:16 PM, Vaibhav Hiremath wrote: On Thursday 25 June 2015 11:16 AM, Vaibhav Hiremath wrote: On Thursday 25 June 2015 10:08 AM, Tony Lindgren wrote: * Vaibhav Hiremath vaibhav.hirem...@linaro.org [150624 10:12]: I do not like this, as this is not HW feature, so

Re: Use of pinctrl-single for external device over I2C

2015-06-30 Thread Vaibhav Hiremath
On Thursday 25 June 2015 11:16 AM, Vaibhav Hiremath wrote: On Thursday 25 June 2015 10:08 AM, Tony Lindgren wrote: * Vaibhav Hiremath vaibhav.hirem...@linaro.org [150624 10:12]: I do not like this, as this is not HW feature, so DT may not be right approach. So I will dig more from either

Re: [PATCH-V5 4/4] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-06-29 Thread Vaibhav Hiremath
On Tuesday 30 June 2015 06:01 AM, Krzysztof Kozlowski wrote: 2015-06-30 0:31 GMT+09:00 Vaibhav Hiremath : With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav Hiremath (once again, too

[PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-06-29 Thread Vaibhav Hiremath
uot; Also, as suggested by "Lee Jones" renaming variable field to appropriate name. Signed-off-by: Zhao Ye Signed-off-by: Vaibhav Hiremath --- drivers/mfd/88pm800.c | 15 ++- include/linux/mfd/88pm80x.h | 10 -- 2 files changed, 18 insertions(+), 7 deletions(-)

[PATCH-V5 1/4] mfd: 88pm800: Add device tree support

2015-06-29 Thread Vaibhav Hiremath
Add DT support to the 88pm800 driver, along with compatible field for it's sub-devices (rtc, onkey and regulator) Signed-off-by: Chao Xie Signed-off-by: Vaibhav Hiremath --- drivers/mfd/88pm800.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/mfd/88pm800.c

[PATCH-V5 4/4] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-06-29 Thread Vaibhav Hiremath
With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav Hiremath --- Documentation/devicetree/bindings/mfd/88pm800.txt | 53 +++ 1 file changed, 53 insertions(+) create mode

[PATCH-V5 0/4] mfd: 88pm800: Add Device tree support

2015-06-29 Thread Vaibhav Hiremath
- Rgulator driver changes to add support for 88PM860 device Vaibhav Hiremath (4): mfd: 88pm800: Add device tree support mfd: 88pm800: Remove unnecessary protection around pdata mfd: 88pm800: Set default interrupt clear method mfd: devicetree: bindings: Add new 88pm800 mfd binding Documentatio

[PATCH-V5 2/4] mfd: 88pm800: Remove unnecessary protection around pdata

2015-06-29 Thread Vaibhav Hiremath
With addition of proper checks in place in pm800_probe function, which makes sure that pdata would never become NULL. So remove all unnecessary protection around pdata in whole driver code. Signed-off-by: Vaibhav Hiremath --- drivers/mfd/88pm800.c | 14 ++ 1 file changed, 6

[PATCH-V5 4/4] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-06-29 Thread Vaibhav Hiremath
With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- Documentation/devicetree/bindings/mfd/88pm800.txt | 53 +++ 1 file changed, 53

[PATCH-V5 3/4] mfd: 88pm800: Set default interrupt clear method

2015-06-29 Thread Vaibhav Hiremath
, as suggested by Lee Jones renaming variable field to appropriate name. Signed-off-by: Zhao Ye zh...@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- drivers/mfd/88pm800.c | 15 ++- include/linux/mfd/88pm80x.h | 10 -- 2 files changed, 18 insertions

[PATCH-V5 1/4] mfd: 88pm800: Add device tree support

2015-06-29 Thread Vaibhav Hiremath
Add DT support to the 88pm800 driver, along with compatible field for it's sub-devices (rtc, onkey and regulator) Signed-off-by: Chao Xie chao@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- drivers/mfd/88pm800.c | 23 +++ 1 file changed, 23

[PATCH-V5 2/4] mfd: 88pm800: Remove unnecessary protection around pdata

2015-06-29 Thread Vaibhav Hiremath
With addition of proper checks in place in pm800_probe function, which makes sure that pdata would never become NULL. So remove all unnecessary protection around pdata in whole driver code. Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- drivers/mfd/88pm800.c | 14

[PATCH-V5 0/4] mfd: 88pm800: Add Device tree support

2015-06-29 Thread Vaibhav Hiremath
Vaibhav Hiremath (4): mfd: 88pm800: Add device tree support mfd: 88pm800: Remove unnecessary protection around pdata mfd: 88pm800: Set default interrupt clear method mfd: devicetree: bindings: Add new 88pm800 mfd binding Documentation/devicetree/bindings/mfd/88pm800.txt | 53

Re: [PATCH-V5 4/4] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-06-29 Thread Vaibhav Hiremath
On Tuesday 30 June 2015 06:01 AM, Krzysztof Kozlowski wrote: 2015-06-30 0:31 GMT+09:00 Vaibhav Hiremath vaibhav.hirem...@linaro.org: With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav

Re: [PATCH] mfd: 880m80x: Make use of BIT() macro

2015-06-27 Thread Vaibhav Hiremath
On Saturday 27 June 2015 11:06 AM, Krzysztof Kozlowski wrote: 2015-06-26 22:08 GMT+09:00 Vaibhav Hiremath : Instead of hard coding the shift for bit definition, use BIT() macro. I am not convinced that such change improves anything in existing code. IMHO (1 << n) is quite re

Re: [PATCH] mfd: 880m80x: Make use of BIT() macro

2015-06-27 Thread Vaibhav Hiremath
On Saturday 27 June 2015 11:06 AM, Krzysztof Kozlowski wrote: 2015-06-26 22:08 GMT+09:00 Vaibhav Hiremath vaibhav.hirem...@linaro.org: Instead of hard coding the shift for bit definition, use BIT() macro. I am not convinced that such change improves anything in existing code. IMHO (1 n

Re: [PATCH-v4 2/3] mfd: 88pm800: Set default interrupt clear method

2015-06-26 Thread Vaibhav Hiremath
On Thursday 25 June 2015 03:56 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing interrupt status of 88pm800 family of devices; 0: clear on read 1: clear on write If pdata

[PATCH] mfd: 880m80x: Make use of BIT() macro

2015-06-26 Thread Vaibhav Hiremath
Instead of hard coding the shift for bit definition, use BIT() macro. Signed-off-by: Vaibhav Hiremath --- Boot tested on PXA1928 based platform. Note that all upcoming patches will be on top of this patch now. include/linux/mfd/88pm80x.h | 162 ++-- 1

Re: [PATCH-v4 3/3] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-06-26 Thread Vaibhav Hiremath
On Friday 26 June 2015 11:35 AM, Yi Zhang wrote: On Thu, Jun 25, 2015 at 03:26:29PM +0800, Vaibhav Hiremath wrote: With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav Hiremath

Re: [PATCH-v4 1/3] mfd: 88pm800: Add device tree support

2015-06-26 Thread Vaibhav Hiremath
On Friday 26 June 2015 11:23 AM, Yi Zhang wrote: On Thu, Jun 25, 2015 at 08:57:49PM +0530, Vaibhav Hiremath wrote: On Thursday 25 June 2015 08:18 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: On Thursday 25 June 2015 03:49 PM, Lee Jones wrote: On Thu, 25 Jun 2015

Re: [PATCH-v4 3/3] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-06-26 Thread Vaibhav Hiremath
On Friday 26 June 2015 11:35 AM, Yi Zhang wrote: On Thu, Jun 25, 2015 at 03:26:29PM +0800, Vaibhav Hiremath wrote: With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav Hiremath vaibhav.hirem

Re: [PATCH-v4 1/3] mfd: 88pm800: Add device tree support

2015-06-26 Thread Vaibhav Hiremath
On Friday 26 June 2015 11:23 AM, Yi Zhang wrote: On Thu, Jun 25, 2015 at 08:57:49PM +0530, Vaibhav Hiremath wrote: On Thursday 25 June 2015 08:18 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: On Thursday 25 June 2015 03:49 PM, Lee Jones wrote: On Thu, 25 Jun 2015

[PATCH] mfd: 880m80x: Make use of BIT() macro

2015-06-26 Thread Vaibhav Hiremath
Instead of hard coding the shift for bit definition, use BIT() macro. Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- Boot tested on PXA1928 based platform. Note that all upcoming patches will be on top of this patch now. include/linux/mfd/88pm80x.h | 162

Re: [PATCH-v4 2/3] mfd: 88pm800: Set default interrupt clear method

2015-06-26 Thread Vaibhav Hiremath
On Thursday 25 June 2015 03:56 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing interrupt status of 88pm800 family of devices; 0: clear on read 1: clear on write If pdata

Re: [PATCH-v4 2/3] mfd: 88pm800: Set default interrupt clear method

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 08:16 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: On Thursday 25 June 2015 03:56 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing

Re: [PATCH-v4 1/3] mfd: 88pm800: Add device tree support

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 08:18 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: On Thursday 25 June 2015 03:49 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: Add DT support to the 88pm800 driver, along with compatible field for it's sub-devices (rtc

Re: [PATCH-v4 2/3] mfd: 88pm800: Set default interrupt clear method

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 05:15 PM, Krzysztof Kozlowski wrote: 2015-06-25 20:19 GMT+09:00 Vaibhav Hiremath : On Thursday 25 June 2015 03:56 PM, Lee Jones wrote: (...) diff --git a/include/linux/mfd/88pm80x.h b/include/linux/mfd/88pm80x.h index 97cb283..94b3dcd 100644 --- a/include/linux

Re: [PATCH-v4 3/3] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 03:58 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav Hiremath --- Documentation/devicetree

Re: [PATCH-v4 2/3] mfd: 88pm800: Set default interrupt clear method

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 03:56 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing interrupt status of 88pm800 family of devices; 0: clear on read 1: clear on write If pdata

Re: [PATCH-v4 1/3] mfd: 88pm800: Add device tree support

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 03:49 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: Add DT support to the 88pm800 driver, along with compatible field for it's sub-devices (rtc, onkey and regulator) Signed-off-by: Chao Xie Signed-off-by: Vaibhav Hiremath --- drivers/mfd

Re: [rtc-linux] [PATCH-v2] rtc: 88pm80x: add device tree support

2015-06-25 Thread Vaibhav Hiremath
On Saturday 20 June 2015 06:13 AM, Alexandre Belloni wrote: Hi, Sorry I missed this email. Just wanted to send reminder email and saw this :) On 18/06/2015 at 00:28:06 +0530, Vaibhav Hiremath wrote : - pdata = dev_get_platdata(>dev); - if (pdata == N

[PATCH-v4 3/3] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-06-25 Thread Vaibhav Hiremath
With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav Hiremath --- Documentation/devicetree/bindings/mfd/88pm800.txt | 54 +++ 1 file changed, 54 insertions(+) create mode

[PATCH-v4 1/3] mfd: 88pm800: Add device tree support

2015-06-25 Thread Vaibhav Hiremath
Add DT support to the 88pm800 driver, along with compatible field for it's sub-devices (rtc, onkey and regulator) Signed-off-by: Chao Xie Signed-off-by: Vaibhav Hiremath --- drivers/mfd/88pm800.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/mfd/88pm800.c

[PATCH-v4 2/3] mfd: 88pm800: Set default interrupt clear method

2015-06-25 Thread Vaibhav Hiremath
uot; Also, as suggested by "Lee Jones" renaming variable field to appropriate name. Signed-off-by: Zhao Ye Signed-off-by: Vaibhav Hiremath --- drivers/mfd/88pm800.c | 15 ++- include/linux/mfd/88pm80x.h | 6 -- 2 files changed, 14 insertions(+), 7 deletions(-) diff

[PATCH-v4 0/3] mfd: 88pm800: Add Device tree support

2015-06-25 Thread Vaibhav Hiremath
f the patches to the list sometime back in 2013. Link to previous patch submission: https://lkml.org/lkml/2013/8/14/86 TODO: = - init config for 88PM860 device - Rgulator driver changes to add support for 88PM860 device Vaibhav Hiremath (3): mfd: 88pm800: Add device tree suppor

[PATCH-v4 2/3] mfd: 88pm800: Set default interrupt clear method

2015-06-25 Thread Vaibhav Hiremath
, as suggested by Lee Jones renaming variable field to appropriate name. Signed-off-by: Zhao Ye zh...@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- drivers/mfd/88pm800.c | 15 ++- include/linux/mfd/88pm80x.h | 6 -- 2 files changed, 14 insertions(+), 7

[PATCH-v4 0/3] mfd: 88pm800: Add Device tree support

2015-06-25 Thread Vaibhav Hiremath
to previous patch submission: https://lkml.org/lkml/2013/8/14/86 TODO: = - init config for 88PM860 device - Rgulator driver changes to add support for 88PM860 device Vaibhav Hiremath (3): mfd: 88pm800: Add device tree support mfd: 88pm800: Set default interrupt clear method

[PATCH-v4 1/3] mfd: 88pm800: Add device tree support

2015-06-25 Thread Vaibhav Hiremath
Add DT support to the 88pm800 driver, along with compatible field for it's sub-devices (rtc, onkey and regulator) Signed-off-by: Chao Xie chao@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- drivers/mfd/88pm800.c | 23 +++ 1 file changed, 23

[PATCH-v4 3/3] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-06-25 Thread Vaibhav Hiremath
With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org --- Documentation/devicetree/bindings/mfd/88pm800.txt | 54 +++ 1 file changed, 54

Re: [rtc-linux] [PATCH-v2] rtc: 88pm80x: add device tree support

2015-06-25 Thread Vaibhav Hiremath
On Saturday 20 June 2015 06:13 AM, Alexandre Belloni wrote: Hi, Sorry I missed this email. Just wanted to send reminder email and saw this :) On 18/06/2015 at 00:28:06 +0530, Vaibhav Hiremath wrote : - pdata = dev_get_platdata(pdev-dev); - if (pdata == NULL

Re: [PATCH-v4 1/3] mfd: 88pm800: Add device tree support

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 03:49 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: Add DT support to the 88pm800 driver, along with compatible field for it's sub-devices (rtc, onkey and regulator) Signed-off-by: Chao Xie chao@marvell.com Signed-off-by: Vaibhav Hiremath

Re: [PATCH-v4 3/3] mfd: devicetree: bindings: Add new 88pm800 mfd binding

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 03:58 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: With addition of DT support to 88pm800 mfd driver, this patch adds new DT binding documentation along with respective properties. Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org

Re: [PATCH-v4 2/3] mfd: 88pm800: Set default interrupt clear method

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 05:15 PM, Krzysztof Kozlowski wrote: 2015-06-25 20:19 GMT+09:00 Vaibhav Hiremath vaibhav.hirem...@linaro.org: On Thursday 25 June 2015 03:56 PM, Lee Jones wrote: (...) diff --git a/include/linux/mfd/88pm80x.h b/include/linux/mfd/88pm80x.h index 97cb283..94b3dcd

Re: [PATCH-v4 2/3] mfd: 88pm800: Set default interrupt clear method

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 03:56 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing interrupt status of 88pm800 family of devices; 0: clear on read 1: clear on write If pdata

Re: [PATCH-v4 2/3] mfd: 88pm800: Set default interrupt clear method

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 08:16 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: On Thursday 25 June 2015 03:56 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing

Re: [PATCH-v4 1/3] mfd: 88pm800: Add device tree support

2015-06-25 Thread Vaibhav Hiremath
On Thursday 25 June 2015 08:18 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: On Thursday 25 June 2015 03:49 PM, Lee Jones wrote: On Thu, 25 Jun 2015, Vaibhav Hiremath wrote: Add DT support to the 88pm800 driver, along with compatible field for it's sub-devices (rtc

<    1   2   3   4   5   6   7   >