[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 axel@ingics.com Acked-by: Balaji T K balaj...@ti.com --- v2: Add Balaji's Ack. drivers/regulator/pbias-regulator.c | 74 ++--- 1 file

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

2014-03-06 Thread Axel Lin
000. 2) The is_enable implementation is wrong in some cases: e.g. for pbias_mmc_omap5: emable_mask is : BIT(27) | BIT(25) | BIT(26) However, pbias_regulator_enable() only sets BIT(26) | BIT(22) bits. So is_enable always return false in this case. Signed-off-by: Axel Lin --- Hi Balaji, I do

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

2014-03-06 Thread Axel Lin
) The is_enable implementation is wrong in some cases: e.g. for pbias_mmc_omap5: emable_mask is : BIT(27) | BIT(25) | BIT(26) However, pbias_regulator_enable() only sets BIT(26) | BIT(22) bits. So is_enable always return false in this case. Signed-off-by: Axel Lin axel@ingics.com

[PATCH] regulator: pfuze100: Add PFUZE200 support to Kconfig and module description

2014-03-05 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/Kconfig | 6 +++--- drivers/regulator/pfuze100-regulator.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 4ddfb6c..eb36d8b 100644 --- a/drivers/regulator

[PATCH] regulator: pfuze100: Add PFUZE200 support to Kconfig and module description

2014-03-05 Thread Axel Lin
Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/Kconfig | 6 +++--- drivers/regulator/pfuze100-regulator.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 4ddfb6c..eb36d8b 100644

[PATCH] regulator: pfuze100: Add terminate entry for [i2c|of]_device_id tables

2014-03-04 Thread Axel Lin
for 'pfuze_device_id') [enabled by default] drivers/regulator/pfuze100-regulator.c:93:2: warning: excess elements in array initializer [enabled by default] drivers/regulator/pfuze100-regulator.c:93:2: warning: (near initialization for 'pfuze_dt_ids') [enabled by default] Signed-off-by: Axel Lin

[PATCH] regulator: pfuze100: Add terminate entry for [i2c|of]_device_id tables

2014-03-04 Thread Axel Lin
for 'pfuze_device_id') [enabled by default] drivers/regulator/pfuze100-regulator.c:93:2: warning: excess elements in array initializer [enabled by default] drivers/regulator/pfuze100-regulator.c:93:2: warning: (near initialization for 'pfuze_dt_ids') [enabled by default] Signed-off-by: Axel Lin axel

[PATCH RFC] regulator: anatop: Remove checking control_reg in [set|get]_voltage_sel

2014-02-21 Thread Axel Lin
to remove testing if control_reg is 0. Signed-off-by: Axel Lin --- drivers/regulator/anatop-regulator.c | 25 ++--- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index 38e8122

[PATCH] regulator: tps65217: Allow missing init_data for diagnostics

2014-02-21 Thread Axel Lin
The regulator core supports this to allow the configuration to be inspected at runtime even if no software management is enabled. Signed-off-by: Axel Lin --- drivers/regulator/tps65217-regulator.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers

[PATCH RFC] regulator: anatop: Remove checking control_reg in [set|get]_voltage_sel

2014-02-21 Thread Axel Lin
to remove testing if control_reg is 0. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/anatop-regulator.c | 25 ++--- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c

[PATCH] regulator: tps65217: Allow missing init_data for diagnostics

2014-02-21 Thread Axel Lin
The regulator core supports this to allow the configuration to be inspected at runtime even if no software management is enabled. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/tps65217-regulator.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff

[PATCH 3/3 v2] regulator: tps65218: Add OF dependency

2014-02-19 Thread Axel Lin
This is a DT-only driver, so make it depend on OF and remove of_match_ptr in the code. Signed-off-by: Axel Lin --- drivers/regulator/Kconfig | 2 +- drivers/regulator/tps65218-regulator.c | 14 ++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers

[PATCH 2/3 v2] regulator: tps65218: Remove unnecessary regulator_unregister call

2014-02-19 Thread Axel Lin
Current code uses devm_regulator_register() so the we don't need to explicitly call regulator_unregister() in .remove. And then we don't need to save rdev pointer to tps->rdev[id]. Signed-off-by: Axel Lin --- drivers/regulator/tps65218-regulator.c | 18 -- 1 file changed,

[PATCH 1/3 v2] regulator: tps65218: Add terminate entry for of_device_id table

2014-02-19 Thread Axel Lin
Fixes below build error: FATAL: drivers/regulator/tps65218-regulator: struct of_device_id is not terminated with a NULL entry! Signed-off-by: Axel Lin --- I'm sorry that I just found I CC wrong developers in my previous mail. So here is a resend. drivers/regulator/tps65218-regulator.c | 1 + 1

[PATCH 2/3 v2] regulator: tps65218: Remove unnecessary regulator_unregister call

2014-02-19 Thread Axel Lin
Current code uses devm_regulator_register() so the we don't need to explicitly call regulator_unregister() in .remove. And then we don't need to save rdev pointer to tps->rdev[id]. Signed-off-by: Axel Lin --- drivers/regulator/tps65218-regulator.c | 18 -- 1 file changed,

[PATCH 1/3 v2] regulator: tps65218: Add terminate entry for of_device_id table

2014-02-19 Thread Axel Lin
Fixes below build error: FATAL: drivers/regulator/tps65218-regulator: struct of_device_id is not terminated with a NULL entry! Signed-off-by: Axel Lin --- drivers/regulator/tps65218-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/tps65218-regulator.c b

[PATCH 1/3 v2] regulator: tps65218: Add terminate entry for of_device_id table

2014-02-19 Thread Axel Lin
Fixes below build error: FATAL: drivers/regulator/tps65218-regulator: struct of_device_id is not terminated with a NULL entry! Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/tps65218-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/tps65218

[PATCH 2/3 v2] regulator: tps65218: Remove unnecessary regulator_unregister call

2014-02-19 Thread Axel Lin
Current code uses devm_regulator_register() so the we don't need to explicitly call regulator_unregister() in .remove. And then we don't need to save rdev pointer to tps-rdev[id]. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/tps65218-regulator.c | 18 -- 1

[PATCH 1/3 v2] regulator: tps65218: Add terminate entry for of_device_id table

2014-02-19 Thread Axel Lin
Fixes below build error: FATAL: drivers/regulator/tps65218-regulator: struct of_device_id is not terminated with a NULL entry! Signed-off-by: Axel Lin axel@ingics.com --- I'm sorry that I just found I CC wrong developers in my previous mail. So here is a resend. drivers/regulator/tps65218

[PATCH 2/3 v2] regulator: tps65218: Remove unnecessary regulator_unregister call

2014-02-19 Thread Axel Lin
Current code uses devm_regulator_register() so the we don't need to explicitly call regulator_unregister() in .remove. And then we don't need to save rdev pointer to tps-rdev[id]. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/tps65218-regulator.c | 18 -- 1

[PATCH 3/3 v2] regulator: tps65218: Add OF dependency

2014-02-19 Thread Axel Lin
This is a DT-only driver, so make it depend on OF and remove of_match_ptr in the code. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/Kconfig | 2 +- drivers/regulator/tps65218-regulator.c | 14 ++ 2 files changed, 7 insertions(+), 9 deletions

[PATCH RFT] regulator: tps65910: Allow missing init_data for diagnostics

2014-02-18 Thread Axel Lin
The regulator core supports this to allow the configuration to be inspected at runtime even if no software management is enabled. Signed-off-by: Axel Lin --- drivers/regulator/tps65910-regulator.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers

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

2014-02-18 Thread Axel Lin
Use regulator_set_voltage_time_sel() instead of open-coded. Signed-off-by: Axel Lin --- drivers/regulator/tps65218-regulator.c | 37 +- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator

[PATCH 2/2] regulator: tps65218: Remove unnecessary regulator_unregister call

2014-02-18 Thread Axel Lin
Current code uses devm_regulator_register() so the we don't need to explicitly call regulator_unregister() in .remove. And then we don't need to save rdev pointer to tps->rdev[id]. Signed-off-by: Axel Lin --- drivers/regulator/tps65218-regulator.c | 18 -- 1 file changed,

[PATCH 1/2] regulator: tps65218: Add terminate entry for of_device_id table

2014-02-18 Thread Axel Lin
Fixes below build error: FATAL: drivers/regulator/tps65218-regulator: struct of_device_id is not terminated with a NULL entry! Also remove of_match_ptr as this is a DT-only driver. Signed-off-by: Axel Lin --- drivers/regulator/tps65218-regulator.c | 15 +++ 1 file changed, 7

[PATCH 1/2] regulator: tps65218: Add terminate entry for of_device_id table

2014-02-18 Thread Axel Lin
Fixes below build error: FATAL: drivers/regulator/tps65218-regulator: struct of_device_id is not terminated with a NULL entry! Also remove of_match_ptr as this is a DT-only driver. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/tps65218-regulator.c | 15 +++ 1

[PATCH 2/2] regulator: tps65218: Remove unnecessary regulator_unregister call

2014-02-18 Thread Axel Lin
Current code uses devm_regulator_register() so the we don't need to explicitly call regulator_unregister() in .remove. And then we don't need to save rdev pointer to tps-rdev[id]. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/tps65218-regulator.c | 18 -- 1

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

2014-02-18 Thread Axel Lin
Use regulator_set_voltage_time_sel() instead of open-coded. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/tps65218-regulator.c | 37 +- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/drivers/regulator/tps65218-regulator.c b

[PATCH RFT] regulator: tps65910: Allow missing init_data for diagnostics

2014-02-18 Thread Axel Lin
The regulator core supports this to allow the configuration to be inspected at runtime even if no software management is enabled. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/tps65910-regulator.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff

[PATCH 2/2] regulator: rc5t583: Allow missing init_data for diagnostics

2014-02-05 Thread Axel Lin
The regulator core supports this to allow the configuration to be inspected at runtime even if no software management is enabled. Signed-off-by: Axel Lin --- drivers/regulator/rc5t583-regulator.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/regulator

[PATCH 1/2] regulator: as3711: Allow missing init_data for diagnostics

2014-02-05 Thread Axel Lin
The regulator core supports this to allow the configuration to be inspected at runtime even if no software management is enabled. Signed-off-by: Axel Lin --- drivers/regulator/as3711-regulator.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/regulator/as3711

[PATCH 1/2] regulator: as3711: Allow missing init_data for diagnostics

2014-02-05 Thread Axel Lin
The regulator core supports this to allow the configuration to be inspected at runtime even if no software management is enabled. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/as3711-regulator.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git

[PATCH 2/2] regulator: rc5t583: Allow missing init_data for diagnostics

2014-02-05 Thread Axel Lin
The regulator core supports this to allow the configuration to be inspected at runtime even if no software management is enabled. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/rc5t583-regulator.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git

[PATCH] pinctrl: capri: Make capri_pinctrl_probe static

2014-02-04 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/pinctrl/pinctrl-capri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-capri.c b/drivers/pinctrl/pinctrl-capri.c index 4669c53..b4aa8e3 100644 --- a/drivers/pinctrl/pinctrl-capri.c +++ b/drivers/pinctrl/pinctrl

[PATCH] pinctrl: capri: Make capri_pinctrl_probe static

2014-02-04 Thread Axel Lin
Signed-off-by: Axel Lin axel@ingics.com --- drivers/pinctrl/pinctrl-capri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-capri.c b/drivers/pinctrl/pinctrl-capri.c index 4669c53..b4aa8e3 100644 --- a/drivers/pinctrl/pinctrl-capri.c +++ b/drivers

[PATCH] regulator: act8865: Fix build error when !OF

2014-01-05 Thread Axel Lin
: *** [drivers] Error 2 Reported-by: Stephen Rothwell Signed-off-by: Axel Lin --- drivers/regulator/act8865-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c index 5e3e1d2..084cc08 100644

[PATCH] regulator: act8865: Fix build error when !OF

2014-01-05 Thread Axel Lin
make: *** [drivers] Error 2 Reported-by: Stephen Rothwell s...@canb.auug.org.au Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/act8865-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865

[PATCH] clocksource: mxs_timer: Get rid of mxs_clockevent_mode variable

2014-01-02 Thread Axel Lin
The current mode setting is stored in mode field of struct clock_event_device. So we can just remove the mxs_clockevent_mode variable. Signed-off-by: Axel Lin --- drivers/clocksource/mxs_timer.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/clocksource

[PATCH] clocksource: mxs_timer: Get rid of mxs_clockevent_mode variable

2014-01-02 Thread Axel Lin
The current mode setting is stored in mode field of struct clock_event_device. So we can just remove the mxs_clockevent_mode variable. Signed-off-by: Axel Lin axel@ingics.com --- drivers/clocksource/mxs_timer.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

regulator: question about commit d886a041646 pfuze100-regulator: Fix MODULE_ALIAS()

2013-12-31 Thread Axel Lin
Hi, I just found this commit after pull regulator updates. So why to use 'platform' prefix in MODULE_ALIAS for i2c driver? Does it really work? Regards, Axel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

regulator: question about commit d886a041646 pfuze100-regulator: Fix MODULE_ALIAS()

2013-12-31 Thread Axel Lin
Hi, I just found this commit after pull regulator updates. So why to use 'platform' prefix in MODULE_ALIAS for i2c driver? Does it really work? Regards, Axel -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

[PATCH v2] regulator: tps65910: Simplify setting enable_mask for regulators

2013-12-29 Thread Axel Lin
BBCH_BBCHEN_MASK is equivalent to TPS65910_SUPPLY_STATE_ENABLED. So all regulators have the same enable_mask setting. BBCH_BBCHEN_MASK and BBCH_BBCHEN_SHIFT are not used now, remove them. Signed-off-by: Axel Lin --- v2: (Base on Markus' comment) remove unused BBCH_BBCHEN_* in tps65910.h

[PATCH v2] regulator: tps65910: Simplify setting enable_mask for regulators

2013-12-29 Thread Axel Lin
BBCH_BBCHEN_MASK is equivalent to TPS65910_SUPPLY_STATE_ENABLED. So all regulators have the same enable_mask setting. BBCH_BBCHEN_MASK and BBCH_BBCHEN_SHIFT are not used now, remove them. Signed-off-by: Axel Lin axel@ingics.com --- v2: (Base on Markus' comment) remove unused BBCH_BBCHEN_

[PATCH] regulator: tps65910: Simplify setting enable_mask for regulators

2013-12-27 Thread Axel Lin
BBCH_BBCHEN_MASK is equivalent to TPS65910_SUPPLY_STATE_ENABLED. So all regulators have the same enable_mask setting. Signed-off-by: Axel Lin --- drivers/regulator/tps65910-regulator.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/regulator

[PATCH] regulator: tps65910: Simplify setting enable_mask for regulators

2013-12-27 Thread Axel Lin
BBCH_BBCHEN_MASK is equivalent to TPS65910_SUPPLY_STATE_ENABLED. So all regulators have the same enable_mask setting. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/tps65910-regulator.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git

[PATCH RFT] regulator: act8865: Remove set_suspend_[en|dis]able implementation

2013-12-24 Thread Axel Lin
There is no suspend enable/disable settings mentioned in datasheet, so just don't implement .set_suspend_[en|dis]able callbacks. Signed-off-by: Axel Lin --- drivers/regulator/act8865-regulator.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/regulator/act8865-regulator.c b

[PATCH v2] regulator: act8865: Remove unneeded regulator_unregister() calls

2013-12-24 Thread Axel Lin
This is not required because current code uses devm_regulator_register() to register regulators. Signed-off-by: Axel Lin --- v2: Fix typo in subject line s/Rmove/Remove/ drivers/regulator/act8865-regulator.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/regulator

[PATCH] regulator: act8865: Rmove unneeded regulator_unregister() calls

2013-12-24 Thread Axel Lin
This is not required because current code use devm_regulator_register() to register regulators. Signed-off-by: Axel Lin --- drivers/regulator/act8865-regulator.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865

[PATCH] regulator: max77693: Add missing .owner field in regulator_desc

2013-12-24 Thread Axel Lin
Add missing .owner field in regulator_desc, which is used for refcounting. Signed-off-by: Axel Lin --- drivers/regulator/max77693.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c index feb20bf..5fb899f 100644 --- a/drivers

[PATCH] regulator: max77693: Add missing .owner field in regulator_desc

2013-12-24 Thread Axel Lin
Add missing .owner field in regulator_desc, which is used for refcounting. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/max77693.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c index feb20bf..5fb899f 100644

[PATCH] regulator: act8865: Rmove unneeded regulator_unregister() calls

2013-12-24 Thread Axel Lin
This is not required because current code use devm_regulator_register() to register regulators. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/act8865-regulator.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/regulator/act8865-regulator.c b/drivers

[PATCH v2] regulator: act8865: Remove unneeded regulator_unregister() calls

2013-12-24 Thread Axel Lin
This is not required because current code uses devm_regulator_register() to register regulators. Signed-off-by: Axel Lin axel@ingics.com --- v2: Fix typo in subject line s/Rmove/Remove/ drivers/regulator/act8865-regulator.c | 12 1 file changed, 12 deletions(-) diff --git

[PATCH RFT] regulator: act8865: Remove set_suspend_[en|dis]able implementation

2013-12-24 Thread Axel Lin
There is no suspend enable/disable settings mentioned in datasheet, so just don't implement .set_suspend_[en|dis]able callbacks. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/act8865-regulator.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/regulator/act8865

[PATCH] regulator: max14577: Add module alias to support module auto-loading

2013-12-22 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/max14577.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/max14577.c b/drivers/regulator/max14577.c index 516e8af..b1078ba3 100644 --- a/drivers/regulator/max14577.c +++ b/drivers/regulator/max14577.c @@ -270,3 +270,4

[PATCH] regulator: max14577: Add module alias to support module auto-loading

2013-12-22 Thread Axel Lin
Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/max14577.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/max14577.c b/drivers/regulator/max14577.c index 516e8af..b1078ba3 100644 --- a/drivers/regulator/max14577.c +++ b/drivers/regulator/max14577.c

BUG: bad unlock balance detected! (__sigqueue_alloc)

2013-12-19 Thread Axel Lin
Hi, I got below hangup with current Linus' tree. [ 166.378906] [ cut here ] [ 166.385742] WARNING: CPU: 0 PID: 0 at kernel/rcu/update.c:107 __rcu_read_unlock+0x70/0x84() [ 166.394531] CPU: 0 PID: 0 Comm: Not tainted 3.13.0-rc4-00291-g002c96b-dirty #2135 [

[PATCH] regulator: as3722: Don't set min_uV/uV_step/linear_min_sel for linear_ranges

2013-12-19 Thread Axel Lin
These settings are not used when using linear_ranges and it makes the code looks confusing. Thus remove them. Signed-off-by: Axel Lin --- drivers/regulator/as3722-regulator.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/regulator/as3722-regulator.c b/drivers/regulator/as3722

[PATCH] regulator: as3722: Don't set min_uV/uV_step/linear_min_sel for linear_ranges

2013-12-19 Thread Axel Lin
These settings are not used when using linear_ranges and it makes the code looks confusing. Thus remove them. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/as3722-regulator.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/regulator/as3722-regulator.c b/drivers

BUG: bad unlock balance detected! (__sigqueue_alloc)

2013-12-19 Thread Axel Lin
Hi, I got below hangup with current Linus' tree. [ 166.378906] [ cut here ] [ 166.385742] WARNING: CPU: 0 PID: 0 at kernel/rcu/update.c:107 __rcu_read_unlock+0x70/0x84() [ 166.394531] CPU: 0 PID: 0 Comm: Not tainted 3.13.0-rc4-00291-g002c96b-dirty #2135 [

[RFT][PATCH] pinctrl: msm: Fix set gpio setting

2013-12-13 Thread Axel Lin
Set g->out_bit bit for gpio output high, clear g->out_bit bit for gpio output low. Signed-off-by: Axel Lin --- Hi Bjorn, I don't have the datasheet, just found current code does not make sense because current code unconditionally set BIT(g->out_bit) in msm_gpio_set. I assume setting g

[RFT][PATCH] pinctrl: msm: Fix set gpio setting

2013-12-13 Thread Axel Lin
Set g-out_bit bit for gpio output high, clear g-out_bit bit for gpio output low. Signed-off-by: Axel Lin axel@ingics.com --- Hi Bjorn, I don't have the datasheet, just found current code does not make sense because current code unconditionally set BIT(g-out_bit) in msm_gpio_set. I assume

Re: ARM: nommu: DEBUG_LOCKS_WARN_ON(!depth)

2013-12-09 Thread Axel Lin
2013/11/25 Axel Lin : > I'm testing on a nommu platform (arm7tdmi SoC). > Using current Linus' tree + out-of-tree patches for this SoC. > I got below hang while executing ls (busybox) after boot. > > / # ls > [ 51.036191] [ cut here ] > [ 51.042242

Re: [PATCH] devtmpfs: Calling delete_path() only when necessary

2013-12-09 Thread Axel Lin
2013/12/9 Axel Lin : > 2013/12/9 Greg Kroah-Hartman : >> On Mon, Dec 09, 2013 at 04:54:29PM +0800, Axel Lin wrote: >>> 2013/12/9 Greg Kroah-Hartman : >>> > On Wed, Dec 04, 2013 at 02:44:14PM +0800, Axel Lin wrote: >>> >> 2013/12/4 Rob Landley : >&

Re: [PATCH] devtmpfs: Calling delete_path() only when necessary

2013-12-09 Thread Axel Lin
2013/12/9 Greg Kroah-Hartman : > On Mon, Dec 09, 2013 at 04:54:29PM +0800, Axel Lin wrote: >> 2013/12/9 Greg Kroah-Hartman : >> > On Wed, Dec 04, 2013 at 02:44:14PM +0800, Axel Lin wrote: >> >> 2013/12/4 Rob Landley : >> >> > On 11/16/2013 02:15:23 AM,

Re: [PATCH] devtmpfs: Calling delete_path() only when necessary

2013-12-09 Thread Axel Lin
2013/12/9 Greg Kroah-Hartman : > On Wed, Dec 04, 2013 at 02:44:14PM +0800, Axel Lin wrote: >> 2013/12/4 Rob Landley : >> > On 11/16/2013 02:15:23 AM, Axel Lin wrote: >> >> >> >> The deleted variable is always 1 in current code. >> >&g

Re: [PATCH] devtmpfs: Calling delete_path() only when necessary

2013-12-09 Thread Axel Lin
2013/12/9 Greg Kroah-Hartman gre...@linuxfoundation.org: On Wed, Dec 04, 2013 at 02:44:14PM +0800, Axel Lin wrote: 2013/12/4 Rob Landley r...@landley.net: On 11/16/2013 02:15:23 AM, Axel Lin wrote: The deleted variable is always 1 in current code. Initialize deleted variable to be 0, so

Re: [PATCH] devtmpfs: Calling delete_path() only when necessary

2013-12-09 Thread Axel Lin
2013/12/9 Greg Kroah-Hartman gre...@linuxfoundation.org: On Mon, Dec 09, 2013 at 04:54:29PM +0800, Axel Lin wrote: 2013/12/9 Greg Kroah-Hartman gre...@linuxfoundation.org: On Wed, Dec 04, 2013 at 02:44:14PM +0800, Axel Lin wrote: 2013/12/4 Rob Landley r...@landley.net: On 11/16/2013 02:15

Re: [PATCH] devtmpfs: Calling delete_path() only when necessary

2013-12-09 Thread Axel Lin
2013/12/9 Axel Lin axel@ingics.com: 2013/12/9 Greg Kroah-Hartman gre...@linuxfoundation.org: On Mon, Dec 09, 2013 at 04:54:29PM +0800, Axel Lin wrote: 2013/12/9 Greg Kroah-Hartman gre...@linuxfoundation.org: On Wed, Dec 04, 2013 at 02:44:14PM +0800, Axel Lin wrote: 2013/12/4 Rob Landley

Re: ARM: nommu: DEBUG_LOCKS_WARN_ON(!depth)

2013-12-09 Thread Axel Lin
2013/11/25 Axel Lin axel@ingics.com: I'm testing on a nommu platform (arm7tdmi SoC). Using current Linus' tree + out-of-tree patches for this SoC. I got below hang while executing ls (busybox) after boot. / # ls [ 51.036191] [ cut here ] [ 51.042242] WARNING

[PATCH] regulator: pfuze100: Fix address of FABID

2013-12-08 Thread Axel Lin
According to the datasheet, the address of FABID is 0x4. Fix it. Signed-off-by: Axel Lin --- drivers/regulator/pfuze100-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index 032df37

[PATCH] regulator: pfuze100: Fix address of FABID

2013-12-08 Thread Axel Lin
According to the datasheet, the address of FABID is 0x4. Fix it. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/pfuze100-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Axel Lin
於 三,2013-12-04 於 13:32 -0800,Andrew Morton 提到: > On Wed, 04 Dec 2013 16:59:38 +0800 Axel Lin wrote: > > > > > > > Please add a lot more printk's so we can narrow it down further? I'd > > > use something like > > > > > > printk(%d: %d

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Axel Lin
cess+0x20/0x4c) [<83c4>] (try_to_run_init_process+0x0/0x4c) from [<002c74f0>] (kernel_init+0x98/0x104) r5:002c7458 r4:003e8300 [<002c7458>] (kernel_init+0x0/0x104) from [<9070>] (ret_from_fork+0x14/0x24) r4: r3: 於 日,2013-12-01 於 18:53 +0800,Axel L

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Axel Lin
) [83c4] (try_to_run_init_process+0x0/0x4c) from [002c74f0] (kernel_init+0x98/0x104) r5:002c7458 r4:003e8300 [002c7458] (kernel_init+0x0/0x104) from [9070] (ret_from_fork+0x14/0x24) r4: r3: 於 日,2013-12-01 於 18:53 +0800,Axel Lin 提到: Hi, I got below messages while booting

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Axel Lin
於 三,2013-12-04 於 13:32 -0800,Andrew Morton 提到: On Wed, 04 Dec 2013 16:59:38 +0800 Axel Lin axel@ingics.com wrote: Please add a lot more printk's so we can narrow it down further? I'd use something like printk(%d: %d\n, __LINE__, preempt_count()); (note

Re: [PATCH] devtmpfs: Calling delete_path() only when necessary

2013-12-03 Thread Axel Lin
2013/12/4 Rob Landley : > On 11/16/2013 02:15:23 AM, Axel Lin wrote: >> >> The deleted variable is always 1 in current code. >> Initialize deleted variable to be 0, so delete_path() will be called only >> when >> necessary. >> >> Signed-off-by: Axel

Re: [PATCH] devtmpfs: Calling delete_path() only when necessary

2013-12-03 Thread Axel Lin
2013/12/4 Rob Landley r...@landley.net: On 11/16/2013 02:15:23 AM, Axel Lin wrote: The deleted variable is always 1 in current code. Initialize deleted variable to be 0, so delete_path() will be called only when necessary. Signed-off-by: Axel Lin axel@ingics.com I'm not seeing

Re: kernel BUG at kernel/kallsyms.c:222!

2013-12-01 Thread Axel Lin
2013/11/13 Ming Lei : > Hi Axel, > > On Wed, Nov 13, 2013 at 5:58 PM, Axel Lin wrote: >> >> Hi Ming, >> You missed "; then" in the end of if statement in your patch. >> >> So I got below error with your patch: >> scripts/link-vmlinux.sh: l

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

2013-12-01 Thread Axel Lin
Fix a trivial typo. Signed-off-by: Axel Lin --- drivers/pinctrl/pinctrl-abx500.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-abx500.h b/drivers/pinctrl/pinctrl-abx500.h index eeca8f9..8229380 100644 --- a/drivers/pinctrl/pinctrl-abx500.h +++ b

BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-01 Thread Axel Lin
Hi, I got below messages while booting. Testing on a nommu platform with 3.13.0-rc2 + patches for this SoC. VFS: Mounted root (jffs2 filesystem) on device 31:1. devtmpfs: mounted Freeing unused kernel memory: 92K (003a4000 - 003bb000) BUG: sleeping function called from invalid context at

BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-01 Thread Axel Lin
Hi, I got below messages while booting. Testing on a nommu platform with 3.13.0-rc2 + patches for this SoC. VFS: Mounted root (jffs2 filesystem) on device 31:1. devtmpfs: mounted Freeing unused kernel memory: 92K (003a4000 - 003bb000) BUG: sleeping function called from invalid context at

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

2013-12-01 Thread Axel Lin
Fix a trivial typo. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pinctrl/pinctrl-abx500.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-abx500.h b/drivers/pinctrl/pinctrl-abx500.h index eeca8f9..8229380 100644 --- a/drivers/pinctrl/pinctrl

Re: kernel BUG at kernel/kallsyms.c:222!

2013-12-01 Thread Axel Lin
2013/11/13 Ming Lei tom.leim...@gmail.com: Hi Axel, On Wed, Nov 13, 2013 at 5:58 PM, Axel Lin axel@ingics.com wrote: Hi Ming, You missed ; then in the end of if statement in your patch. So I got below error with your patch: scripts/link-vmlinux.sh: line 87: syntax error near

[RFT][PATCH] mfd: pcf50633: Correct device name for pcf50633 regulator

2013-11-29 Thread Axel Lin
Change the device name of the regulator function to the one chosen for MODULE_ALIAS. This fixes kernel auto-module loading for the regulator function. Signed-off-by: Axel Lin --- Hi, I don't have the hardware to test, but I think this needs fix. We have a similar fix in commit ec8da805c43a &quo

[RFT][PATCH] mfd: pcf50633: Correct device name for pcf50633 regulator

2013-11-29 Thread Axel Lin
Change the device name of the regulator function to the one chosen for MODULE_ALIAS. This fixes kernel auto-module loading for the regulator function. Signed-off-by: Axel Lin axel@ingics.com --- Hi, I don't have the hardware to test, but I think this needs fix. We have a similar fix in commit

[PATCH] include/linux/kernel.h: Make might_fault to be a nop for !MMU

2013-11-28 Thread Axel Lin
ndefined reference to `might_fault' arch/arm/kernel/built-in.o:arch/arm/kernel/signal.c:177: more undefined references to `might_fault' follow make: *** [vmlinux] Error 1 Signed-off-by: Axel Lin Cc: Michael S. Tsirkin Cc: Peter Zijlstra --- include/linux/kernel.h | 3 ++- 1 file changed, 2 insertio

[PATCH] include/linux/kernel.h: Make might_fault to be a nop for !MMU

2013-11-28 Thread Axel Lin
to `might_fault' arch/arm/kernel/built-in.o:arch/arm/kernel/signal.c:177: more undefined references to `might_fault' follow make: *** [vmlinux] Error 1 Signed-off-by: Axel Lin axel@ingics.com Cc: Michael S. Tsirkin m...@redhat.com Cc: Peter Zijlstra pet...@infradead.org --- include/linux

Re: ARM: nommu: Unable to allocate RAM for process text/data, errno 12

2013-11-27 Thread Axel Lin
2013/11/27 Andrew Morton : > On Tue, 26 Nov 2013 17:29:29 +0800 Axel Lin wrote: > >> Hi, >> I got below error messages while starting mdev (busybox). >> >> ... >> >> [ 108.537109] chmod: page allocation failure: order:8, mode:0xd0 > > It w

Re: ARM: nommu: Unable to allocate RAM for process text/data, errno 12

2013-11-27 Thread Axel Lin
2013/11/27 Andrew Morton a...@linux-foundation.org: On Tue, 26 Nov 2013 17:29:29 +0800 Axel Lin axel@ingics.com wrote: Hi, I got below error messages while starting mdev (busybox). ... [ 108.537109] chmod: page allocation failure: order:8, mode:0xd0 It wants to allocate 2^8

[PATCH RESEND] regulator: lp3971: Convert to devm_regulator_register

2013-11-26 Thread Axel Lin
Both num_regulators and **rdev are no longer required after this conversion, thus remove them from struct lp3971. Signed-off-by: Axel Lin --- Hi Mark, This patch was sent on https://lkml.org/lkml/2013/11/13/34 . Although you replied applied, it still not in your tree. So here is a resend. Axel

ARM: nommu: Unable to allocate RAM for process text/data, errno 12

2013-11-26 Thread Axel Lin
Hi, I got below error messages while starting mdev (busybox). / # free total used free shared buffers Mem: 23628 8924147040 72 -/+ buffers: 885214776 / # exec /sbin/init Starting logging:

ARM: nommu: Unable to allocate RAM for process text/data, errno 12

2013-11-26 Thread Axel Lin
Hi, I got below error messages while starting mdev (busybox). / # free total used free shared buffers Mem: 23628 8924147040 72 -/+ buffers: 885214776 / # exec /sbin/init Starting logging:

[PATCH RESEND] regulator: lp3971: Convert to devm_regulator_register

2013-11-26 Thread Axel Lin
Both num_regulators and **rdev are no longer required after this conversion, thus remove them from struct lp3971. Signed-off-by: Axel Lin axel@ingics.com --- Hi Mark, This patch was sent on https://lkml.org/lkml/2013/11/13/34 . Although you replied applied, it still not in your tree. So here

Re: ARM: nommu: Boot hang after VFS: Mounted root (ext2 filesystem) on device 1:0.

2013-11-25 Thread Axel Lin
2013/11/26 Uwe Kleine-König : > Hello, > > On Mon, Nov 25, 2013 at 11:26:00PM +0800, Axel Lin wrote: >> I got hangup at boot after "VFS: Mounted root (ext2 filesystem) on device >> 1:0.". >> I'm using ext2 initrd as root. > which mainline version are you u

ARM: nommu: Boot hang after VFS: Mounted root (ext2 filesystem) on device 1:0.

2013-11-25 Thread Axel Lin
Hi, I got hangup at boot after "VFS: Mounted root (ext2 filesystem) on device 1:0.". I'm using ext2 initrd as root. It seems hangup after mount root, but in the progress of mounting devtmpfs. After debug it, I found it hangs at calling page_cache_release. Note, I'm testing on an nommu platform

ARM: nommu: Boot hang after VFS: Mounted root (ext2 filesystem) on device 1:0.

2013-11-25 Thread Axel Lin
Hi, I got hangup at boot after VFS: Mounted root (ext2 filesystem) on device 1:0.. I'm using ext2 initrd as root. It seems hangup after mount root, but in the progress of mounting devtmpfs. After debug it, I found it hangs at calling page_cache_release. Note, I'm testing on an nommu platform

Re: ARM: nommu: Boot hang after VFS: Mounted root (ext2 filesystem) on device 1:0.

2013-11-25 Thread Axel Lin
2013/11/26 Uwe Kleine-König u.kleine-koe...@pengutronix.de: Hello, On Mon, Nov 25, 2013 at 11:26:00PM +0800, Axel Lin wrote: I got hangup at boot after VFS: Mounted root (ext2 filesystem) on device 1:0.. I'm using ext2 initrd as root. which mainline version are you using? I don't know your

ARM: nommu: DEBUG_LOCKS_WARN_ON(!depth)

2013-11-24 Thread Axel Lin
I'm testing on a nommu platform (arm7tdmi SoC). Using current Linus' tree + out-of-tree patches for this SoC. I got below hang while executing ls (busybox) after boot. / # ls [ 51.036191] [ cut here ] [ 51.042242] WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:3312

[PATCH] clocksource: bcm_kona_timer: Remove unused bcm_timer_ids

2013-11-24 Thread Axel Lin
bcm_timer_ids is no longer used after converting to CLOCKSOURCE_OF_DECLARE. Signed-off-by: Axel Lin --- drivers/clocksource/bcm_kona_timer.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/clocksource/bcm_kona_timer.c b/drivers/clocksource/bcm_kona_timer.c index 0d7d8c3

[PATCH] clocksource: bcm_kona_timer: Remove unused bcm_timer_ids

2013-11-24 Thread Axel Lin
bcm_timer_ids is no longer used after converting to CLOCKSOURCE_OF_DECLARE. Signed-off-by: Axel Lin axel@ingics.com --- drivers/clocksource/bcm_kona_timer.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/clocksource/bcm_kona_timer.c b/drivers/clocksource/bcm_kona_timer.c

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