From e395d85f4e00c30c38ef3bf143be6e12755f65c3 Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Thu, 17 Jun 2021 20:03:08 -0700 Subject: [PATCH] power: supply: qti_battery_charger: Increase wireless FW prepare time Currently, prepare time for wireless FW update is set to 300 ms. This was sufficient enough for previous targets which had used wireless receiver IDT9412. For IDT9415, a prepare time > 300 ms is required to make sure pre-regulator is disabled and WLS_IN is plugged out. Hence, increase this to 1 second so that it can be well accommodated. Change-Id: Ibff4ec606257e04fcf0405c3f145585d30a38ed7 Signed-off-by: Subbaraman Narayanamurthy --- drivers/power/supply/qti_battery_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/qti_battery_charger.c b/drivers/power/supply/qti_battery_charger.c index 134181bfc69f..4f3f2aa93e01 100644 --- a/drivers/power/supply/qti_battery_charger.c +++ b/drivers/power/supply/qti_battery_charger.c @@ -45,7 +45,7 @@ /* Generic definitions */ #define MAX_STR_LEN 128 #define BC_WAIT_TIME_MS 1000 -#define WLS_FW_PREPARE_TIME_MS 300 +#define WLS_FW_PREPARE_TIME_MS 1000 #define WLS_FW_WAIT_TIME_MS 500 #define WLS_FW_UPDATE_TIME_MS 1000 #define WLS_FW_BUF_SIZE 128