power/charger: add free IRQ before reset

add free IRQ before reset to stop
thread IRQ.Prevent async action to
call I2C.

Change-Id: I9499ace1f54969802cae6d3ee5cd3f62b593d405
Reviewed-on: https://gerrit.mot.com/2066499
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
gongsc1 2021-09-14 22:56:43 +08:00 • committed by Shicheng Gong
commit 8daf230501

View file

@ -3268,6 +3268,8 @@ static void rt9467_shutdown(struct i2c_client *client)
pr_info("%s\n", __func__);
if (info) {
devm_free_irq(&client->dev, client->irq, info);
ret = rt9467_sw_reset(info);
if (ret < 0)
pr_notice("%s: sw reset fail\n", __func__);