linux/drivers/power
Hans de Goede 155829fd1e power: supply: bq24190: Fix BQ24296 Vbus regulator support
[ Upstream commit b3ded6072c ]

There are 2 issues with bq24296_set_otg_vbus():

1. When writing the OTG_CONFIG bit it uses POC_CHG_CONFIG_SHIFT which
   should be POC_OTG_CONFIG_SHIFT.

2. When turning the regulator off it never turns charging back on. Note
   this must be done through bq24190_charger_set_charge_type(), to ensure
   that the charge_type property value of none/trickle/fast is honored.

Resolve both issues to fix BQ24296 Vbus regulator support not working.

Fixes: b150a703b5 ("power: supply: bq24190_charger: Add support for BQ24296")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241116203648.169100-2-hdegoede@redhat.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-01-02 10:34:15 +01:00
..
reset power: reset: ep93xx: add AUXILIARY_BUS dependency 2024-12-05 14:02:30 +01:00
sequencing power: sequencing: make the QCom PMU pwrseq driver depend on CONFIG_OF 2024-12-05 14:01:29 +01:00
supply power: supply: bq24190: Fix BQ24296 Vbus regulator support 2025-01-02 10:34:15 +01:00
Kconfig power: sequencing: implement the pwrseq core 2024-06-12 09:20:13 +02:00
Makefile power: sequencing: implement the pwrseq core 2024-06-12 09:20:13 +02:00