Skip to content

Commit

Permalink
twl-regulator: Restore REMAP configuration in regulator probe
Browse files Browse the repository at this point in the history
This change ensures the regulator REMAP register configuration is in a known
state so state transitions will function as intended regardless of
possible bootloader effects on it

Signed-off-by: Juha Keski-Saari <ext-juha.1.keski-saari@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Juha Keski-Saari authored and Liam Girdwood committed Dec 17, 2009
1 parent 045f972 commit 30010fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/regulator/twl-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,9 @@ static int twlreg_probe(struct platform_device *pdev)
}
platform_set_drvdata(pdev, rdev);

twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_REMAP,
info->remap);

/* NOTE: many regulators support short-circuit IRQs (presentable
* as REGULATOR_OVER_CURRENT notifications?) configured via:
* - SC_CONFIG
Expand Down

0 comments on commit 30010fa

Please sign in to comment.