power: supply: qti_battery_charger: Handle BC_SHIP_MODE_REQ_SET response

During shutdown when configuring ship mode based on user request,
battery charger driver sends BC_SHIP_MODE_REQ_SET message to the
charger firmware to do configuration before the shutdown. However
the response from the charger firmware is not handled and hence a
timeout is observed in the logs. Fix it.

Fixes: 1df95fc50926 ("power: supply: qti_battery_charger: Enable Ship mode shutdown")
Change-Id: I9149a256e4af40c3dcf2f0019f27e711a97f4493
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
Subbaraman Narayanamurthy 2021-04-20 10:08:39 -07:00 committed by Anjelique Melendez
parent 648cd70546
commit 7fbbeb3710

View File

@ -570,7 +570,8 @@ static void handle_message(struct battery_chg_dev *bcdev, void *data,
break;
case BC_SET_NOTIFY_REQ:
case BC_SHUTDOWN_NOTIFY:
/* Always ACK response for notify request */
case BC_SHIP_MODE_REQ_SET:
/* Always ACK response for notify or ship_mode request */
ack_set = true;
break;
case BC_WLS_FW_CHECK_UPDATE: