Skip to content

Commit

Permalink
regulator: ltc3589: fix broken voltage transitions
Browse files Browse the repository at this point in the history
VCCR is used as a trigger to start voltage transitions, so
we need to mark it volatile in order to make sure it gets
written to hardware every time we set a new voltage.

Fixes regulator voltage being stuck at the first voltage
set after driver load.

[lst: reworded commit message]
Signed-off-by: Steffen Trumtrar <[email protected]>
Signed-off-by: Lucas Stach <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
  • Loading branch information
strumtrar authored and broonie committed Sep 26, 2014
1 parent 7d1311b commit c5bb725
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/ltc3589.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ static bool ltc3589_volatile_reg(struct device *dev, unsigned int reg)
switch (reg) {
case LTC3589_IRQSTAT:
case LTC3589_PGSTAT:
case LTC3589_VCCR:
return true;
}
return false;
Expand Down

0 comments on commit c5bb725

Please sign in to comment.