We can save a register read operation in some case if read
expand_register first.
If info->expand_register.voltage_mask bit is set, no need to read
voltage_reg.
Signed-off-by: Axel Lin
---
drivers/regulator/ab8500.c | 42 ++
1 file changed,
e().
Signed-off-by: Axel Lin
---
drivers/regulator/ab8500-ext.c |4
1 file changed, 4 insertions(+)
diff --git a/drivers/regulator/ab8500-ext.c b/drivers/regulator/ab8500-ext.c
index 9aee21c..f0a1bbf 100644
--- a/drivers/regulator/ab8500-ext.c
+++ b/drivers/regulator/ab8500-ext.c
@@ -1
This ensures info->update_val status is still correct if set_mode() call fails.
Otherwise, get_mode() may return wrong status if a set_mode() call fails.
Signed-off-by: Axel Lin
---
drivers/regulator/ab8500-ext.c | 19 ---
1 file changed, 12 insertions(+), 7 deletions(-)
d
Both enable() and disable() functions have only one caller, thus remove them.
Signed-off-by: Axel Lin
---
drivers/regulator/ab8500-ext.c | 62 ++--
1 file changed, 22 insertions(+), 40 deletions(-)
diff --git a/drivers/regulator/ab8500-ext.c b/drivers
dev_crit message.
Signed-off-by: Axel Lin
---
drivers/clk/clk-wm831x.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/clk-wm831x.c b/drivers/clk/clk-wm831x.c
index 16ed068..4bdf0b0 100644
--- a/drivers/clk/clk-wm831x.c
+++ b/drivers/clk/clk-wm831x.c
@@ -97,7
= 32.768kHz oscillator
Thus fix the entry order in wm831x_clkout_parents[] to make it has
the same meaning as the datasheet and make the return value
of wm831x_clkout_get_parent() consistent with the parent pass to
wm831x_clkout_set_parent().
Signed-off-by: Axel Lin
---
drivers/clk/clk-wm831x.c | 6
Since 0998d06310 "device-core: Ensure drvdata = NULL when no driver is bound",
this is done by driver core after device_release or on probe failure.
Thus we can remove all platform_set_drvdata(pdev, NULL) in drivers.
Signed-off-by: Axel Lin
---
drivers/regulator/88pm8607.c
devdata->backup.name points to devdata->name, the memory for devdata->name is
part of struct wm831x_backup. Thus remove kfree call for devdata->backup.name.
Signed-off-by: Axel Lin
---
drivers/power/wm831x_backup.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/power/wm8
This driver is a i2c driver, use "i2c" rather than "platform" prefix for module
alias.
Signed-off-by: Axel Lin
---
drivers/power/pm2301_charger.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/pm2301_charger.c b/drivers/power/pm2301_cha
abb->current_info_idx is used as array subscript to access volt_table,
thus the valid value range should be 0 ... desc->n_voltages - 1.
Signed-off-by: Axel Lin
---
drivers/regulator/ti-abb-regulator.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/regula
piled when CONFIG_I2C_STU300 is
configured as built-in or as a module.
Signed-off-by: Axel Lin
---
arch/arm/mach-u300/Makefile | 4 +++-
arch/arm/mach-u300/i2c.h| 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-u300/Makefile b/arch/arm/mach-u300/Makefile
ind
The code in goto err3 path is wrong because it will call fee_irq() with k == 0,
which means it does free_irq(p->irq[-1].requested_irq, &p->irq[-1]);
Signed-off-by: Axel Lin
---
drivers/irqchip/irq-renesas-irqc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
e:
When CONFIG_I2C=m, meaning we can't build the drivers in with I2C support.
Thus don't allow the drivers to be compiled as built-in.
Signed-off-by: Axel Lin
---
drivers/iio/dac/Kconfig | 17 ++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/drivers/iio/dac
於 三,2013-05-08 於 16:36 +0800,Axel Lin 提到:
> This patch fixes below build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m:
>
> drivers/built-in.o: In function `ad5064_i2c_write':
> drivers/iio/dac/ad5064.c:608: undefined reference to `i2c_master_send'
>
2013/5/8 Lars-Peter Clausen :
> On 05/08/2013 10:36 AM, Axel Lin wrote:
>> This patch fixes below build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m:
>>
>> drivers/built-in.o: In function `ad5064_i2c_write':
>> drivers/iio/dac/ad5064.c:608: undefined r
NFIG_I2C=m, meaning we can't build the drivers in with I2C support.
Thus don't allow the drivers to be compiled as built-in.
Reported-by: Wu Fengguang
Signed-off-by: Axel Lin
---
drivers/iio/dac/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers
s in with I2C support.
Thus don't allow the drivers to be compiled as built-in when CONFIG_I2C=m.
The real fix though is to break the driver apart into a SPI part, an I2C part
and a common part. But that's something for 3.11 while this is something for
3.10/stable.
Reported-by: Wu Fengg
Both stmpe_gpio_irq_map() and stmpe_gpio_irq_unmap() are not referenced
outside of this file, make them static.
Signed-off-by: Axel Lin
---
drivers/gpio/gpio-stmpe.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c
because the HI bit is still set.
Signed-off-by: Axel Lin
---
drivers/regulator/mc13892-regulator.c |6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/mc13892-regulator.c
b/drivers/regulator/mc13892-regulator.c
index 9891aec..cc76c52 100644
--- a/drivers
Both mc13892_sw1 and mc13892_sw voltage table have ascendant voltage list.
Use regulator_map_voltage_ascend for them.
Signed-off-by: Axel Lin
---
drivers/regulator/mc13892-regulator.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/mc13892-regulator.c
b/drivers
All regulators have ascendant voltage list in this driver.
Use regulator_map_voltage_ascend for them.
Signed-off-by: Axel Lin
---
drivers/regulator/lp872x.c |3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/regulator/lp872x.c b/drivers/regulator/lp872x.c
index 8e3c7ae..f5fc4a1
All regulators have ascendant voltage list in this driver.
Use regulator_map_voltage_ascend for them.
Signed-off-by: Axel Lin
---
drivers/regulator/lp8788-buck.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/regulator/lp8788-buck.c b/drivers/regulator/lp8788-buck.c
index
tps65020 ldo1 and ldo2 vsel tables are identical, merge them.
Signed-off-by: Axel Lin
---
drivers/regulator/tps65023-regulator.c | 15 +--
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/drivers/regulator/tps65023-regulator.c
b/drivers/regulator/tps65023
All regulators have ascendant voltage list in this driver.
Use regulator_map_voltage_ascend for them.
Signed-off-by: Axel Lin
---
drivers/regulator/tps65023-regulator.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/regulator/tps65023-regulator.c
b/drivers/regulator/tps65023
All regulators have ascendant voltage list in this driver.
Use regulator_map_voltage_ascend for them.
Signed-off-by: Axel Lin
---
drivers/regulator/tps6507x-regulator.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/tps6507x-regulator.c
b/drivers/regulator/tps6507x
Signed-off-by: Axel Lin
---
drivers/regulator/max8952.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c
index 4259c78..5259c2f 100644
--- a/drivers/regulator/max8952.c
+++ b/drivers/regulator/max8952.c
@@ -225,6 +225,7 @@ static
All regulators have ascendant voltage list in this driver.
Use regulator_map_voltage_ascend for them.
Signed-off-by: Axel Lin
---
drivers/regulator/tps6524x-regulator.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/tps6524x-regulator.c
b/drivers/regulator/tps6524x
ove ab3100_regulators_remove() to avoid forward declaration.
Signed-off-by: Axel Lin
---
drivers/regulator/ab3100.c | 33 +++--
1 file changed, 19 insertions(+), 14 deletions(-)
diff --git a/drivers/regulator/ab3100.c b/drivers/regulator/ab3100.c
index be1e6ad..3be9e46 100644
--
It's safe to call regulator_unregister() with NULL, thus remove the NULL test
before regulator_unregister() calls.
Signed-off-by: Axel Lin
Cc: Robert Jarzmik
Cc: Haojian Zhuang
Cc: Wolfram Sang
Cc: Sangbeom Kim
Cc: Cyril Chemparathy
---
drivers/regulator/max1586.c|
Ensure max77686->opmode always has correct status.
Signed-off-by: Axel Lin
---
drivers/regulator/max77686.c | 32 +---
1 file changed, 21 insertions(+), 11 deletions(-)
diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c
index e4586ee..2093
Hi Mark,
I found some patches for twl are not in linux-next, and I cannot find them
in your tree ( although you replied the patches applied. )
I think below patches are missing:
[PATCH] regulator: twl: Remove TWL6030_FIXED_RESOURCE [1]
[PATCH] regulator: twl: Remove VDD1_VSEL_table and VDD2_VSEL_t
ab8500_ext_regulator_exit() never fails.
Signed-off-by: Axel Lin
---
drivers/regulator/ab8500-ext.c |4 +---
drivers/regulator/ab8500.c |9 +++--
include/linux/regulator/ab8500.h |2 +-
3 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/drivers/regulator
Signed-off-by: Axel Lin
---
drivers/regulator/ab8500.c |5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c
index c200f8b..ea182d3 100644
--- a/drivers/regulator/ab8500.c
+++ b/drivers/regulator/ab8500.c
@@ -3172,8
Since commit ba305e31 "regulator: twl: fix twl4030 support for smps regulators",
VDD1_VSEL_table and VDD2_VSEL_table are not used any more. Remove them.
Signed-off-by: Axel Lin
Acked-by: Tero Kristo
---
drivers/regulator/twl-regulator.c |6 --
1 file changed, 6 deletions(-)
Signed-off-by: Axel Lin
---
drivers/regulator/twl-regulator.c | 12 +++-
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/drivers/regulator/twl-regulator.c
b/drivers/regulator/twl-regulator.c
index d62604c0..2b3dc5b 100644
--- a/drivers/regulator/twl-regulator.c
+++ b
g".
Signed-off-by: Axel Lin
---
drivers/regulator/twl-regulator.c | 13 -
1 file changed, 13 deletions(-)
diff --git a/drivers/regulator/twl-regulator.c
b/drivers/regulator/twl-regulator.c
index 2b3dc5b..611e73e 100644
--- a/drivers/regulator/twl-regulator.c
+++ b/drivers/regul
We need to call mutex_unlock() in the error path.
Signed-off-by: Axel Lin
---
drivers/devfreq/exynos4_bus.c |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/devfreq/exynos4_bus.c b/drivers/devfreq/exynos4_bus.c
index 1deee09..54b9615 100644
--- a/drivers/devfreq
These tables are never modified, make them const.
Signed-off-by: Axel Lin
---
drivers/devfreq/exynos4_bus.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/devfreq/exynos4_bus.c b/drivers/devfreq/exynos4_bus.c
index 3f37f3b..45d00d1 100644
--- a
exynos4x12_clkdiv_dmc1 contains { G2DACP, DIVC2C, DIVC2C_ACLK }, thus
set the size to 3 rather than 6.
Signed-off-by: Axel Lin
---
drivers/devfreq/exynos4_bus.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/devfreq/exynos4_bus.c b/drivers/devfreq/exynos4_bus.c
The voltage_mask and voltage_shift settings of AB8505_LDO_AUDIO are not matched.
It looks like a typo in the voltage_mask settings.
Signed-off-by: Axel Lin
---
Hi Lee and Bengt,
I don't have the datasheet. Can you confirm if this fix is correct?
Thanks,
Axel
drivers/regulator/ab8500.c |
arch/arm/kernel/devicetree.c does not exist.
The correct file path is arch/arm/kernel/devtree.c.
Signed-off-by: Axel Lin
---
Documentation/devicetree/usage-model.txt |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/usage-model.txt
b/Documentation
The *dev and *mfd of struct rc5t583_regulator_info are not used after convert
to use regmap, remove them.
Signed-off-by: Axel Lin
---
drivers/regulator/rc5t583-regulator.c |6 --
1 file changed, 6 deletions(-)
diff --git a/drivers/regulator/rc5t583-regulator.c
b/drivers/regulator
2013/4/13 Rafael J. Wysocki :
> On Friday, April 12, 2013 09:11:00 PM myungjoo.ham wrote:
>> > On Friday, April 12, 2013 11:52:01 AM 함명주 wrote:
>> > > > On Friday, April 12, 2013 01:54:18 PM Axel Lin wrote:
>> > > > > We need to call mutex_unlock() in
Return proper error instead of 0 if pdata is NULL.
Signed-off-by: Axel Lin
---
drivers/mfd/max8997.c |4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c
index 1471405..823f34b 100644
--- a/drivers/mfd/max8997.c
+++ b/drivers
pdata is either a valid pointer or NULL, use NULL checking rather than
IS_ERR_OR_NULL macro.
Signed-off-by: Axel Lin
---
drivers/regulator/max8997.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c
index 0ac7a87
Ping.
Hi Lee,
Can you review this patch.
I think this one is a bug fix.
Regards,
Axel
2013/4/8 Axel Lin :
> The special handling code for getting shared mode status is wrong
> because it needs to check info->shared_mode->lp_mode_req for
> both regulators that shared the sam
2013/4/15 Bengt Jönsson :
> On 04/08/2013 02:31 PM, Axel Lin wrote:
>>
>> The special handling code for getting shared mode status is wrong
>> because it needs to check info->shared_mode->lp_mode_req for
>> both regulators that shared the same mode register.
The voltage_mask is 0xc0, thus we need to set voltage_shift = 6 to get correct
selector in get_voltage_sel and set_voltage_sel.
Signed-off-by: Axel Lin
---
Hi Bengt,
I don't have the datasheet. Can you confirm if this fix is correct?
BTW, can you also review a couple patches for ab850
> My understanding is for shared mode regulators:
> It can be in LP mode only when *BOTH* are in LP mode.
> If only one of the regulator in HP mode, then *BOTH* should be in HP mode.
> Did I misunderstand something?
Let me put this issue this way:
Current code behavior:
get_mode() returns IDLE if
> I guess what you don't like with the current approach is that the driver
> returns REGULATOR_MODE_IDLE in some cases where the mode register is set to
> LP. But I think, with patch applied, the control may be wrong in some cases
> because the regulator framework will call get_mode and see that th
2013/4/15 Bengt Jönsson :
> On 04/15/2013 02:13 PM, Axel Lin wrote:
>>>
>>> I guess what you don't like with the current approach is that the driver
>>> returns REGULATOR_MODE_IDLE in some cases where the mode register is set
>>> to
>>> LP. But
going to 3.05V, set the expand register bit.
When leaving 3.05V for another voltage, set the target voltage before clearing
the expand register bit.
Signed-off-by: Axel Lin
---
drivers/regulator/ab8500.c | 69
1 file changed, 51 insertions(
2013/4/16 Bengt Jönsson :
> On 04/10/2013 02:54 PM, Axel Lin wrote:
>>
>> The regulator always on with high power mode if info->cfg->hwreq is set.
>>
>> If we allow set idle mode when info->cfg->hwreq is set, get_mode() returns
>> REGULAT
This ensures info->update_val status is still correct if set_mode() call fails.
Otherwise, get_mode() may return wrong status if a set_mode() call fails.
Signed-off-by: Axel Lin
---
drivers/regulator/ab8500-ext.c | 26 ++
1 file changed, 18 insertions(+), 8 deleti
Both enable() and disable() functions have only one caller, thus remove them.
Signed-off-by: Axel Lin
---
drivers/regulator/ab8500-ext.c | 64 +++-
1 file changed, 23 insertions(+), 41 deletions(-)
diff --git a/drivers/regulator/ab8500-ext.c b/drivers
going to 3.05V, set the expand register bit.
When leaving 3.05V for another voltage, set the target voltage before clearing
the expand register bit.
Signed-off-by: Axel Lin
---
v3: Just coding style change (compare to v2), to make the code smaller.
Axel
drivers/regulator/ab8500.c
Hi Bengt,
This serial also needs your review.
Thanks,
Axel
2013/4/9 Axel Lin :
> This patch ensures info->update_val is consistent with current register value.
>
> Signed-off-by: Axel Lin
> ---
> drivers/regulator/ab8500.c | 20 +++-
> 1 file changed
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-renesas-tpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pwm/pwm-renesas-tpu.c b/drivers/pwm/pwm-renesas-tpu.c
index 8e6d8d7..351addd 100644
--- a/drivers/pwm/pwm-renesas-tpu.c
+++ b/drivers/pwm/pwm-renesas-tpu.c
Otherwise, we return 0 in probe error paths when gpiochip_remove() returns 0.
Also show error message if gpiochip_remove() fails.
Signed-off-by: Axel Lin
Cc: Linus Walleij
Cc: Maxime Ripard
Cc: Tony Prisk
---
drivers/pinctrl/pinctrl-coh901.c | 3 ++-
drivers/pinctrl/pinctrl-sunxi.c
Otherwise, we return 0 in probe error paths when gpiochip_remove() returns 0.
Also show error message if gpiochip_remove() fails.
Signed-off-by: Axel Lin
Cc: Tomoya MORINAGA
Cc: Denis Turischev
Cc: Lars Poeschel
---
drivers/gpio/gpio-ml-ioh.c | 3 +--
drivers/gpio/gpio-pch.c| 3
don't allow the drivers to be compiled as built-in when CONFIG_I2C=m.
The real fix though is to break the driver apart into a SPI part, an I2C part
and a common part. But that's something for 3.11 while this is something for
3.10/stable.
Signed-off-by: Axel Lin
---
drivers/gpio/Kconf
max7301 is controlled through SPI interface which means another driver.
Signed-off-by: Axel Lin
---
drivers/gpio/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 6575d77..4e0884a 100644
--- a/drivers/gpio/Kconfig
+++ b
don't allow the drivers to be compiled as built-in when CONFIG_I2C=m.
The real fix though is to break the driver apart into a SPI part, an I2C part
and a common part. But that's something for 3.11 while this is something for
3.10/stable.
Signed-off-by: Axel Lin
---
drivers/gpio/Kconf
>> --- a/drivers/gpio/Kconfig
>> +++ b/drivers/gpio/Kconfig
>> @@ -636,7 +636,7 @@ config GPIO_MAX7301
>>
>> config GPIO_MCP23S08
>> tristate "Microchip MCP23xxx I/O expander"
>> - depends on SPI_MASTER || I2C
>> + depends on (SPI_MASTER && I2C!=m) || I2C
>
> For me it looks li
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-renesas-tpu.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/pwm/pwm-renesas-tpu.c b/drivers/pwm/pwm-renesas-tpu.c
index 8e6d8d7..319a6fe 100644
--- a/drivers/pwm/pwm-renesas-tpu.c
+++ b/drivers/pwm/pwm-renesas-tpu.c
@@ -432,6 +432,11
dev_crit message.
Signed-off-by: Axel Lin
Acked-by: Mark Brown
---
Hi Mike,
This patch serial was sent on http://lkml.org/lkml/2013/5/1/152
With Mark's Ack.
Regards,
Axel
drivers/clk/clk-wm831x.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/clk-wm831
= 32.768kHz oscillator
Thus fix the entry order in wm831x_clkout_parents[] to make it has
the same meaning as the datasheet and make the return value
of wm831x_clkout_get_parent() consistent with the parent pass to
wm831x_clkout_set_parent().
Signed-off-by: Axel Lin
Acked-by: Mark Brown
---
drivers
If none of the channels are supported, index is 0.
Also ensure to return error code instead of 0 in goto second_mem_fail path.
Signed-off-by: Axel Lin
---
drivers/power/generic-adc-battery.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/power/generic-adc
gt;> > >
>> > > Thank you for the patch.
>> > >
>> > > On Monday 20 May 2013 21:45:41 Axel Lin wrote:
>> > > > Signed-off-by: Axel Lin
>> > >
>> > > Acked-by: Laurent Pinchart
>> >
>> > Thanks. I have qu
Hi,
The comment of struct ab8500_regulator_info says the delay means
"startup/set voltage delay in us".
I'm confused by the meaning, does it mean enable_time or set_voltage_time_sel
time or both?
* @enable_time: Time taken for the regulator voltage output voltage to
* stabilise af
: enable time = 500 us
Vaudio: enable time = 140 us
Vusb: enable time = 150 us
This discussion thread is available at: https://lkml.org/lkml/2013/3/26/795
Signed-off-by: Axel Lin
---
drivers/regulator/ab8500.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/regulator
The data sheet does not specify time delay for voltage selection,
thus remove set_voltage_time_sel and delay setting.
Note, currently set_voltage_time_sel callback returns 0 due to missing
delay settings.
Signed-off-by: Axel Lin
---
drivers/regulator/ab8500.c | 13 -
1 file
In the case of no-match in "for (i = 0; i < (pdev->num_resources / 2); i++)",
i is "pdev->num_resources / 2". Fix the boundary checking to avoid the out of
bound array access for data->sfrbases[i].
Signed-off-by: Axel Lin
---
drivers/iommu/exynos-iommu.c |2
This fixes 2 issues:
1. Don't update info->update_val if write to the register fails.
2. Don't update info->update_val if regulator is disabled, this avoid
inconsistent status between the register value and info->update_val.
Signed-off-by: Axel Lin
---
drivers/regula
Don't update info->update_val if write to the register fails.
Signed-off-by: Axel Lin
---
v2:
On the second thought, I think it's ok to update info->update_val when
regulator is disabled, the mode will change when the regulator is enabled.
Hi Bengt,
I just got your Ack for v1
The pointer "port" is always not NULL if gpio->port_list is not empty.
Signed-off-by: Axel Lin
---
drivers/pinctrl/pinctrl-coh901.c |7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-coh901.c b/drivers/pinctrl/pinctrl-coh901.c
i
The logic to check return value of clk_enable() is reversed, thus
when clek_enable() success PWMCR_PWM_ENABLE bit is never set. Fix it.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-spear.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pwm/pwm-spear.c b/drivers
The logic to check return value of clk_enable() is reversed, thus
when clk_enable() passes PWMCR_PWM_ENABLE bit is not set. Fix it.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-spear.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pwm/pwm-spear.c b/drivers
Make v6_voltages_uv to be const unsigned int.
Signed-off-by: Axel Lin
---
drivers/regulator/max1586.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/max1586.c b/drivers/regulator/max1586.c
index 8c5a54f..dac0490 100644
--- a/drivers/regulator/max1586.c
The logic to check return value of clk_enable() and clk_prepare() is reversed,
fix it.
Signed-off-by: Axel Lin
Cc:
---
This is v3 of "pwm: spear: Fix enable pwm output".
I change the subject line because it also fixes checking return value of
clk_prepare().
Also add cc stable.
Axel
>
> Sorry for the delays caused due to me.
>
> Acked-by: Viresh Kumar
Actually, I'm really appreciate having your review.
Thanks,
Axel
--
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://v
clear PWMx_RELOADV and PWMx_DUTY bits.
[1] http://www.nxp.com/documents/user_manual/UM10326.pdf
Signed-off-by: Axel Lin
---
Hi,
I don't have this hardware handy so I'd appreciate if someone can test this
patch serial.
Thanks,
Axel
drivers/pwm/pwm-lpc32xx.c | 18
lpc32xx_pwm_config() is supposed to set duty_ns and period_ns,
it should not change PWM_ENABLE bit.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-lpc32xx.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pwm/pwm-lpc32xx.c b/drivers/pwm/pwm-lpc32xx.c
index 1a5075e
lpc32xx_pwm_config() is supposed to set duty_ns and period_ns,
it should not change PWM_ENABLE and other bits.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-lpc32xx.c |7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/pwm/pwm-lpc32xx.c b/drivers/pwm/pwm
Add missing .owner of struct pwm_ops. This prevents the module from being
removed from underneath its users.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-ab8500.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pwm/pwm-ab8500.c b/drivers/pwm/pwm-ab8500.c
index 3beb2b5..1d07a6f
Add missing .owner of struct pwm_ops. This prevents the module from being
removed from underneath its users.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-atmel-tcb.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pwm/pwm-atmel-tcb.c b/drivers/pwm/pwm-atmel-tcb.c
index 16cb530
Add missing .owner of struct pwm_ops. This prevents the module from being
removed from underneath its users.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-twl-led.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pwm/pwm-twl-led.c b/drivers/pwm/pwm-twl-led.c
index 83e25d4
Add missing .owner of struct pwm_ops. This prevents the module from being
removed from underneath its users.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-twl.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pwm/pwm-twl.c b/drivers/pwm/pwm-twl.c
index bf3fda2..ee7fa5d 100644
We can test PWMF_ENABLED bit to know if pwm is enabled or not.
Thus remove enabled field from struct imx_chip.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-imx.c |6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c
index
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-puv3.c |1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/pwm/pwm-puv3.c b/drivers/pwm/pwm-puv3.c
index db964e6..d1eb499 100644
--- a/drivers/pwm/pwm-puv3.c
+++ b/drivers/pwm/pwm-puv3.c
@@ -27,7 +27,6 @@ struct puv3_pwm_chip {
struct
abled counter here.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-pxa.c | 16 ++--
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c
index 20370e6..b789882 100644
--- a/drivers/pwm/pwm-pxa.c
+++ b/drivers/pwm/pwm-pxa.c
@@ -48,7
Return proper error instead of 0 if twl6030_pwm_enable() fails.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-twl.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pwm/pwm-twl.c b/drivers/pwm/pwm-twl.c
index ee7fa5d..2782001 100644
--- a/drivers/pwm/pwm-twl.c
+++ b
The driver_data field was used to store information about PWM_ID_BASE and
HAS_SECONDARY_PWM. PWM_ID_BASE is not used now after convert to pwm framework.
This patch stores the pwm_nr in driver_data field to simplify the code.
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-pxa.c | 11
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-mxs.c |2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
index a53d309..23d5180 100644
--- a/drivers/pwm/pwm-mxs.c
+++ b/drivers/pwm/pwm-mxs.c
@@ -38,7 +38,6 @@
struct mxs_pwm_chip {
struct
Signed-off-by: Axel Lin
---
drivers/pwm/pwm-spear.c |3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c
index 3223b57..9563599 100644
--- a/drivers/pwm/pwm-spear.c
+++ b/drivers/pwm/pwm-spear.c
@@ -49,13 +49,11 @@
* @mmio_base: base
Signed-off-by: Axel Lin
Acked-by: Shiraz Hashim
---
v2: fix the prefix in subject line
drivers/pwm/pwm-spear.c |3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c
index 3223b57..9563599 100644
--- a/drivers/pwm/pwm-spear.c
+++ b/drivers/pwm
2013/4/1 Eric Miao :
> On Sun, Mar 31, 2013 at 11:04 PM, Axel Lin wrote:
>> clk_enable/clk_disable maintain an enable_count, clk_prepare and
>> clk_unprepare
>> also maintain a prepare_count. These APIs will do prepare/enable when the
>> first
>> user c
2013/4/1 Eric Miao :
> On Mon, Apr 1, 2013 at 12:12 AM, Axel Lin wrote:
>> The driver_data field was used to store information about PWM_ID_BASE and
>> HAS_SECONDARY_PWM. PWM_ID_BASE is not used now after convert to pwm
>> framework.
>> This patch stores the pwm
PWM_ID_BASE() is not used after convert to PWM framework, remove it.
Also update driver_data field of struct platform_device_id accordingly.
Signed-off-by: Axel Lin
---
This is v2 of [PATCH] pwm: pxa: Use driver_data field to store pwm_nr.
I change the subject line to meet the change in v2
The id for DLDOx matches the entries in enum lp8788_ldo_id and it's easy to
calculate the id for ALDOx. Thus remove lp8788_dldo_id and lp8788_aldo_id
arrays.
Signed-off-by: Axel Lin
---
drivers/regulator/lp8788-ldo.c | 32 ++--
1 file changed, 2 insertions(+
401 - 500 of 1317 matches
Mail list logo