regulator: ltc3676: Assure PGOOD mask is set before changing voltage
authorMarek Vasut <marex@denx.de>
Tue, 1 May 2018 01:50:45 +0000 (03:50 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 1 May 2018 21:00:20 +0000 (06:00 +0900)
commitd2a66ddfe8acd91aca81af2ef39abd5813d5dc65
tree1a275d92fb523f3b0b0ac5cf541385da0df5605b
parente241e3f2bf975788a1b70dff2eb5180ca395b28e
regulator: ltc3676: Assure PGOOD mask is set before changing voltage

Make sure the DVBxB bit 5, PGOOD mask, is set before changing voltage
on the buck converters. If the PGOOD mask bit is not set, the PMIC may
deassert the PGOOD signal during the voltage transition.

On systems that use the PGOOD signal as a power OK indication for the
board or SoC, which should be the case on correct designs, deasserting
the PGOOD signal will lead to system reset or shutdown, which is not
the expected behavior when changing PMIC buck converter voltage.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/ltc3676.c