[PATCH] drivers: misc: ti-st: fix potential race if st_kim_start fails

2013-08-29 Thread Oleksandr Kozaruk
st_gdata data members. Hold spin lock while calling st_reg_complete if st_kim_start() fails. Signed-off-by: Oleksandr Kozaruk --- drivers/misc/ti-st/st_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c index 0a14280..8d64b68 100644

Re: [PATCH] iio: adc: Add bindigs documentation for twl6030 GPADC

2013-08-20 Thread Oleksandr Kozaruk
#x27;m guessing a consumer would be in some_board.dts, and describe it as battery_consumer { io-channels = <&adc 1>, <&adc 7>, <&adc 8>; ... } The purpose of the channels is not arbitrary but dedicated to certain functions in

[PATCH] iio: adc: Add bindigs documentation for twl6030 GPADC

2013-08-19 Thread Oleksandr Kozaruk
Add required documentation for twl6030 GPADC device tree bindings. Signed-off-by: Oleksandr Kozaruk --- .../devicetree/bindings/iio/adc/twl6030-gpadc.txt | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/twl6030

[PATCH] iio: adc: twl6030-gpadc: Use devm_* API family

2013-08-19 Thread Oleksandr Kozaruk
Using devm_iio_device_alloc and devm_request_threaded_irq makes code simpler. Signed-off-by: Oleksandr Kozaruk --- drivers/iio/adc/twl6030-gpadc.c | 36 ++-- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/drivers/iio/adc/twl6030-gpadc.c b/drivers

[PATCH v8 0/2] TWL6030, TWL6032 GPADC driver

2013-07-25 Thread Oleksandr Kozaruk
), and OMAP4470(twl6032) SOMs. The patches were tested against 3.11-rc2 Oleksandr Kozaruk (2): ARM: dts: twl: Add GPADC data to device tree iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver arch/arm/boot/dts/twl6030.dtsi |6 + drivers/iio/adc/Kconfig | 14 + drivers/iio/adc/Ma

[PATCH v8 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-25 Thread Oleksandr Kozaruk
values are interpreted differently. Based on the driver patched from Balaji TK, Graeme Gregory, Ambresh K, Girish S Ghongdemath. Signed-off-by: Balaji T K Signed-off-by: Graeme Gregory Signed-off-by: Oleksandr Kozaruk --- drivers/iio/adc/Kconfig | 14 + drivers/iio/adc/Makefile

[PATCH v8 1/2] ARM: dts: twl: Add GPADC data to device tree

2013-07-25 Thread Oleksandr Kozaruk
GPADC is the general purpose ADC present on twl6030. The dt data is interrupt used to trigger end of ADC conversion. Signed-off-by: Oleksandr Kozaruk --- arch/arm/boot/dts/twl6030.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/twl6030.dtsi b/arch/arm/boot/dts

Re: [PATCH v6 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-24 Thread Oleksandr Kozaruk
On Sat, Jul 20, 2013 at 11:43:42AM +0100, Jonathan Cameron wrote: > On 07/19/2013 10:27 AM, Oleksandr Kozaruk wrote: > > The GPADC is general purpose ADC found on TWL6030, and TWL6032 PMIC, > > known also as Phoenix and PhoenixLite. > > > > The TWL6030 and TWL603

[PATCH v7 0/2] TWL6030, TWL6032 GPADC driver

2013-07-22 Thread Oleksandr Kozaruk
pt instead; - iio framework is used Tested with on blaze tablet 2 with OMAP4430(twl6030), and OMAP4470(twl6032) SOMs. The patches were tested against 3.11-rc2 Oleksandr Kozaruk (2): ARM: dts: twl: Add GPADC data to device tree iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver arch/arm/boot/dts

[PATCH v7 1/2] ARM: dts: twl: Add GPADC data to device tree

2013-07-22 Thread Oleksandr Kozaruk
GPADC is the general purpose ADC present on twl6030. The dt data is interrupt used to trigger end of ADC conversion. Signed-off-by: Oleksandr Kozaruk --- arch/arm/boot/dts/twl6030.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/twl6030.dtsi b/arch/arm/boot/dts

[PATCH v7 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-22 Thread Oleksandr Kozaruk
values are interpreted differently. Based on the driver patched from Balaji TK, Graeme Gregory, Ambresh K, Girish S Ghongdemath. Signed-off-by: Balaji T K Signed-off-by: Graeme Gregory Signed-off-by: Oleksandr Kozaruk --- drivers/iio/adc/Kconfig | 14 + drivers/iio/adc/Makefile

Re: [PATCH v6 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-22 Thread Oleksandr Kozaruk
Hi Jonathan, On Sat, Jul 20, 2013 at 1:43 PM, Jonathan Cameron wrote: > On 07/19/2013 10:27 AM, Oleksandr Kozaruk wrote: >> The GPADC is general purpose ADC found on TWL6030, and TWL6032 PMIC, >> known also as Phoenix and PhoenixLite. >> >> The TWL6030 and TWL603

Re: [PATCH v6 1/2] ARM: dts: twl: Add GPADC data to device tree

2013-07-19 Thread Oleksandr Kozaruk
>>>> conversion. > > >>>> Signed-off-by: Oleksandr Kozaruk >>>> --- >>>> arch/arm/boot/dts/twl6030.dtsi | 6 ++ >>>> 1 file changed, 6 insertions(+) > > >>>> diff --git a/arch/arm/boot/dts/twl6030.dtsi >>>

[PATCH v6 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-19 Thread Oleksandr Kozaruk
values are interpreted differently. Based on the driver patched from Balaji TK, Graeme Gregory, Ambresh K, Girish S Ghongdemath. Signed-off-by: Balaji T K Signed-off-by: Graeme Gregory Signed-off-by: Oleksandr Kozaruk --- drivers/iio/adc/Kconfig | 14 + drivers/iio/adc/Makefile

[PATCH v6 1/2] ARM: dts: twl: Add GPADC data to device tree

2013-07-19 Thread Oleksandr Kozaruk
GPADC is the general purpose ADC present on twl6030. The dt data is interrupt used to trigger end of ADC conversion. Signed-off-by: Oleksandr Kozaruk --- arch/arm/boot/dts/twl6030.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/twl6030.dtsi b/arch/arm/boot/dts

[PATCH v6 0/2] TWL6030, TWL6032 GPADC driver

2013-07-19 Thread Oleksandr Kozaruk
ablet 2 with OMAP4430(twl6030), and OMAP4470(twl6032) SOMs. The patches were tested against 3.10-rc7 Oleksandr Kozaruk (2): ARM: dts: twl: Add GPADC data to device tree iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver arch/arm/boot/dts/twl6030.dtsi | 6 + drivers/iio/adc/Kconfig

Re: [PATCH v5 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-19 Thread Oleksandr Kozaruk
Hello Lars, On Thu, Jul 18, 2013 at 12:48 PM, Lars-Peter Clausen wrote: > On 07/18/2013 10:36 AM, Oleksandr Kozaruk wrote: >> Hello Lars, >> >> On Wed, Jul 17, 2013 at 9:04 PM, Lars-Peter Clausen wrote: >>>> +static int twl6032_calibration

Re: [PATCH v5 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-18 Thread Oleksandr Kozaruk
Hello Lars, On Wed, Jul 17, 2013 at 9:04 PM, Lars-Peter Clausen wrote: >> +static int twl6032_calibration(struct twl6030_gpadc_data *gpadc) >> +{ >> + int chn, d1 = 0, d2 = 0, temp; >> + u8 trim_regs[17]; >> + int ret; >> + >> + ret = twl_i2c_read(TWL6030_MODULE_ID2, trim_regs + 1

Re: [PATCH v3 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-17 Thread Oleksandr Kozaruk
On Mon, Jul 15, 2013 at 01:33:53PM +0200, Lars-Peter Clausen wrote: > On 07/15/2013 01:09 PM, Kozaruk, Oleksandr wrote: > [...] > > > >>> + ret = devm_request_threaded_irq(dev, irq, NULL, > >>> + twl6030_gpadc_irq_handler, > >>> + IRQF_ONESHOT, "twl6030_gpadc", gpadc); > >> > >> You access mem

[PATCH v5 0/2] TWL6030, TWL6032 GPADC driver

2013-07-17 Thread Oleksandr Kozaruk
he patches were tested against 3.10-rc7 Oleksandr Kozaruk (2): ARM: dts: twl: Add GPADC data to device tree iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver arch/arm/boot/dts/twl6030.dtsi |6 + drivers/iio/adc/Kconfig | 14 + drivers/iio/adc/Makefile|1 + dri

[PATCH v5 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-17 Thread Oleksandr Kozaruk
values are interpreted differently. Based on the driver patched from Balaji TK, Graeme Gregory, Ambresh K, Girish S Ghongdemath. Signed-off-by: Balaji T K Signed-off-by: Graeme Gregory Signed-off-by: Oleksandr Kozaruk --- drivers/iio/adc/Kconfig | 14 + drivers/iio/adc/Makefile

[PATCH v5 1/2] ARM: dts: twl: Add GPADC data to device tree

2013-07-17 Thread Oleksandr Kozaruk
GPADC is the general purpose ADC present on twl6030. The dt data is interrupt used to trigger end of ADC conversion. Signed-off-by: Oleksandr Kozaruk --- arch/arm/boot/dts/twl6030.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/twl6030.dtsi b/arch/arm/boot/dts

Re: [PATCH 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-17 Thread Oleksandr Kozaruk
Hello Jonathan, >Two very quick comments based on quick glance as it may be a while before I can do a full review. >We still have channels that are only usable for temperature being output to user space as voltage channels? Is the conversion so very hard? Can you please clarify what should

[PATCH v4 0/2] TWL6030, TWL6032 GPADC driver

2013-07-16 Thread Oleksandr Kozaruk
version and use interrupt instead; - iio framework is used Tested with on blaze tablet 2 with OMAP4430(twl6030), and OMAP4470(twl6032) SOMs. The patches were tested against 3.10-rc7 Oleksandr Kozaruk (2): ARM: dts: twl: Add GPADC data to device tree iio: twl6030-gpadc: TWL6030, TWL6032 GPADC dr

[PATCH v4 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-16 Thread Oleksandr Kozaruk
values are interpreted differently. Based on the driver patched from Balaji TK, Graeme Gregory, Ambresh K, Girish S Ghongdemath. Signed-off-by: Balaji T K Signed-off-by: Graeme Gregory Signed-off-by: Oleksandr Kozaruk --- drivers/iio/adc/Kconfig | 14 + drivers/iio/adc/Makefile

[PATCH v4 1/2] ARM: dts: twl: Add GPADC data to device tree

2013-07-16 Thread Oleksandr Kozaruk
GPADC is the general purpose ADC present on twl6030. The dt data is interrupt used to trigger end of ADC conversion. Signed-off-by: Oleksandr Kozaruk --- arch/arm/boot/dts/twl6030.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/twl6030.dtsi b/arch/arm/boot/dts

[PATCH v4 1/2] ARM: dts: twl: Add GPADC data to device tree

2013-07-16 Thread Oleksandr Kozaruk
GPADC is the general purpose ADC present on twl6030. The dt data is interrupt used to trigger end of ADC conversion. Signed-off-by: Oleksandr Kozaruk --- arch/arm/boot/dts/twl6030.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/twl6030.dtsi b/arch/arm/boot/dts

[PATCH v4 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-16 Thread Oleksandr Kozaruk
values are interpreted differently. Based on the driver patched from Balaji TK, Graeme Gregory, Ambresh K, Girish S Ghongdemath. Signed-off-by: Balaji T K Signed-off-by: Graeme Gregory Signed-off-by: Oleksandr Kozaruk --- drivers/iio/adc/Kconfig | 14 + drivers/iio/adc/Makefile

[PATCH 1/2] ARM: dts: twl: Add GPADC data to device tree

2013-07-16 Thread Oleksandr Kozaruk
GPADC is the general purpose ADC present on twl6030. The dt data is interrupt used to trigger end of ADC conversion. Signed-off-by: Oleksandr Kozaruk --- arch/arm/boot/dts/twl6030.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/twl6030.dtsi b/arch/arm/boot/dts

[PATCH v4 0/2] TWL6030, TWL6032 GPADC driver

2013-07-16 Thread Oleksandr Kozaruk
version and use interrupt instead; - iio framework is used Tested with on blaze tablet 2 with OMAP4430(twl6030), and OMAP4470(twl6032) SOMs. The patches were tested against 3.10-rc7 Oleksandr Kozaruk (2): ARM: dts: twl: Add GPADC data to device tree iio: twl6030-gpadc: TWL6030, TWL6032 GPADC dr

[PATCH 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-16 Thread Oleksandr Kozaruk
values are interpreted differently. Based on the driver patched from Balaji TK, Graeme Gregory, Ambresh K, Girish S Ghongdemath. Signed-off-by: Balaji T K Signed-off-by: Graeme Gregory Signed-off-by: Oleksandr Kozaruk --- drivers/iio/adc/Kconfig | 14 + drivers/iio/adc/Makefile

[PATCH v3 1/2] ARM: dts: twl: Add GPADC data to device tree

2013-07-12 Thread Oleksandr Kozaruk
GPADC is the general purpose ADC present on twl6030. The dt data is interrupt used to trigger end of ADC conversion. Signed-off-by: Oleksandr Kozaruk --- arch/arm/boot/dts/twl6030.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/twl6030.dtsi b/arch/arm/boot

[PATCH v3 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-12 Thread Oleksandr Kozaruk
values are interpreted differently. The driver exports function returning converted value for requested channels. Based on the driver patched from Balaji TK, Graeme Gregory, Ambresh K, Girish S Ghongdemath. Signed-off-by: Balaji T K Graeme Gregory Signed-off-by: Oleksandr Kozaruk --- drivers/iio

[PATCH v3 0/2] TWL6030, TWL6032 GPADC driver

2013-07-12 Thread Oleksandr Kozaruk
Tested with on blaze tablet 2 with OMAP4430(twl6030), and OMAP4470(twl6032) SOMs. The patches were tested against 3.10-rc7 Oleksandr Kozaruk (2): ARM: dts: twl: Add GPADC data to device tree iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver arch/arm/boot/dts/twl6030.dtsi |6 + drivers/

[PATCH v2 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-10 Thread Oleksandr Kozaruk
values are interpreted differently. The driver exports function returning converted value for requested channels. Based on the driver patched from Balaji TK, Graeme Gregory, Ambresh K, Girish S Ghongdemath. Signed-off-by: Balaji T K Graeme Gregory Signed-off-by: Oleksandr Kozaruk --- drivers/iio

[PATCH v2 0/2] TWL6030, TWL6032 GPADC driver

2013-07-10 Thread Oleksandr Kozaruk
blaze tablet 2 with OMAP4430(twl6030), and OMAP4470(twl6032) SOMs. The patches were tested against 3.10-rc7 Oleksandr Kozaruk (2): ARM: dts: twl: Add GPADC data to device tree iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver arch/arm/boot/dts/twl6030.dtsi |6 + drivers/iio/adc/Kconfig

[PATCH v2 1/2] ARM: dts: twl: Add GPADC data to device tree

2013-07-10 Thread Oleksandr Kozaruk
GPADC is the general purpose ADC present on twl6030. The dt data is interrupt used to trigger end of ADC conversion. Signed-off-by: Oleksandr Kozaruk --- arch/arm/boot/dts/twl6030.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/twl6030.dtsi b/arch/arm/boot

[PATCH v1 1/2] ARM: dts: twl: Add GPADC data to device tree

2013-06-27 Thread Oleksandr Kozaruk
GPADC is the general purpose ADC present on twl6030. The dt data is interrupt used to trigger end of ADC conversion. Signed-off-by: Oleksandr Kozaruk --- arch/arm/boot/dts/twl6030.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/twl6030.dtsi b/arch/arm/boot/dts

[PATCH v1 0/2] TWL6030, TWL6032 GPADC driver

2013-06-27 Thread Oleksandr Kozaruk
ported external function interface to the driver. Tested with on blaze tablet 2 with OMAP4430(twl6030), and OMAP4470(twl6032) SOMs. The patches were tested against 3.10-rc7 Oleksandr Kozaruk (2): ARM: dts: twl: Add GPADC data to device tree mfd: twl6030-gpadc: TWL6030, TWL6032 GPADC driver ..

[PATCH v1 2/2] mfd: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-06-27 Thread Oleksandr Kozaruk
values are interpreted differently. The driver exports function returning converted value for requested channels. Based on the driver patched from Balaji TK, Graeme Gregory, Ambresh K, Girish S Ghongdemath. Signed-off-by: Balaji T K Graeme Gregory Signed-off-by: Oleksandr Kozaruk --- .../testing

[PATCH] MFD: Change TWL6025 references to TWL6032

2013-06-19 Thread Oleksandr Kozaruk
there are no users of TWL6025 in the code. Signed-off-by: Graeme Gregory Signed-off-by: Oleksandr Kozaruk Acked-by: Lee Jones --- There are non-mainline branches that use twl6032 by its name (for example git://git.omapzoom.org/kernel/omap.git). There is intention to add support of twl6032 device

Re: [RFC v1] MFD: Change TWL6025 references to TWL6032

2013-06-13 Thread Oleksandr Kozaruk
On 06/13/2013 11:17 AM, Oleksandr Kozaruk wrote: On Fri, Jun 7, 2013 at 5:44 PM, <mailto:g...@slimlogic.co.uk>> wrote: > > On 2013-06-07 15:36, Mark Brown wrote: >> >> On Fri, Jun 07, 2013 at 01:53:10PM +0300, Oleksandr Kozaruk wrote: >>> >>> Fro

Re: [RFC v1] MFD: Change TWL6025 references to TWL6032

2013-06-13 Thread Oleksandr Kozaruk
On 06/07/2013 05:44 PM, g...@slimlogic.co.uk wrote: On 2013-06-07 15:36, Mark Brown wrote: On Fri, Jun 07, 2013 at 01:53:10PM +0300, Oleksandr Kozaruk wrote: From: Graeme Gregory The TWL6025 was never released beyond sample form and was replaced by the PhoenixLite range of chips - TWL6032

Re: [RFC v1] MFD: Change TWL6025 references to TWL6032

2013-06-13 Thread Oleksandr Kozaruk
On 06/07/2013 05:44 PM, g...@slimlogic.co.uk wrote: On 2013-06-07 15:36, Mark Brown wrote: On Fri, Jun 07, 2013 at 01:53:10PM +0300, Oleksandr Kozaruk wrote: From: Graeme Gregory The TWL6025 was never released beyond sample form and was replaced by the PhoenixLite range of chips - TWL6032

Re: [RFC v1] MFD: Change TWL6025 references to TWL6032

2013-06-13 Thread Oleksandr Kozaruk
On 06/07/2013 05:44 PM, g...@slimlogic.co.uk wrote: On 2013-06-07 15:36, Mark Brown wrote: On Fri, Jun 07, 2013 at 01:53:10PM +0300, Oleksandr Kozaruk wrote: From: Graeme Gregory The TWL6025 was never released beyond sample form and was replaced by the PhoenixLite range of chips - TWL6032

[RFC v1] MFD: Change TWL6025 references to TWL6032

2013-06-07 Thread Oleksandr Kozaruk
there is no users of TWL6025 in the code. Signed-off-by: Graeme Gregory Signed-off-by: Oleksandr Kozaruk --- There are non-mainline branches that use twl6032 by its name (for example git://git.omapzoom.org/kernel/omap.git). There is intention to add support of twl6032 device in mainline, but we&#