regulator: tps65090: Make FETs more reliable by adding retries
authorDoug Anderson <dianders@chromium.org>
Wed, 23 Apr 2014 15:56:05 +0000 (08:56 -0700)
committerMark Brown <broonie@linaro.org>
Tue, 29 Apr 2014 17:05:07 +0000 (10:05 -0700)
commited11f1ead54bf0398a4303b51125622113c9c9e1
tree0b0a02f34e7cc13bbdb153685a3ba1888f9b63e8
parent3e93457b45a1a8c69227ce596ee2005fa06f20dd
regulator: tps65090: Make FETs more reliable by adding retries

An issue was discovered with tps65090 where sometimes the FETs
wouldn't actually turn on when requested (they would report
overcurrent).  The most problematic FET was the one used for the LCD
backlight on the Samsung ARM Chromebook (FET1).  Problems were
especially prevalent when the device was plugged in to AC power (when
the backlight voltage was higher).

Mitigate the problem by adding retries on the enables of the FETs,
which works around the problem fairly effectively.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michael Spang <spang@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/tps65090-regulator.c