diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index 31e09aec9c14..9b98589525e0 100644 --- a/drivers/power/supply/bq25890_charger.c +++ b/drivers/power/supply/bq25890_charger.c @@ -996,6 +996,7 @@ static int bq25890_pd_notifier_call(struct notifier_block *nb, if (prop.intval == 0) { bq->pd_cur = 450000; bq->pd_vol = 5000000; + bq25890_field_write(bq, F_AUTO_DPDM_EN, 1); queue_delayed_work(bq->charger_wq, &bq->pd_work, msecs_to_jiffies(10)); return NOTIFY_OK; @@ -1012,6 +1013,7 @@ static int bq25890_pd_notifier_call(struct notifier_block *nb, return NOTIFY_OK; bq->pd_vol = prop.intval; + bq25890_field_write(bq, F_AUTO_DPDM_EN, 0); queue_delayed_work(bq->charger_wq, &bq->pd_work, msecs_to_jiffies(100)); }