From 106bde7f454e358ab70631d9a3d7d974b7d3fb06 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Thu, 26 Oct 2023 14:32:28 +0800 Subject: [PATCH] fogo: vibrator: increase the Vreg_Ready timeout Increase the timeout from 1ms to 2ms to fix the issue to vibrator LDO enable fail issue. Change-Id: I7a71d1bc46c103149fdce7ccf42f658ef445720f Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2777439 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- drivers/leds/leds-qpnp-vibrator-ldo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-qpnp-vibrator-ldo.c b/drivers/leds/leds-qpnp-vibrator-ldo.c index 59d391aeb551..373c150e2f48 100644 --- a/drivers/leds/leds-qpnp-vibrator-ldo.c +++ b/drivers/leds/leds-qpnp-vibrator-ldo.c @@ -67,7 +67,7 @@ static inline int qpnp_vib_ldo_poll_status(struct vib_ldo_chip *chip) ret = regmap_read_poll_timeout(chip->regmap, chip->base + QPNP_VIB_LDO_REG_STATUS1, val, - val & QPNP_VIB_LDO_VREG_READY, 100, 1000); + val & QPNP_VIB_LDO_VREG_READY, 100, 2000); if (ret < 0) { pr_err("Vibrator LDO vreg_ready timeout, status=0x%02x, ret=%d\n", val, ret);