]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb506409d1f098b1cb11a83b7fa3d54910dd06385
tree4dbb644bd56c3e5b6d7aaa6631ccdc1f760c93f0
parent2977708bacf94f3ca922dd26c642a38e80cad933
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