summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Nold <dannynold@freescale.com>2010-07-13 13:52:17 -0500
committerDanny Nold <dannynold@freescale.com>2010-07-13 20:04:04 -0500
commita7f33d479f9f15f6e9e155fa61d98633cfb7b060 (patch)
tree254a815a1d4d560b09078fa25618efb438288015
parent5b4777b1838cc3270e625412f25449b50d9cd3d5 (diff)
ENGR00125118 - Maxim 17135 display pmic: increase PWR_GOOD wait timeout
A number of Maxim 17135 parts were found to require longer than the computed max wait time to assert the PWR_GOOD signal, indicating that display power is up and valid. This fix increases the timeout, preventing regulator_enable calls from prematurely bailing out and reporting errors. Signed-off-by: Danny Nold <dannynold@freescale.com>
-rw-r--r--drivers/regulator/max17135-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max17135-regulator.c b/drivers/regulator/max17135-regulator.c
index d2be6c513fcd..8bf1c4fa5092 100644
--- a/drivers/regulator/max17135-regulator.c
+++ b/drivers/regulator/max17135-regulator.c
@@ -357,7 +357,7 @@ static int max17135_wait_power_good(struct max17135 *max17135)
{
int i;
- for (i = 0; i < max17135->max_wait; i++) {
+ for (i = 0; i < max17135->max_wait * 3; i++) {
if (gpio_get_value(max17135->gpio_pmic_pwrgood))
return 0;