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 <raviv@motorola.com>
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
This commit is contained in:
Ravi Vembu 2019-10-04 16:40:47 -05:00 • committed by Ravikumar Vembu
commit a4d4dd47bb

View file

@ -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);