power: supply: qti_battery_charger: Handle BC_SHUTDOWN_NOTIFY response

During shutdown, battery charger driver sends BC_SHUTDOWN_NOTIFY
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: eab52908558f ("power: qti_battery_charger: Add a shutdown notification")
Change-Id: I56f06b60bea0f1059f10684c32e9a7cf7acbdc9e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
Subbaraman Narayanamurthy 2021-03-02 17:29:06 -08:00 committed by Anjelique Melendez
parent d12c7578f1
commit 4ee00f5530

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
*/
#define pr_fmt(fmt) "BATTERY_CHG: %s: " fmt, __func__
@ -568,6 +568,7 @@ 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 */
ack_set = true;
break;