power: supply: bq24190_charger: Turn off 5V boost regulator on shutdown
authorHans de Goede <hdegoede@redhat.com>
Sun, 6 Feb 2022 18:35:38 +0000 (19:35 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 11 Feb 2022 18:08:34 +0000 (19:08 +0100)
commit5e8c1dc78ccf37fc804df5415a8426ca9d19d51a
tree4dbb644bd56c3e5b6d7aaa6631ccdc1f760c93f0
parentc76787b0d8d2b8660e880d17fbe6fac22e8d35f5
power: supply: bq24190_charger: Turn off 5V boost regulator on shutdown

Turn off the 5V boost regulator on shutdown, there are 3 reasons for
doing this:

1. It drains he battery if left on
2. If left on the device will not charge when plugged into a charger
3. If left on and the powered peripheral attached to a Type-C port is
   removed before the next boot, then the Type-C port-controller will
   see VBus being present while nothing is attached confusing the
   TCPM state-machine.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq24190_charger.c