[RESEND][PATCH] regulator: tps65218: Convert to use regulator_set_voltage_time_sel

2014-05-21 Thread Axel Lin
Use regulator_set_voltage_time_sel() instead of open-coded. Signed-off-by: Axel Lin axel@ingics.com --- Hi Keerthy, This patch was sent on: https://lkml.org/lkml/2014/2/18/190 I'd appreciate if you can review and test it. Thanks, Axel drivers/regulator/tps65218-regulator.c | 37

[PATCH] clk: s2mps11: Simplify s2mps11_clk_probe unwind paths

2014-05-18 Thread Axel Lin
The devm_clk_unregister() in probe error paths are not necessary as it will be automatically called when probe fails. Signed-off-by: Axel Lin --- drivers/clk/clk-s2mps11.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk

[PATCH] clk: twl6040: Convert to use devm_clk_register

2014-05-18 Thread Axel Lin
Use devm_clk_register() to simplify the code by removing twl6040_clk_remove(). Signed-off-by: Axel Lin --- drivers/clk/clk-twl6040.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c index 1ada79a..9e996b4

[PATCH] clk: twl6040: Convert to use devm_clk_register

2014-05-18 Thread Axel Lin
Use devm_clk_register() to simplify the code by removing twl6040_clk_remove(). Signed-off-by: Axel Lin axel@ingics.com --- drivers/clk/clk-twl6040.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c index

[PATCH] clk: s2mps11: Simplify s2mps11_clk_probe unwind paths

2014-05-18 Thread Axel Lin
The devm_clk_unregister() in probe error paths are not necessary as it will be automatically called when probe fails. Signed-off-by: Axel Lin axel@ingics.com --- drivers/clk/clk-s2mps11.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/clk/clk

Re: [PATCH v2 1/3] regulator: s2mps11: Fix accidental enable of buck6 ramp delay

2014-05-12 Thread Axel Lin
2014-05-07 17:48 GMT+08:00 Krzysztof Kozlowski : > I forgot to CC the stable. > > Mark, if the patches are OK and if you'll apply them, could you add a CC > stable to the commit msg? Hi Krzysztof, Unless this serial misses 3.15, I think this serial does not need to CC stable. Both b96244fad953

Re: [PATCH v2 1/3] regulator: s2mps11: Fix accidental enable of buck6 ramp delay

2014-05-12 Thread Axel Lin
2014-05-07 17:48 GMT+08:00 Krzysztof Kozlowski k.kozlow...@samsung.com: I forgot to CC the stable. Mark, if the patches are OK and if you'll apply them, could you add a CC stable to the commit msg? Hi Krzysztof, Unless this serial misses 3.15, I think this serial does not need to CC stable.

Re: [PATCH v2 1/3] regulator: s2mps11: Fix accidental enable of buck6 ramp delay

2014-05-06 Thread Axel Lin
t for the bucks unsupporting enable/disable > (buck[15789] and buck10), the ramp delay for buck6 was also enabled. > > Signed-off-by: Krzysztof Kozlowski > Fixes: b96244fad953 ("regulator: s2mps11: Don't check enable_shift before > setting enable ramp rate") For this serial, Revie

Re: [PATCH v2 1/3] regulator: s2mps11: Fix accidental enable of buck6 ramp delay

2014-05-06 Thread Axel Lin
-by: Axel Lin axel@ingics.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 2/2] regulator: s2mpa01: Fix accidental enable of buck4 ramp delay

2014-05-05 Thread Axel Lin
2014-05-05 23:10 GMT+08:00 Krzysztof Kozlowski : > S2MPA01 supports enabling/disabling ramp delay only for buck[1234]. > Other bucks have ramp delay enabled always. > > However the bit shift for enabling buck4 ramp delay in register is equal > to 0. When ramp delay was set for these other bucks

Re: [PATCH 2/2] regulator: s2mpa01: Fix accidental enable of buck4 ramp delay

2014-05-05 Thread Axel Lin
2014-05-05 23:10 GMT+08:00 Krzysztof Kozlowski k.kozlow...@samsung.com: S2MPA01 supports enabling/disabling ramp delay only for buck[1234]. Other bucks have ramp delay enabled always. However the bit shift for enabling buck4 ramp delay in register is equal to 0. When ramp delay was set for

[PATCH RESEND] irqchip: vt8500: Properly mask the interrupt in irq_mask()

2014-05-03 Thread Axel Lin
interrupt enable bit for all interrupt trigger mode. According to the datasheet, the Interrupt Status Register is written one to clear(Write 0 has no effect). So we don't need a read-modify-write operation for clearing a bit in interrupt status register. Signed-off-by: Axel Lin --- Resend and also

[PATCH RESEND] irqchip: vt8500: Properly mask the interrupt in irq_mask()

2014-05-03 Thread Axel Lin
interrupt enable bit for all interrupt trigger mode. According to the datasheet, the Interrupt Status Register is written one to clear(Write 0 has no effect). So we don't need a read-modify-write operation for clearing a bit in interrupt status register. Signed-off-by: Axel Lin axel@ingics.com

[PATCH] irqchip: vt8500: Properly mask the interrupt in irq_mask()

2014-04-28 Thread Axel Lin
interrupt enable bit for all interrupt trigger mode. According to the datasheet, the Interrupt Status Register is written one to clear(Write 0 has no effect). So we don't need a read-modify-write operation for clearing a bit in interrupt status register. Signed-off-by: Axel Lin --- drivers/irqchip

Re: [PATCH v2] irqchip: vt8500: Switch to a simple write clear for Interrupt Status Register

2014-04-28 Thread Axel Lin
2014-04-28 18:08 GMT+08:00 Thomas Gleixner : > On Mon, 28 Apr 2014, Axel Lin wrote: > >> According to the datasheet, the attribute of Interrupt Status Register is >> RW0S, >> which means: >> Software can read the register. >> Software can al

Re: [PATCH v2] irqchip: vt8500: Switch to a simple write clear for Interrupt Status Register

2014-04-28 Thread Axel Lin
2014-04-28 18:08 GMT+08:00 Thomas Gleixner t...@linutronix.de: On Mon, 28 Apr 2014, Axel Lin wrote: According to the datasheet, the attribute of Interrupt Status Register is RW0S, which means: Software can read the register. Software can also write 1 to clear. write 0 has

[PATCH] irqchip: vt8500: Properly mask the interrupt in irq_mask()

2014-04-28 Thread Axel Lin
interrupt enable bit for all interrupt trigger mode. According to the datasheet, the Interrupt Status Register is written one to clear(Write 0 has no effect). So we don't need a read-modify-write operation for clearing a bit in interrupt status register. Signed-off-by: Axel Lin axel@ingics.com

[PATCH v2] irqchip: vt8500: Switch to a simple write clear for Interrupt Status Register

2014-04-27 Thread Axel Lin
write clear instead. Signed-off-by: Axel Lin --- v2: Update commit log, this is a code simplification rather than bug fix. drivers/irqchip/irq-vt8500.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-vt8500.c b/drivers/irqchip/irq-vt8500.c index eb6

Re: [PATCH] irqchip: vt8500: Switch to a simple write clear for Interrupt Status Register

2014-04-27 Thread Axel Lin
2014-04-28 2:34 GMT+08:00 Thomas Gleixner : > On Sun, 27 Apr 2014, Axel Lin wrote: > >> According to the datasheet, the attribute of Interrupt Status Register is >> RW0S, >> which means: >> Software can read the register. >> Software can al

[PATCH] irqchip: vt8500: Switch to a simple write clear for Interrupt Status Register

2014-04-27 Thread Axel Lin
/write does not make sense for an irq status register like this, since otherwise a read/modify/write can race with a device raising an interrupt and then clear the pending bit unintentionally. Signed-off-by: Axel Lin --- Hi Tony, I don't have this h/w to test, I'd appreciate if you can review

Re: [PATCH] irqchip: vt8500: Switch to a simple write clear for Interrupt Status Register

2014-04-27 Thread Axel Lin
2014-04-28 2:34 GMT+08:00 Thomas Gleixner t...@linutronix.de: On Sun, 27 Apr 2014, Axel Lin wrote: According to the datasheet, the attribute of Interrupt Status Register is RW0S, which means: Software can read the register. Software can also write 1 to clear. write 0 has

[PATCH v2] irqchip: vt8500: Switch to a simple write clear for Interrupt Status Register

2014-04-27 Thread Axel Lin
-off-by: Axel Lin axel@ingics.com --- v2: Update commit log, this is a code simplification rather than bug fix. drivers/irqchip/irq-vt8500.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-vt8500.c b/drivers/irqchip/irq-vt8500.c index eb6e91e..a0085bc

[PATCH] irqchip: vt8500: Switch to a simple write clear for Interrupt Status Register

2014-04-27 Thread Axel Lin
sense for an irq status register like this, since otherwise a read/modify/write can race with a device raising an interrupt and then clear the pending bit unintentionally. Signed-off-by: Axel Lin axel@ingics.com --- Hi Tony, I don't have this h/w to test, I'd appreciate if you can review and test

[PATCH] mfd: rdc321x: Fix off-by-one for ngpio setting

2014-04-24 Thread Axel Lin
The valid gpio is GPIO0 ~ GPIO58, so ngpio should be 59. This patch also renames RDC321X_MAX_GPIO to RDC321X_NUM_GPIO because it actually means the number of available GPIOs. Signed-off-by: Axel Lin Acked-by: Linus Walleij --- drivers/mfd/rdc321x-southbridge.c | 2 +- include/linux/mfd

[PATCH] mfd: rdc321x: Fix off-by-one for ngpio setting

2014-04-24 Thread Axel Lin
The valid gpio is GPIO0 ~ GPIO58, so ngpio should be 59. This patch also renames RDC321X_MAX_GPIO to RDC321X_NUM_GPIO because it actually means the number of available GPIOs. Signed-off-by: Axel Lin axel@ingics.com Acked-by: Linus Walleij linus.wall...@linaro.org --- drivers/mfd/rdc321x

Re: [PATCH v2 1/2] regulator: pbias: Fix is_enabled callback implementation

2014-04-15 Thread Axel Lin
2014-04-15 5:16 GMT+08:00 Mark Brown : > On Sat, Mar 08, 2014 at 11:55:29AM +0800, Axel Lin wrote: >> The is_enabled implementation is wrong in some cases: >> e.g. for pbias_mmc_omap5: enable_mask is : BIT(27) | BIT(25) | BIT(26) >> However, pbias_regulator_enable() only

[PATCH] regulator: tps65217: Remove *rdev[] from struct tps65217

2014-04-15 Thread Axel Lin
Now this driver uses devm_regulator_register() so we don't need to save rdev pointer to tps->rdev[i] for cleanup. Signed-off-by: Axel Lin --- drivers/regulator/tps65217-regulator.c | 3 --- include/linux/mfd/tps65217.h | 1 - 2 files changed, 4 deletions(-) diff --git a/driv

[PATCH] mfd: tps65218: Remove unused *rdev[] from struct tps65218

2014-04-15 Thread Axel Lin
The *rdev[] is not used since commit 413be59e2f333 "regulator: tps65218: Remove unnecessary regulator_unregister call". Signed-off-by: Axel Lin --- include/linux/mfd/tps65218.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mfd/tps65218.h b/include/linux/mfd/tps652

[PATCH] mfd: tps65218: Remove unused *rdev[] from struct tps65218

2014-04-15 Thread Axel Lin
The *rdev[] is not used since commit 413be59e2f333 regulator: tps65218: Remove unnecessary regulator_unregister call. Signed-off-by: Axel Lin axel@ingics.com --- include/linux/mfd/tps65218.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mfd/tps65218.h b/include/linux/mfd

[PATCH] regulator: tps65217: Remove *rdev[] from struct tps65217

2014-04-15 Thread Axel Lin
Now this driver uses devm_regulator_register() so we don't need to save rdev pointer to tps-rdev[i] for cleanup. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/tps65217-regulator.c | 3 --- include/linux/mfd/tps65217.h | 1 - 2 files changed, 4 deletions(-) diff

Re: [PATCH v2 1/2] regulator: pbias: Fix is_enabled callback implementation

2014-04-15 Thread Axel Lin
2014-04-15 5:16 GMT+08:00 Mark Brown broo...@kernel.org: On Sat, Mar 08, 2014 at 11:55:29AM +0800, Axel Lin wrote: The is_enabled implementation is wrong in some cases: e.g. for pbias_mmc_omap5: enable_mask is : BIT(27) | BIT(25) | BIT(26) However, pbias_regulator_enable() only sets BIT(27

[PATCH] regulator: pbias: Convert to use regulator_[enable|is_enabled]_regmap

2014-04-14 Thread Axel Lin
Since commit ca5d1b3524b4d "regulator: helpers: Modify helpers enabling multi-bit control", we can set enable_val setting for device that use multiple bits for control when using regmap enable/disable/bypass ops. Signed-off-by: Axel Lin Tested-by: Balaji T K --- drivers/regul

[PATCH] regulator: pbias: Convert to use regulator_[enable|is_enabled]_regmap

2014-04-14 Thread Axel Lin
Since commit ca5d1b3524b4d regulator: helpers: Modify helpers enabling multi-bit control, we can set enable_val setting for device that use multiple bits for control when using regmap enable/disable/bypass ops. Signed-off-by: Axel Lin axel@ingics.com Tested-by: Balaji T K balaj...@ti.com

Re: [PATCH v2 1/2] regulator: pbias: Fix is_enabled callback implementation

2014-04-09 Thread Axel Lin
2014-04-02 8:26 GMT+08:00 Axel Lin : > 2014-03-08 11:55 GMT+08:00 Axel Lin : >> The is_enabled implementation is wrong in some cases: >> e.g. for pbias_mmc_omap5: enable_mask is : BIT(27) | BIT(25) | BIT(26) >> However, pbias_regulator_enable() only sets BIT(27) | BIT(26) b

Re: [PATCH v2 1/2] regulator: pbias: Fix is_enabled callback implementation

2014-04-09 Thread Axel Lin
2014-04-02 8:26 GMT+08:00 Axel Lin axel@ingics.com: 2014-03-08 11:55 GMT+08:00 Axel Lin axel@ingics.com: The is_enabled implementation is wrong in some cases: e.g. for pbias_mmc_omap5: enable_mask is : BIT(27) | BIT(25) | BIT(26) However, pbias_regulator_enable() only sets BIT(27

Re: [PATCH RFC] leds: pca9685: Remove leds-pca9685 driver

2014-04-06 Thread Axel Lin
2014-04-06 17:30 GMT+08:00 Steffen Trumtrar : > Hi! > > On Sun, Apr 06, 2014 at 11:19:41AM +0800, Axel Lin wrote: >> This driver is replaced by pwm-pca9685 driver and there is no user uses this >> driver in current tree. So remove it. >> >> Signed-off-by: A

Re: [PATCH RFC] leds: pca9685: Remove leds-pca9685 driver

2014-04-06 Thread Axel Lin
2014-04-06 17:30 GMT+08:00 Steffen Trumtrar s.trumt...@pengutronix.de: Hi! On Sun, Apr 06, 2014 at 11:19:41AM +0800, Axel Lin wrote: This driver is replaced by pwm-pca9685 driver and there is no user uses this driver in current tree. So remove it. Signed-off-by: Axel Lin axel@ingics.com

[PATCH RFC] leds: pca9685: Remove leds-pca9685 driver

2014-04-05 Thread Axel Lin
This driver is replaced by pwm-pca9685 driver and there is no user uses this driver in current tree. So remove it. Signed-off-by: Axel Lin --- Hi, I found there is a modalias conflict between leds-pca9685.ko and pwm-pca9685.ko. I think this conflict will cause problem. After checking the code, I

[PATCH RFC] leds: pca9685: Remove leds-pca9685 driver

2014-04-05 Thread Axel Lin
This driver is replaced by pwm-pca9685 driver and there is no user uses this driver in current tree. So remove it. Signed-off-by: Axel Lin axel@ingics.com --- Hi, I found there is a modalias conflict between leds-pca9685.ko and pwm-pca9685.ko. I think this conflict will cause problem. After

[PATCH] pinctrl: lantiq: Fix header file include guard

2014-04-03 Thread Axel Lin
Define __PINCTRL_LANTIQ_H to prevent multiple inclusion. Signed-off-by: Axel Lin --- drivers/pinctrl/pinctrl-lantiq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl-lantiq.h b/drivers/pinctrl/pinctrl-lantiq.h index 6d07f02..c7cfad5 100644 --- a/drivers/pinctrl

[PATCH] pinctrl: adi2: Statize adi_gpio_irq_domain_ops

2014-04-03 Thread Axel Lin
It's only referenced in this file, make it static. Signed-off-by: Axel Lin --- drivers/pinctrl/pinctrl-adi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-adi2.c b/drivers/pinctrl/pinctrl-adi2.c index 0cc0eec..5c44feb 100644 --- a/drivers/pinctrl

[PATCH] pinctrl: adi2: Statize adi_gpio_irq_domain_ops

2014-04-03 Thread Axel Lin
It's only referenced in this file, make it static. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pinctrl/pinctrl-adi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-adi2.c b/drivers/pinctrl/pinctrl-adi2.c index 0cc0eec..5c44feb 100644

[PATCH] pinctrl: lantiq: Fix header file include guard

2014-04-03 Thread Axel Lin
Define __PINCTRL_LANTIQ_H to prevent multiple inclusion. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pinctrl/pinctrl-lantiq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl-lantiq.h b/drivers/pinctrl/pinctrl-lantiq.h index 6d07f02..c7cfad5 100644

Re: [PATCH v2 1/2] regulator: pbias: Fix is_enabled callback implementation

2014-04-01 Thread Axel Lin
2014-03-08 11:55 GMT+08:00 Axel Lin : > The is_enabled implementation is wrong in some cases: > e.g. for pbias_mmc_omap5: enable_mask is : BIT(27) | BIT(25) | BIT(26) > However, pbias_regulator_enable() only sets BIT(27) | BIT(26) bits. > So is_enabled callback will always

Re: [PATCH v2 1/2] regulator: pbias: Fix is_enabled callback implementation

2014-04-01 Thread Axel Lin
2014-03-08 11:55 GMT+08:00 Axel Lin axel@ingics.com: The is_enabled implementation is wrong in some cases: e.g. for pbias_mmc_omap5: enable_mask is : BIT(27) | BIT(25) | BIT(26) However, pbias_regulator_enable() only sets BIT(27) | BIT(26) bits. So is_enabled callback will always return

Re: [PATCH 1/2] regulator: s2mpa01: Don't check enable_shift before setting enable ramp rate

2014-03-31 Thread Axel Lin
2014-03-21 16:15 GMT+08:00 Axel Lin : > Current code misses updating the register when enable_shift is 0. > e.g. S2MPA01_BUCK4_RAMP_EN_SHIFT is 0. Hi Sachin and Krzysztof, I think these 2 patches are bug fix. Any comment on this patch serial? Regards, Axel -- To unsubscribe from this list

[PATCH 2/2] bus: omap_l3_smx: Use devm_* managed allocators

2014-03-31 Thread Axel Lin
This simplifies error and cleanup code paths. Signed-off-by: Axel Lin --- drivers/bus/omap_l3_smx.c | 53 +++ 1 file changed, 12 insertions(+), 41 deletions(-) diff --git a/drivers/bus/omap_l3_smx.c b/drivers/bus/omap_l3_smx.c index acc2164..90840cf

[PATCH 1/2] bus: omap_l3_noc: Use devm_* managed allocators

2014-03-31 Thread Axel Lin
This simplifies error and cleanup code paths. Also uses of_match_ptr() around of_match_table. Signed-off-by: Axel Lin --- drivers/bus/omap_l3_noc.c | 94 ++- 1 file changed, 19 insertions(+), 75 deletions(-) diff --git a/drivers/bus/omap_l3_noc.c b

[PATCH 2/2] mfd: bcm590xx: Add missing remove function

2014-03-31 Thread Axel Lin
Add missing mfd_remove_devices() call in remove function. Signed-off-by: Axel Lin --- drivers/mfd/bcm590xx.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c index 40c0dd3..c986149 100644 --- a/drivers/mfd/bcm590xx.c +++ b/drivers/mfd

[PATCH 1/2] mfd: bcm590xx: Fix modalias prefix

2014-03-31 Thread Axel Lin
This is a i2c driver, so uses i2c prefix in modalias. Signed-off-by: Axel Lin --- drivers/mfd/bcm590xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c index e9a33c7..40c0dd3 100644 --- a/drivers/mfd/bcm590xx.c +++ b/drivers

[PATCH 1/2] mfd: bcm590xx: Fix modalias prefix

2014-03-31 Thread Axel Lin
This is a i2c driver, so uses i2c prefix in modalias. Signed-off-by: Axel Lin axel@ingics.com --- drivers/mfd/bcm590xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c index e9a33c7..40c0dd3 100644 --- a/drivers/mfd

[PATCH 2/2] mfd: bcm590xx: Add missing remove function

2014-03-31 Thread Axel Lin
Add missing mfd_remove_devices() call in remove function. Signed-off-by: Axel Lin axel@ingics.com --- drivers/mfd/bcm590xx.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c index 40c0dd3..c986149 100644 --- a/drivers/mfd/bcm590xx.c

[PATCH 1/2] bus: omap_l3_noc: Use devm_* managed allocators

2014-03-31 Thread Axel Lin
This simplifies error and cleanup code paths. Also uses of_match_ptr() around of_match_table. Signed-off-by: Axel Lin axel@ingics.com --- drivers/bus/omap_l3_noc.c | 94 ++- 1 file changed, 19 insertions(+), 75 deletions(-) diff --git a/drivers

[PATCH 2/2] bus: omap_l3_smx: Use devm_* managed allocators

2014-03-31 Thread Axel Lin
This simplifies error and cleanup code paths. Signed-off-by: Axel Lin axel@ingics.com --- drivers/bus/omap_l3_smx.c | 53 +++ 1 file changed, 12 insertions(+), 41 deletions(-) diff --git a/drivers/bus/omap_l3_smx.c b/drivers/bus/omap_l3_smx.c

Re: [PATCH 1/2] regulator: s2mpa01: Don't check enable_shift before setting enable ramp rate

2014-03-31 Thread Axel Lin
2014-03-21 16:15 GMT+08:00 Axel Lin axel@ingics.com: Current code misses updating the register when enable_shift is 0. e.g. S2MPA01_BUCK4_RAMP_EN_SHIFT is 0. Hi Sachin and Krzysztof, I think these 2 patches are bug fix. Any comment on this patch serial? Regards, Axel -- To unsubscribe

[PATCH] regulator: aat2870: Use regulator_map_voltage_ascend

2014-03-24 Thread Axel Lin
The voltages in aat2870_ldo_voltages table are in ascendant order, so use regulator_map_voltage_ascend. Signed-off-by: Axel Lin --- drivers/regulator/aat2870-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/aat2870-regulator.c b/drivers/regulator/aat2870

[PATCH] regulator: aat2870: Use regulator_map_voltage_ascend

2014-03-24 Thread Axel Lin
The voltages in aat2870_ldo_voltages table are in ascendant order, so use regulator_map_voltage_ascend. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/aat2870-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/aat2870-regulator.c b/drivers

[PATCH] regulator: st-pwm: Convert to get_voltage_sel

2014-03-21 Thread Axel Lin
Also remove test for selector in st_pwm_regulator_set_voltage_sel, the checking is already done in .list_voltage. Signed-off-by: Axel Lin --- drivers/regulator/st-pwm.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/st-pwm.c b/drivers/regulator/st

[PATCH 1/2] regulator: s2mpa01: Don't check enable_shift before setting enable ramp rate

2014-03-21 Thread Axel Lin
Current code misses updating the register when enable_shift is 0. e.g. S2MPA01_BUCK4_RAMP_EN_SHIFT is 0. Signed-off-by: Axel Lin --- drivers/regulator/s2mpa01.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/regulator/s2mpa01.c b/drivers/regulator

[PATCH 2/2] regulator: s2mps11: Don't check enable_shift before setting enable ramp rate

2014-03-21 Thread Axel Lin
Current code misses updating the register when enable_shift is 0. e.g. S2MPS11_BUCK9_RAMP_SHIFT and S2MPS11_BUCK6_RAMP_EN_SHIFT are 0. Signed-off-by: Axel Lin --- drivers/regulator/s2mps11.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/regulator

[PATCH RFT] regulator: s5m8767: Convert to use regulator_[enable|disable|is_enabled]_regmap

2014-03-21 Thread Axel Lin
Since commit ca5d1b3524b4d "regulator: helpers: Modify helpers enabling multi-bit control", we can set enable_val setting for device that use multiple bits for control. Signed-off-by: Axel Lin --- drivers/regulator/s5m8767.c | 78 +++-- 1 file c

[PATCH RFT] regulator: s5m8767: Convert to use regulator_[enable|disable|is_enabled]_regmap

2014-03-21 Thread Axel Lin
Since commit ca5d1b3524b4d regulator: helpers: Modify helpers enabling multi-bit control, we can set enable_val setting for device that use multiple bits for control. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/s5m8767.c | 78 +++-- 1

[PATCH 2/2] regulator: s2mps11: Don't check enable_shift before setting enable ramp rate

2014-03-21 Thread Axel Lin
Current code misses updating the register when enable_shift is 0. e.g. S2MPS11_BUCK9_RAMP_SHIFT and S2MPS11_BUCK6_RAMP_EN_SHIFT are 0. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/s2mps11.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git

[PATCH 1/2] regulator: s2mpa01: Don't check enable_shift before setting enable ramp rate

2014-03-21 Thread Axel Lin
Current code misses updating the register when enable_shift is 0. e.g. S2MPA01_BUCK4_RAMP_EN_SHIFT is 0. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/s2mpa01.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/regulator/s2mpa01.c b

[PATCH] regulator: st-pwm: Convert to get_voltage_sel

2014-03-21 Thread Axel Lin
Also remove test for selector in st_pwm_regulator_set_voltage_sel, the checking is already done in .list_voltage. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/st-pwm.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/st-pwm.c b

Re: [PATCH 3/3] regulator: bcm590xx: Use array to save desc and *info

2014-03-20 Thread Axel Lin
2014-03-20 23:42 GMT+08:00 Matt Porter : > On Fri, Mar 14, 2014 at 10:00:28AM +0800, Axel Lin wrote: >> BCM590XX_NUM_REGS is known in compile time. >> Use array to save desc and *info makes the code simpler. >> >> Signed-off-by: Axel Lin > > Well, ok. It was cod

Re: [PATCH 3/3] regulator: bcm590xx: Use array to save desc and *info

2014-03-20 Thread Axel Lin
2014-03-20 23:42 GMT+08:00 Matt Porter mpor...@linaro.org: On Fri, Mar 14, 2014 at 10:00:28AM +0800, Axel Lin wrote: BCM590XX_NUM_REGS is known in compile time. Use array to save desc and *info makes the code simpler. Signed-off-by: Axel Lin axel@ingics.com Well, ok. It was coded

Re: [PATCH] spi: sc18is602: Don't be that restrictive with the maximum transfer speed

2014-03-16 Thread Axel Lin
2014-03-17 9:47 GMT+08:00 Guenter Roeck : > Commit 09e99bca8 (spi: sc18is602: Convert to let spi core validate > transfer speed) made the maximum transfer speed much more restrictive > than before. The transfer speed used to be adjusted to 1/4 of the chip > clock rate if a higher transfer speed

Re: [PATCH] spi: sc18is602: Don't be that restrictive with the maximum transfer speed

2014-03-16 Thread Axel Lin
2014-03-17 9:47 GMT+08:00 Guenter Roeck li...@roeck-us.net: Commit 09e99bca8 (spi: sc18is602: Convert to let spi core validate transfer speed) made the maximum transfer speed much more restrictive than before. The transfer speed used to be adjusted to 1/4 of the chip clock rate if a higher

[PATCH] mfd: bcm590xx: Fix type argument for module device table

2014-03-14 Thread Axel Lin
-by: Axel Lin --- drivers/mfd/bcm590xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c index 926a57e..e9a33c7 100644 --- a/drivers/mfd/bcm590xx.c +++ b/drivers/mfd/bcm590xx.c @@ -68,7 +68,7 @@ static const struct of_device_id

[PATCH] mfd: bcm590xx: Fix type argument for module device table

2014-03-14 Thread Axel Lin
-by: Axel Lin axel@ingics.com --- drivers/mfd/bcm590xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c index 926a57e..e9a33c7 100644 --- a/drivers/mfd/bcm590xx.c +++ b/drivers/mfd/bcm590xx.c @@ -68,7 +68,7 @@ static const struct

[PATCH 3/3] regulator: bcm590xx: Use array to save desc and *info

2014-03-13 Thread Axel Lin
BCM590XX_NUM_REGS is known in compile time. Use array to save desc and *info makes the code simpler. Signed-off-by: Axel Lin --- drivers/regulator/bcm590xx-regulator.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/drivers/regulator/bcm590xx-regulator.c

[PATCH 2/3] regulator: bcm590xx: Remove **rdev from struct bcm590xx_reg

2014-03-13 Thread Axel Lin
The **rdev of 'struct bcm590xx_reg' isn't used anywhere in the driver so remove it. Signed-off-by: Axel Lin --- drivers/regulator/bcm590xx-regulator.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c

[PATCH 1/3] regulator: bcm590xx: Make the modalias matches the driver name

2014-03-13 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/bcm590xx-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c index e6b2e8e..d12d6d6 100644 --- a/drivers/regulator/bcm590xx-regulator.c +++ b

[PATCH 1/3] regulator: bcm590xx: Make the modalias matches the driver name

2014-03-13 Thread Axel Lin
Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/bcm590xx-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c index e6b2e8e..d12d6d6 100644 --- a/drivers/regulator

[PATCH 2/3] regulator: bcm590xx: Remove **rdev from struct bcm590xx_reg

2014-03-13 Thread Axel Lin
The **rdev of 'struct bcm590xx_reg' isn't used anywhere in the driver so remove it. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/bcm590xx-regulator.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator

[PATCH 3/3] regulator: bcm590xx: Use array to save desc and *info

2014-03-13 Thread Axel Lin
BCM590XX_NUM_REGS is known in compile time. Use array to save desc and *info makes the code simpler. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/bcm590xx-regulator.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/drivers/regulator

[PATCH 3/3] regulator: max8998: Remove unnecessary **rdev from struct max8998_data

2014-03-08 Thread Axel Lin
Now we are using devm_regulator_register(), so we don't need to allocate *rdev[] array to store return value of devm_regulator_register. Use a *rdev variable is enough for checking return status. Signed-off-by: Axel Lin --- drivers/regulator/max8998.c | 20 ++-- 1 file changed

[PATCH 2/3] regulator: max8997: Remove unnecessary **rdev from struct max8997_data

2014-03-08 Thread Axel Lin
Now we are using devm_regulator_register(), so we don't need to allocate *rdev[] array to store return value of devm_regulator_register. Use a *rdev variable is enough for checking return status. Signed-off-by: Axel Lin --- drivers/regulator/max8997.c | 19 ++- 1 file changed, 6

[PATCH 1/3] regulator: max77693: Remove unnecessary **rdev from struct max77693_pmic_dev

2014-03-08 Thread Axel Lin
Now we are using devm_regulator_register(), so we don't need to allocate *rdev[] array to store return value of devm_regulator_register. Use a *rdev variable is enough for checking return status. Signed-off-by: Axel Lin --- drivers/regulator/max77693.c | 16 +--- 1 file changed, 5

[PATCH] regulator: act8865: Remove unnecessary *rdev[] from struct act8865

2014-03-08 Thread Axel Lin
Now we are using devm_regulator_register(), so we don't need the *rdev[] array to store return value of devm_regulator_register. Use a *rdev variable is enough for checking return status. Signed-off-by: Axel Lin --- drivers/regulator/act8865-regulator.c | 13 + 1 file changed, 5

[PATCH] regulator: tps6586x: Remove unnecessary rdev[] array

2014-03-08 Thread Axel Lin
Now we are using devm_regulator_register(), so we don't need the rdev[] array to store return value of devm_regulator_register. Use a *rdev variable is enough for checking return status. Signed-off-by: Axel Lin --- drivers/regulator/tps6586x-regulator.c | 14 -- 1 file changed, 4

[PATCH] regulator: tps6586x: Remove unnecessary rdev[] array

2014-03-08 Thread Axel Lin
Now we are using devm_regulator_register(), so we don't need the rdev[] array to store return value of devm_regulator_register. Use a *rdev variable is enough for checking return status. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/tps6586x-regulator.c | 14 -- 1

[PATCH] regulator: act8865: Remove unnecessary *rdev[] from struct act8865

2014-03-08 Thread Axel Lin
Now we are using devm_regulator_register(), so we don't need the *rdev[] array to store return value of devm_regulator_register. Use a *rdev variable is enough for checking return status. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/act8865-regulator.c | 13 + 1

[PATCH 1/3] regulator: max77693: Remove unnecessary **rdev from struct max77693_pmic_dev

2014-03-08 Thread Axel Lin
Now we are using devm_regulator_register(), so we don't need to allocate *rdev[] array to store return value of devm_regulator_register. Use a *rdev variable is enough for checking return status. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/max77693.c | 16

[PATCH 2/3] regulator: max8997: Remove unnecessary **rdev from struct max8997_data

2014-03-08 Thread Axel Lin
Now we are using devm_regulator_register(), so we don't need to allocate *rdev[] array to store return value of devm_regulator_register. Use a *rdev variable is enough for checking return status. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/max8997.c | 19

[PATCH 3/3] regulator: max8998: Remove unnecessary **rdev from struct max8998_data

2014-03-08 Thread Axel Lin
Now we are using devm_regulator_register(), so we don't need to allocate *rdev[] array to store return value of devm_regulator_register. Use a *rdev variable is enough for checking return status. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/max8998.c | 20

[PATCH v2 2/2] regulator: pbias: Convert to use regmap helper functions

2014-03-07 Thread Axel Lin
This patch converts this driver to use the regmap helper functions provided by regulator core. Signed-off-by: Axel Lin Acked-by: Balaji T K --- v2: Add Balaji's Ack. drivers/regulator/pbias-regulator.c | 74 ++--- 1 file changed, 19 insertions(+), 55 deletions

[PATCH v2 1/2] regulator: pbias: Fix is_enabled callback implementation

2014-03-07 Thread Axel Lin
with info->enable rather than info->enable_mask. Signed-off-by: Axel Lin Acked-by: Balaji T K --- v2: Update commit log and add Balaji's Ack. drivers/regulator/pbias-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pbias-regulator.c b/d

Re: [PATCH RFT] regulator: pbias: Convert to use regmap helper functions

2014-03-07 Thread Axel Lin
2014-03-07 23:25 GMT+08:00 Balaji T K : > On Thursday 06 March 2014 06:40 PM, Axel Lin wrote: >> >> This patch converts this driver to use the regmap helper functions >> provided by >> regulator core. >> >> This fixes a few issues in current implementat

[PATCH 3/3] regulator: pbias: Convert to use regulator_[enable|is_enabled]_regmap

2014-03-07 Thread Axel Lin
Since commit ca5d1b3524b4d "regulator: helpers: Modify helpers enabling multi-bit control", we can set enable_val setting for device that use multiple bits for control when using regmap enable/disable/bypass ops. Signed-off-by: Axel Lin --- Note: This patch depends on below commit whi

[PATCH 2/3] regulator: pbias: Convert to use regmap helper functions

2014-03-07 Thread Axel Lin
This patch converts this driver to use the regmap helper functions provided by regulator core. Signed-off-by: Axel Lin --- drivers/regulator/pbias-regulator.c | 74 ++--- 1 file changed, 19 insertions(+), 55 deletions(-) diff --git a/drivers/regulator/pbias

[PATCH 1/3] regulator: pbias: Fix is_enabled callback implementation

2014-03-07 Thread Axel Lin
with info->enable rather than info->enable_mask. Signed-off-by: Axel Lin --- drivers/regulator/pbias-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pbias-regulator.c b/drivers/regulator/pbias-regulator.c index ded3b35..d89a1d8

Re: [PATCH RFT] regulator: pbias: Convert to use regmap helper functions

2014-03-07 Thread Axel Lin
2014-03-06 23:20 GMT+08:00 Balaji T K : > On Thursday 06 March 2014 06:40 PM, Axel Lin wrote: >> >> This patch converts this driver to use the regmap helper functions >> provided by >> regulator core. >> >> This fixes a few issues in current implementat

Re: [PATCH RFT] regulator: pbias: Convert to use regmap helper functions

2014-03-07 Thread Axel Lin
2014-03-06 23:20 GMT+08:00 Balaji T K balaj...@ti.com: On Thursday 06 March 2014 06:40 PM, Axel Lin wrote: This patch converts this driver to use the regmap helper functions provided by regulator core. This fixes a few issues in current implementation: 1) In original code, the set voltage

[PATCH 1/3] regulator: pbias: Fix is_enabled callback implementation

2014-03-07 Thread Axel Lin
with info-enable rather than info-enable_mask. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/pbias-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pbias-regulator.c b/drivers/regulator/pbias-regulator.c index ded3b35..d89a1d8

[PATCH 2/3] regulator: pbias: Convert to use regmap helper functions

2014-03-07 Thread Axel Lin
This patch converts this driver to use the regmap helper functions provided by regulator core. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/pbias-regulator.c | 74 ++--- 1 file changed, 19 insertions(+), 55 deletions(-) diff --git a/drivers

[PATCH 3/3] regulator: pbias: Convert to use regulator_[enable|is_enabled]_regmap

2014-03-07 Thread Axel Lin
Since commit ca5d1b3524b4d regulator: helpers: Modify helpers enabling multi-bit control, we can set enable_val setting for device that use multiple bits for control when using regmap enable/disable/bypass ops. Signed-off-by: Axel Lin axel@ingics.com --- Note: This patch depends on below

Re: [PATCH RFT] regulator: pbias: Convert to use regmap helper functions

2014-03-07 Thread Axel Lin
2014-03-07 23:25 GMT+08:00 Balaji T K balaj...@ti.com: On Thursday 06 March 2014 06:40 PM, Axel Lin wrote: This patch converts this driver to use the regmap helper functions provided by regulator core. This fixes a few issues in current implementation: 1) In original code, the set voltage

[PATCH v2 1/2] regulator: pbias: Fix is_enabled callback implementation

2014-03-07 Thread Axel Lin
with info-enable rather than info-enable_mask. Signed-off-by: Axel Lin axel@ingics.com Acked-by: Balaji T K balaj...@ti.com --- v2: Update commit log and add Balaji's Ack. drivers/regulator/pbias-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

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