From d830f22612931fe3dbea77dd7676f7e93697316d Mon Sep 17 00:00:00 2001 From: Anirudh Ghayal Date: Wed, 29 Apr 2020 12:21:10 +0530 Subject: [PATCH] mfd: qcom-i2c-pmic: Reduce the stat-toggle delay Reduce the stat-toggle delays to 50ms (overall) to optimize boot time. Change-Id: I58027cb94500cf93eb42b44dcec9a5e68670b5e0 Signed-off-by: Anirudh Ghayal --- drivers/mfd/qcom-i2c-pmic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/qcom-i2c-pmic.c b/drivers/mfd/qcom-i2c-pmic.c index 5cbfa2665dc0..8530f3f47a97 100644 --- a/drivers/mfd/qcom-i2c-pmic.c +++ b/drivers/mfd/qcom-i2c-pmic.c @@ -553,7 +553,7 @@ static int i2c_pmic_toggle_stat(struct i2c_pmic *chip) goto exit; } - usleep_range(10000, 11000); + usleep_range(5000, 5500); rc = regmap_write(chip->regmap, chip->periph[0].addr | INT_TEST_VAL_OFFSET, @@ -571,7 +571,7 @@ static int i2c_pmic_toggle_stat(struct i2c_pmic *chip) goto exit; } - usleep_range(10000, 11000); + usleep_range(5000, 5500); } exit: regmap_write(chip->regmap, chip->periph[0].addr | INT_TEST_OFFSET, 0);