From a4d4dd47bb472bdefa4300dc9c0adcc9bb079b01 Mon Sep 17 00:00:00 2001 From: Ravi Vembu Date: Fri, 4 Oct 2019 16:40:47 -0500 Subject: [PATCH] regulator: slg: Add a delay after toggling reset Add a delay after toggling reset. Otherwise the i2c i/o timesout and probe fails. Change-Id: Idf5c485cc8a77e0e849fe2b5e0b55d8b91e5a7ab Signed-off-by: Ravi Vembu Mot-CRs-Fixed: (CR) Reviewed-on: https://gerrit.mot.com/1432708 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Submit-Approved: Jira Key --- drivers/regulator/slg51000-regulator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/slg51000-regulator.c b/drivers/regulator/slg51000-regulator.c index 5a1eeca2b675..ff3b730b7224 100644 --- a/drivers/regulator/slg51000-regulator.c +++ b/drivers/regulator/slg51000-regulator.c @@ -489,6 +489,8 @@ static int slg51000_i2c_probe(struct i2c_client *client, return error; } + /* FIXME - Optimize Delay */ + mdelay(10); ret = slg51000_regulator_init(chip); if (ret < 0) { dev_err(chip->dev, "Failed to init regulator(%d)\n", ret);