[PATCH 34/61] gpio: pcf857x: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration and clean the error path. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-pcf857x.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-pcf857x.c b/drivers/gpio/gpio-pcf857x.c index 709cd3f

[PATCH 30/61] gpio: mvebu: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration and clean the error path. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-mvebu.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c index a5eacc1..11c6582

[PATCH 31/61] gpio: mxc: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration and clean the error path. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-mxc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 7fd21cb..1b342a3 100644 --- a

[PATCH 32/61] gpio: octeon: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration and remove the need of driver callback .remove. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-octeon.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpio/gpio-octeon.c b/drivers/gpio/gpio-octeon.c

[PATCH 33/61] gpio: pca953x: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-pca953x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 23196c5..b7fe5d5 100644 --- a/drivers/gpio

[PATCH 28/61] gpio: mc9s08dz60: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration and remove the need of driver callback .remove. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-mc9s08dz60.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-mc9s08dz60.c b/drivers/gpio

[PATCH 21/61] gpio: generic: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration and remove the need of driver callback .remove. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-generic.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/gpio/gpio-generic.c b/drivers/gpio/gpio

[PATCH 22/61] gpio: iop: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-iop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-iop.c b/drivers/gpio/gpio-iop.c index fb65e58..860c535 100644 --- a/drivers/gpio/gpio-iop.c +++ b

[PATCH 18/61] gpio: ep93xx: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-ep93xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c index ad27907..d054219 100644 --- a/drivers/gpio/gpio

[PATCH 24/61] gpio: kempld: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration and remove the need of driver callback .remove. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-kempld.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/gpio/gpio-kempld.c b/drivers/gpio/gpio

[PATCH 16/61] gpio: da9055: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration and remove the need of driver callback .remove. Signed-off-by: Laxman Dewangan Cc: Support Opensource --- drivers/gpio/gpio-da9055.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/gpio/gpio-da9055

[PATCH 15/61] gpio: da9052: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration and remove the need of driver callback .remove. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-da9052.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/gpio/gpio-da9052.c b/drivers/gpio/gpio-da9052

[PATCH 17/61] gpio: dln2: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-dln2.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-dln2.c b/drivers/gpio/gpio-dln2.c index e11a7d1..f7a60a4 100644 --- a/drivers

[PATCH 14/61] gpio: cs5535: Use devm_gpiochip_add_data() for gpio registration

2016-02-22 Thread Laxman Dewangan
Use devm_gpiochip_add_data() for GPIO registration and remove the need of driver callback .remove. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpio-cs5535.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/gpio/gpio-cs5535.c b/drivers/gpio

Re: [PATCH V8 6/8] gpio: max77620: add gpio driver for MAX77620/MAX20024

2016-02-19 Thread Laxman Dewangan
On Tuesday 16 February 2016 04:48 AM, Linus Walleij wrote: On Thu, Feb 11, 2016 at 12:56 PM, Laxman Dewangan wrote: MAXIM Semiconductor's PMIC, MAX77620/MAX20024 has 8 GPIO pins. It also supports interrupts from these pins. Add GPIO driver for these pins to control via GPIO APIs. S

Re: [PATCH V8 0/8] Add support for MAXIM MAX77620/MAX20024 PMIC

2016-02-19 Thread Laxman Dewangan
On Tuesday 16 February 2016 09:30 PM, Thierry Reding wrote: On Thu, Feb 11, 2016 at 05:26:26PM +0530, Laxman Dewangan wrote: Add SW support for MAXIM Semiconductor's Power Management IC (PMIC) MAX77620/MAX20024. This PMIC supports DC-DC/LDOS, GPIOs, RTC, watchdog, clocks etc. Hi Laxman,

Re: [PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove

2016-02-19 Thread Laxman Dewangan
On Tuesday 16 February 2016 08:33 PM, Linus Walleij wrote: On Mon, Feb 15, 2016 at 2:17 PM, Laxman Dewangan wrote: Add device managed APIs devm_gpiochip_add_data() and devm_gpiochip_remove() for the APIs gpiochip_add_data() and gpiochip_remove(). This helps in reducing code in error path

[PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove

2016-02-15 Thread Laxman Dewangan
Add device managed APIs devm_gpiochip_add_data() and devm_gpiochip_remove() for the APIs gpiochip_add_data() and gpiochip_remove(). This helps in reducing code in error path and sometimes removal of .remove callback for driver unbind. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpiolib.c

Re: [PATCH V2] regulator: max8973: add support for junction thermal warning

2016-02-12 Thread Laxman Dewangan
On Friday 12 February 2016 07:06 PM, Rob Herring wrote: On Wed, Jan 6, 2016 at 10:07 AM, Laxman Dewangan wrote: Enhanced transient response (ETR) will affect the configuration of CKADV. +-maxim,junction-temp-warning: Junction temp warning on which device generates + warning

[PATCH V8 7/8] regulator: add DT binding doc for regulator of PMIC max77620/max20024

2016-02-11 Thread Laxman Dewangan
Maxim Semiconductor's PMIC MAX77620/MAX20024 has multiple DCDCs and LDOs. Add DT binding document to support these regulators via regulator framework. Signed-off-by: Laxman Dewangan Acked-by: Rob Herring --- Changes from V4: - Separate out from regulator driver Changes from V6: - Sta

[PATCH V8 6/8] gpio: max77620: add gpio driver for MAX77620/MAX20024

2016-02-11 Thread Laxman Dewangan
MAXIM Semiconductor's PMIC, MAX77620/MAX20024 has 8 GPIO pins. It also supports interrupts from these pins. Add GPIO driver for these pins to control via GPIO APIs. Signed-off-by: Laxman Dewangan Reviewed-by: Linus Walleij --- Changes from V1: - Use the gpiochip_add_data and get the chip

[PATCH V8 8/8] regulator: max77620: add regulator driver for max77620/max20024

2016-02-11 Thread Laxman Dewangan
APIs. Signed-off-by: Laxman Dewangan Signed-off-by: Mallikarjun Kasoju Reviewed-by: Krzysztof Kozlowski --- Changes form V1: - Cleanup code based on comment received on mfd/rtc. - Avoid duplication on error message. Changes form V2: - Run coccicheck and checkpatch in strict mode for the alig

[PATCH V8 2/8] mfd: max77620: add core driver for MAX77620/MAX20024

2016-02-11 Thread Laxman Dewangan
the device. Signed-off-by: Laxman Dewangan Signed-off-by: Mallikarjun Kasoju Reviewed-by: Krzysztof Kozlowski --- Changes from V1: - Code cleanups per review from V1. - Move register acccess APIs from header to c file. - Remove some of non required variable, remove duplication in error message

[PATCH V8 3/8] pinctrl: add DT binding doc for pincontrol of PMIC max77620/max20024

2016-02-11 Thread Laxman Dewangan
Maxim Semiconductor's PMIC MAX77620/MAX20024 has 8 GPIO pins which act as GPIO as well as special function mode. Add DT binding document to configure pins in function mode as well as pin configuration parameters. Signed-off-by: Laxman Dewangan Acked-by: Rob Herring --- Changes fr

[PATCH V8 4/8] pinctrl: max77620: add pincontrol driver for MAX77620/MAX20024

2016-02-11 Thread Laxman Dewangan
d-off-by: Laxman Dewangan Reviewed-by: Linus Walleij --- Changes from V1: - Cleanup code based on comment received on mfd/rtc. - Avoid duplication on error message. Changes form V2: - Run coccicheck and checkpatch in strict mode for the alignment. - update based on api changes from core. Changes

[PATCH V8 1/8] mfd: add device-tree binding doc for PMIC max77620/max20024

2016-02-11 Thread Laxman Dewangan
The MAXIM PMIC MAX77620 and MAX20024 are power management IC which supports RTC, GPIO, DCDC/LDO regulators, interrupt, watchdog etc. Add DT binding document for the different functionality of this device. Signed-off-by: Laxman Dewangan Acked-by: Rob Herring --- Changes from V1: - Added units

[PATCH V8 5/8] gpio: add DT binding doc for gpio of PMIC max77620/max20024

2016-02-11 Thread Laxman Dewangan
Maxim Semiconductor's PMIC MAX77620/MAX20024 has 8 GPIO pins which act as GPIO as well as special function mode. Add DT binding document to support these pins in GPIO mode via GPIO framework. Signed-off-by: Laxman Dewangan Acked-by: Rob Herring --- Changes from V4: - Separate out from

[PATCH V8 0/8] Add support for MAXIM MAX77620/MAX20024 PMIC

2016-02-11 Thread Laxman Dewangan
regulators sub node. Changes from V7: - Used mfd defines, better describe the FPS sequence properties. Laxman Dewangan (8): mfd: add device-tree binding doc for PMIC max77620/max20024 mfd: max77620: add core driver for MAX77620/MAX20024 pinctrl: add DT binding doc for pincontrol of PM

Re: [PATCH V7 1/8] mfd: add device-tree binding doc for PMIC max77620/max20024

2016-02-11 Thread Laxman Dewangan
On Thursday 11 February 2016 02:56 PM, Lee Jones wrote: On Wed, 10 Feb 2016, Laxman Dewangan wrote: sleep: <0/1> 0: sleep mode disable, 1: sleep mode enable. Ideally yes. This is obviously going to be used again. However; - My fear is that it will get co

Re: [PATCH v2] mfd: Provide MACRO to declare commonly defined MFD cell attributes

2016-02-11 Thread Laxman Dewangan
On Thursday 11 February 2016 02:40 PM, Lee Jones wrote: On Wed, 10 Feb 2016, Laxman Dewangan wrote: On Wednesday 10 February 2016 09:08 PM, Lee Jones wrote: mfd: Provide MACRO to declare commonly defined MFD cell attributes Cc: Laxman Dewangan Signed-off-by: Lee Jones Build passed with

Re: [PATCH v2] mfd: Provide MACRO to declare commonly defined MFD cell attributes

2016-02-10 Thread Laxman Dewangan
On Wednesday 10 February 2016 09:08 PM, Lee Jones wrote: mfd: Provide MACRO to declare commonly defined MFD cell attributes Cc: Laxman Dewangan Signed-off-by: Lee Jones Build passed with this patch when using it. Acked-by: Laxman Dewangan Please let me know if you applying this. I

Re: [PATCH V7 1/8] mfd: add device-tree binding doc for PMIC max77620/max20024

2016-02-10 Thread Laxman Dewangan
On Wednesday 10 February 2016 06:53 PM, Lee Jones wrote: On Tue, 09 Feb 2016, Laxman Dewangan wrote: On Tuesday 09 February 2016 09:12 PM, Lee Jones wrote: On Sat, 30 Jan 2016, Laxman Dewangan wrote: + Normal mode also called as active mode on which all step-down

Re: [PATCH] mfd: Provide MACRO to declare commonly defined MFD cell attributes

2016-02-10 Thread Laxman Dewangan
On Tuesday 09 February 2016 07:57 PM, Lee Jones wrote: Cc: Laxman Dewangan Signed-off-by: Lee Jones --- include/linux/mfd/core.h | 32 1 file changed, 32 insertions(+) diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h index 27dac3f..dacdc49

[PATCH] regmap: irq: add devm apis for regmap_{add,del}_irq_chip

2016-02-10 Thread Laxman Dewangan
ce there is less code on this path. Signed-off-by: Laxman Dewangan --- drivers/base/regmap/regmap-irq.c | 82 include/linux/regmap.h | 8 2 files changed, 90 insertions(+) diff --git a/drivers/base/regmap/regmap-irq.c b/drivers/base/regma

Re: [PATCH V7 1/8] mfd: add device-tree binding doc for PMIC max77620/max20024

2016-02-09 Thread Laxman Dewangan
On Tuesday 09 February 2016 09:12 PM, Lee Jones wrote: On Sat, 30 Jan 2016, Laxman Dewangan wrote: + Normal mode also called as active mode on which all step-down + regulators, all linear regulators, GPIOs, and the 32kHz + oscillator are in normal active mode

[PATCH V7 0/5] rtc: max77686: make max77686 rtc driver as IP driver

2016-02-09 Thread Laxman Dewangan
Laxman Dewangan (5): rtc: max77686: fix checkpatch error rtc: max77686: use rtc regmap to access RTC registers rtc: max77686: avoid reference of parent device info multiple places mfd: max77686: do not set i2c client data for rtc i2c client rtc: max77686: move initialisation of rtc regmap

[PATCH V7 1/5] rtc: max77686: fix checkpatch error

2016-02-09 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof

[PATCH V7 4/5] mfd: max77686: do not set i2c client data for rtc i2c client

2016-02-09 Thread Laxman Dewangan
data for rtc i2c client. Suggested-by: Krzysztof Kozlowski Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Tested-by: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas --- This is new in this series based on

[PATCH V7 3/5] rtc: max77686: avoid reference of parent device info multiple places

2016-02-09 Thread Laxman Dewangan
Get rid of referring parent device info for register access all the places by making regmap as part of max77686 rtc device info. This will also remove the need of storing parent device info in max77686 rtc device info as this is no more required. Signed-off-by: Laxman Dewangan CC: Krzysztof

[PATCH V7 2/5] rtc: max77686: use rtc regmap to access RTC registers

2016-02-09 Thread Laxman Dewangan
rtc_regmap should be used to access all RTC registers instead of parent regmap regardless of what chip or property have it. This makes the register access uniform and extendible for other chips. Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by

[PATCH V7 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-09 Thread Laxman Dewangan
PMIC/devices from Maxim Semiconductor if they kept same RTC IP on different PMIC. Some of examples as PMIC MAX77620, MAX20024 where same RTC IP used and hence driver for these chips will use this driver only for RTC support. Suggested-by: Krzysztof Kozlowski Signed-off-by: Laxman Dewangan CC

Re: [PATCH] mfd: Provide MACRO to declare commonly defined MFD cell attributes

2016-02-09 Thread Laxman Dewangan
On Tuesday 09 February 2016 07:57 PM, Lee Jones wrote: + +#define MFD_CELL_NAME(_name) \ + { \ + MFD_CELL_ALL(_name, NULL, NULL, 0, NULL, NULL) \ + } + str

Re: [PATCH V6 1/6] regmap: irq: dispose all virtual irq before removing domain

2016-02-09 Thread Laxman Dewangan
On Tuesday 09 February 2016 08:44 PM, Mark Brown wrote: * PGP Signed by an unknown key On Tue, Feb 09, 2016 at 10:27:22AM -0300, Javier Martinez Canillas wrote: I believe this patch could be picked separately and not made part of this series since is fixing a bug that happens on most drivers

Re: [PATCH V7 8/8] regulator: max77620: add regulator driver for max77620/max20024

2016-02-09 Thread Laxman Dewangan
Hi Mark, I have taken care of all your previous comment on this patch. Can you please review? I got the macro from Lee's and spinning the V8 of this series so if there is any thing, I can take care on my next version. Thanks, Laxman On Saturday 30 January 2016 10:08 PM, Laxman Dew

Re: [PATCH V6 1/6] regmap: irq: dispose all virtual irq before removing domain

2016-02-09 Thread Laxman Dewangan
On Tuesday 09 February 2016 06:57 PM, Javier Martinez Canillas wrote: Hello Laxman, On 02/09/2016 09:28 AM, Laxman Dewangan wrote: It is require to dispose all virtual irq of hwirq on chip created on given irq domain before removing this irq domain. Hence dispose all mapped irqs before

[PATCH V6 3/6] rtc: max77686: use rtc regmap to access RTC registers

2016-02-09 Thread Laxman Dewangan
rtc_regmap should be used to access all RTC registers instead of parent regmap regardless of what chip or property have it. This makes the register access uniform and extendible for other chips. Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by

[PATCH V6 6/6] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-09 Thread Laxman Dewangan
PMIC/devices from Maxim Semiconductor if they kept same RTC IP on different PMIC. Some of examples as PMIC MAX77620, MAX20024 where same RTC IP used and hence driver for these chips will use this driver only for RTC support. Suggested-by: Krzysztof Kozlowski Signed-off-by: Laxman Dewangan CC

[PATCH V6 4/6] rtc: max77686: avoid reference of parent device info multiple places

2016-02-09 Thread Laxman Dewangan
Get rid of referring parent device info for register access all the places by making regmap as part of max77686 rtc device info. This will also remove the need of storing parent device info in max77686 rtc device info as this is no more required. Signed-off-by: Laxman Dewangan CC: Krzysztof

[PATCH V6 5/6] mfd: max77686: do not set i2c client data for rtc i2c client

2016-02-09 Thread Laxman Dewangan
data for rtc i2c client. Suggested-by: Krzysztof Kozlowski Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Tested-by: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas --- This is new in this series based on

[PATCH V6 2/6] rtc: max77686: fix checkpatch error

2016-02-09 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof

[PATCH V6 0/6] rtc: max77686: make max77686 rtc driver as IP driver

2016-02-09 Thread Laxman Dewangan
suspend-resume after unbind/bind by unmapping virq in remove callback. Changes from V5: - Abandon the addition of new API in regmap-irq and add dispose of virq in regmap_del_irq_chip(). Laxman Dewangan (6): regmap: irq: dispose all virtual irq before removing domain rtc: max77686: fix

[PATCH V6 1/6] regmap: irq: dispose all virtual irq before removing domain

2016-02-09 Thread Laxman Dewangan
It is require to dispose all virtual irq of hwirq on chip created on given irq domain before removing this irq domain. Hence dispose all mapped irqs before deleting the irq domains in regmap_del_irq_chip(); Signed-off-by: Laxman Dewangan --- This is new in series. Earlier patch for adding APIs

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-09 Thread Laxman Dewangan
On Tuesday 09 February 2016 04:57 PM, Mark Brown wrote: * PGP Signed by an unknown key On Tue, Feb 09, 2016 at 02:38:28PM +0530, Laxman Dewangan wrote: On Tuesday 09 February 2016 10:46 AM, Laxman Dewangan wrote: Do we need to dispose all virtual irq in regmap_del_irq_chip() before actually

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-09 Thread Laxman Dewangan
On Tuesday 09 February 2016 10:46 AM, Laxman Dewangan wrote: On Monday 08 February 2016 11:49 PM, Mark Brown wrote: * PGP Signed by an unknown key On Mon, Feb 08, 2016 at 10:26:20PM +0530, Laxman Dewangan wrote: So fix need to go in the irq_domain_remove() to unamp before actually

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-08 Thread Laxman Dewangan
On Monday 08 February 2016 11:49 PM, Mark Brown wrote: * PGP Signed by an unknown key On Mon, Feb 08, 2016 at 10:26:20PM +0530, Laxman Dewangan wrote: So fix need to go in the irq_domain_remove() to unamp before actually destroying the irq domain? That's one option, but you could al

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-08 Thread Laxman Dewangan
Adding Thomas in the discussion. On Monday 08 February 2016 10:29 PM, Mark Brown wrote: * PGP Signed by an unknown key On Mon, Feb 08, 2016 at 10:08:28PM +0530, Laxman Dewangan wrote: On Monday 08 February 2016 08:25 PM, Mark Brown wrote: On Sat, Feb 06, 2016 at 08:07:22PM +0530, Laxman

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-08 Thread Laxman Dewangan
On Monday 08 February 2016 08:25 PM, Mark Brown wrote: * PGP Signed by an unknown key On Sat, Feb 06, 2016 at 08:07:22PM +0530, Laxman Dewangan wrote: Before removing irq domains, it is require to unmap all mapped interrupt from that domain. Currently there is API to map the interrupt on

[PATCH] thermal: of: use for_each_available_child_of_node for child iterator

2016-02-08 Thread Laxman Dewangan
Use for_each_available_child_of_node() for iterating over each available child instead of iterating over each child and then checking their status. Signed-off-by: Laxman Dewangan --- drivers/thermal/of-thermal.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff

[PATCH] i2c: core: add devm apis for i2c_new_dummy and i2c_unregister

2016-02-08 Thread Laxman Dewangan
device framework. 2. No need to release the i2c_client in error/remove path and hence there is less code requirement. Signed-off-by: Laxman Dewangan --- drivers/i2c/i2c-core.c | 70 ++ include/linux/i2c.h| 6 + 2 files changed, 76

[PATCH V5 6/6] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-08 Thread Laxman Dewangan
PMIC/devices from Maxim Semiconductor if they kept same RTC IP on different PMIC. Some of examples as PMIC MAX77620, MAX20024 where same RTC IP used and hence driver for these chips will use this driver only for RTC support. Suggested-by: Krzysztof Kozlowski Signed-off-by: Laxman Dewangan CC

Re: [PATCH V4 6/6] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-08 Thread Laxman Dewangan
On Saturday 06 February 2016 08:07 PM, Laxman Dewangan wrote: - ret = devm_request_threaded_irq(&pdev->dev, info->virq, NULL, - max77686_rtc_alarm_irq, 0, - "rtc-alarm1", info); - if (

[PATCH V4 2/6] rtc: max77686: fix checkpatch error

2016-02-06 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof

[PATCH V4 6/6] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-06 Thread Laxman Dewangan
PMIC/devices from Maxim Semiconductor if they kept same RTC IP on different PMIC. Some of examples as PMIC MAX77620, MAX20024 where same RTC IP used and hence driver for these chips will use this driver only for RTC support. Suggested-by: Krzysztof Kozlowski Signed-off-by: Laxman Dewangan CC

[PATCH V4 3/6] rtc: max77686: use rtc regmap to access RTC registers

2016-02-06 Thread Laxman Dewangan
rtc_regmap should be used to access all RTC registers instead of parent regmap regardless of what chip or property have it. This makes the register access uniform and extendible for other chips. Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by

[PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-06 Thread Laxman Dewangan
Before removing irq domains, it is require to unmap all mapped interrupt from that domain. Currently there is API to map the interrupt on chip as regmap_irq_get_virq() for creating mapping. Add equivalent API to dispose the mapped irq in irq domains. Signed-off-by: Laxman Dewangan CC: Krzysztof

[PATCH V4 4/6] rtc: max77686: avoid reference of parent device info multiple places

2016-02-06 Thread Laxman Dewangan
Get rid of referring parent device info for register access all the places by making regmap as part of max77686 rtc device info. This will also remove the need of storing parent device info in max77686 rtc device info as this is no more required. Signed-off-by: Laxman Dewangan CC: Krzysztof

[PATCH V4 5/6] mfd: max77686: do not set i2c client data for rtc i2c client

2016-02-06 Thread Laxman Dewangan
data for rtc i2c client. Suggested-by: Krzysztof Kozlowski Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Tested-by: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas --- This is new in this series based on

[PATCH V4 0/6] rtc: max77686: make max77686 rtc driver as IP driver

2016-02-06 Thread Laxman Dewangan
suspend-resume after unbind/bind by unmapping virq in remove callback. Laxman Dewangan (6): regmap: irq: add apis to unmap the mapped irq rtc: max77686: fix checkpatch error rtc: max77686: use rtc regmap to access RTC registers rtc: max77686: avoid reference of parent device info multiple

Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-06 Thread Laxman Dewangan
On Saturday 06 February 2016 06:31 PM, Javier Martinez Canillas wrote: Hello Laxman, On 02/06/2016 03:29 AM, Laxman Dewangan wrote: So the issue is that when we create mapping, we can not delete the irq_chip. I saw one function from irq framework irq_dispose_mapping(unsigned int virq

Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-05 Thread Laxman Dewangan
Hi Javier, ' On Saturday 06 February 2016 11:00 AM, Javier Martinez Canillas wrote: Hello Laxman, Sorry for not doing this before but today was a busy one. Thanks for testing. On 02/05/2016 11:37 AM, Laxman Dewangan wrote: Hi Krzysztof, Javier, 3. Extension of

Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-05 Thread Laxman Dewangan
Hi Krzysztof, Javier, On Thursday 04 February 2016 02:38 PM, Krzysztof Kozlowski wrote: On 04.02.2016 15:58, Krzysztof Kozlowski wrote: 3. Can you try locally to not use devm_regmap_init_i2c() and just use the regmap_init_i2c() and proper removal of this from error path and remove callback? I'

Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-04 Thread Laxman Dewangan
On Thursday 04 February 2016 02:38 PM, Krzysztof Kozlowski wrote: On 04.02.2016 15:58, Krzysztof Kozlowski wrote: On 04.02.2016 11:03, Laxman Dewangan wrote: 3. Can you try locally to not use devm_regmap_init_i2c() and just use the regmap_init_i2c() and proper removal of this from error path

Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-03 Thread Laxman Dewangan
Hi Javier, On Thursday 04 February 2016 07:33 AM, Laxman Dewangan wrote: On Thursday 04 February 2016 05:40 AM, Krzysztof Kozlowski wrote: On 03.02.2016 22:47, Laxman Dewangan wrote: Changes from V2: - Taken care of missed sequence for removing the resource. - Fix the crash when doing

Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-03 Thread Laxman Dewangan
On Thursday 04 February 2016 05:40 AM, Krzysztof Kozlowski wrote: On 03.02.2016 22:47, Laxman Dewangan wrote: Changes from V2: - Taken care of missed sequence for removing the resource. - Fix the crash when doing unbind by using requested_threaded_irq() instead of

[PATCH V3 0/5] rtc: max77686: make max77686 rtc driver as IP driver

2016-02-03 Thread Laxman Dewangan
which we got from V1. - Remove changes from Kconfig. - Maintain all register definition in max77686 private header and remove the movement to rtc driver. - Taken care of all comments on V1 from Krzysztof and Javier. Changes from V2: - Fix the issue of crash in unbind. Laxman Dewangan (5): rtc

[PATCH V3 1/5] rtc: max77686: fix checkpatch error

2016-02-03 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof

[PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-03 Thread Laxman Dewangan
PMIC/devices from Maxim Semiconductor if they kept same RTC IP on different PMIC. Some of examples as PMIC MAX77620, MAX20024 where same RTC IP used and hence driver for these chips will use this driver only for RTC support. Suggested-by: Krzysztof Kozlowski Signed-off-by: Laxman Dewangan CC

[PATCH V3 3/5] rtc: max77686: avoid reference of parent device info multiple places

2016-02-03 Thread Laxman Dewangan
Get rid of referring parent device info for register access all the places by making regmap as part of max77686 rtc device info. This will also remove the need of storing parent device info in max77686 rtc device info as this is no more required. Signed-off-by: Laxman Dewangan CC: Krzysztof

[PATCH V3 4/5] mfd: max77686: do not set i2c client data for rtc i2c client

2016-02-03 Thread Laxman Dewangan
data for rtc i2c client. Suggested-by: Krzysztof Kozlowski Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Reviewed-by: Javier Martinez Canillas --- This is new in this series based on review comment from V1. Changes from

[PATCH V3 2/5] rtc: max77686: use rtc regmap to access RTC registers

2016-02-03 Thread Laxman Dewangan
rtc_regmap should be used to access all RTC registers instead of parent regmap regardless of what chip or property have it. This makes the register access uniform and extendible for other chips. Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by

Re: [PATCH V2 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-03 Thread Laxman Dewangan
On Wednesday 03 February 2016 04:52 PM, Krzysztof Kozlowski wrote: On 03.02.2016 19:45, Krzysztof Kozlowski wrote: On 03.02.2016 18:30, Laxman Dewangan wrote: err_rtc: + if (info->rtc) + i2c_unregister_device(info->rtc); + regmap_del_irq_chip(info->rtc_

[PATCH V2 3/5] rtc: max77686: avoid reference of parent device info multiple palces

2016-02-03 Thread Laxman Dewangan
Get rid of referring parent device info for register access all the places by making regmap as part of max77686 rtc device info. This will also remove the need of storing parent device info in max77686 rtc device info as this is no more required. Signed-off-by: Laxman Dewangan CC: Krzysztof

[PATCH V2 1/5] rtc: max77686: fix checkpatch error

2016-02-03 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof

[PATCH V2 2/5] rtc: max77686: use rtc regmap to access RTC registers

2016-02-03 Thread Laxman Dewangan
rtc_regmap should be used to access all RTC registers instead of parent regmap regardless of what chip or property have it. This makes the register access uniform and extendible for other chips. Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by

[PATCH V2 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-03 Thread Laxman Dewangan
PMIC/devices from Maxim Semiconductor if they kept same RTC IP on different PMIC. Some of examples as PMIC MAX77620, MAX20024 where same RTC IP used and hence driver for these chips will use this driver only for RTC support. Suggested-by: Krzysztof Kozlowski Signed-off-by: Laxman Dewangan CC

[PATCH V2 4/5] mfd: max77686: do not set i2c client data for rtc i2c client

2016-02-03 Thread Laxman Dewangan
: Krzysztof Kozlowski Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas --- This is new in this series based on review comment from V1. drivers/mfd/max77686.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c index

[PATCH V2 0/5] rtc: max77686: make max77686 rtc driver as IP driver

2016-02-03 Thread Laxman Dewangan
tag which we got from V1. - Remove changes from Kconfig. - Maintain all register definition in max77686 private header and remove the movement to rtc driver. - Taken care of all comments on V1 from Krzysztof and Javier. Laxman Dewangan (5): rtc: max77686: fix checkpatch error rtc: max77686: use

[PATCH 1/4] rtc: max77686: fix checkpatch error

2016-02-02 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan --- drivers/rtc/rtc-max77686.c | 25 + 1 file changed

[PATCH 3/4] rtc: max77686: avoid reference of parent device info multiple palces

2016-02-02 Thread Laxman Dewangan
Get rid of referring parent device info for register access all the places by making regmap as part of max77686 rtc device info. This will also remove the need of storing parent device info in max77686 rtc device info as this is no more required. Signed-off-by: Laxman Dewangan --- drivers/rtc

[PATCH 0/4] rtc: max77686: make max77686 rtc driver as IP driver

2016-02-02 Thread Laxman Dewangan
the rtc-max77686 as independent driver from its parent. Required information is passed through the device parent which is generic and does not depends on any max77686 specific header ifnromation. CC: Krzysztof Mazur CC: Javier Martinez Canillas Laxman Dewangan (4): rtc: max77686: fix

[PATCH 2/4] rtc: max77686: use rtc regmap to access RTC registers

2016-02-02 Thread Laxman Dewangan
rtc_regmap should be used to access all RTC regsiters instead of parent regmap regardless of what chip or property have it. This makes the register access uniform and extendible for other chips. Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas --- drivers

[PATCH 4/4] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-02 Thread Laxman Dewangan
To make RTC block of MAX77686/MAX77802 as independent driver, move the registeration of i2c device, regmap for register access and irq_chip for interrupt support inside the RTC driver. Removed the same initialisation from mfd driver. Signed-off-by: Laxman Dewangan CC: Krzysztof Mazur CC: Javier

Re: [PATCH V7 2/8] mfd: max77620: add core driver for MAX77620/MAX20024

2016-02-01 Thread Laxman Dewangan
On Monday 01 February 2016 02:32 PM, Lee Jones wrote: On Mon, 01 Feb 2016, Laxman Dewangan wrote: On Monday 01 February 2016 01:55 PM, Lee Jones wrote: On Sat, 30 Jan 2016, Laxman Dewangan wrote: This depends on patch [PATCH V2] mfd: core: add macro for adding mfd cells and due to absence

Re: [PATCH V6 2/8] mfd: max77620: add core driver for MAX77620/MAX20024

2016-02-01 Thread Laxman Dewangan
On Monday 01 February 2016 02:29 PM, Lee Jones wrote: On Fri, 29 Jan 2016, Laxman Dewangan wrote: Thanks Lee for review. I will take care of most of stuff on next version of patch. However, I have some query form your comment. On Friday 29 January 2016 02:36 PM, Lee Jones wrote: On Thu, 28

Re: [PATCH V7 2/8] mfd: max77620: add core driver for MAX77620/MAX20024

2016-02-01 Thread Laxman Dewangan
On Monday 01 February 2016 01:55 PM, Lee Jones wrote: On Sat, 30 Jan 2016, Laxman Dewangan wrote: This depends on patch [PATCH V2] mfd: core: add macro for adding mfd cells and due to absence of this patch, it reports the error. If you have dependencies, why aren't they in this set?

Re: [PATCH V7 2/8] mfd: max77620: add core driver for MAX77620/MAX20024

2016-01-30 Thread Laxman Dewangan
-20160129] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Laxman-Dewangan/Add-support-for-MAXIM-MAX77620-MAX20024-PMIC/20160131-005355 base: https://git.kernel.org/pub/scm/linux/kernel/git

[PATCH V7 2/8] mfd: max77620: add core driver for MAX77620/MAX20024

2016-01-30 Thread Laxman Dewangan
the device. Signed-off-by: Laxman Dewangan Signed-off-by: Mallikarjun Kasoju Reviewed-by: Krzysztof Kozlowski --- Changes from V1: - Code cleanups per review from V1. - Move register acccess APIs from header to c file. - Remove some of non required variable, remove duplication in error message

[PATCH V7 7/8] regulator: add DT binding doc for regulator of PMIC max77620/max20024

2016-01-30 Thread Laxman Dewangan
Maxim Semiconductor's PMIC MAX77620/MAX20024 has multiple DCDCs and LDOs. Add DT binding document to support these regulators via regulator framework. Signed-off-by: Laxman Dewangan Acked-by: Rob Herring --- Changes from V4: - Separate out from regulator driver Changes from V6: - Sta

[PATCH V7 8/8] regulator: max77620: add regulator driver for max77620/max20024

2016-01-30 Thread Laxman Dewangan
APIs. Signed-off-by: Laxman Dewangan Signed-off-by: Mallikarjun Kasoju Reviewed-by: Krzysztof Kozlowski --- - Cleanup code based on comment received on mfd/rtc. - Avoid duplication on error message. Changes form V2: - Run coccicheck and checkpatch in strict mode for the alignment. - Ref

[PATCH V7 4/8] pinctrl: max77620: add pincontrol driver for MAX77620/MAX20024

2016-01-30 Thread Laxman Dewangan
d-off-by: Laxman Dewangan Reviewed-by: Linus Walleij --- Changes from V1: - Cleanup code based on comment received on mfd/rtc. - Avoid duplication on error message. Changes form V2: - Run coccicheck and checkpatch in strict mode for the alignment. - update based on api changes from core. Changes

<    3   4   5   6   7   8   9   10   11   12   >