power: supply: smb347-charger: Add missing pin control activation
authorDmitry Osipenko <digetx@gmail.com>
Sat, 31 Jul 2021 17:38:38 +0000 (20:38 +0300)
committerSebastian Reichel <sre@kernel.org>
Mon, 16 Aug 2021 15:57:02 +0000 (17:57 +0200)
commitefe2175478d5237949e33c84d9a722fc084b218c
tree1b7fb09b32517b39f6ef80c852c4c57b200e9326
parent17e7bc532cd540d0e6e2fa1af19faf74ba252051
power: supply: smb347-charger: Add missing pin control activation

Pin control needs to be activated by setting the enable bit, otherwise
hardware rejects all pin changes. Previously this stayed unnoticed on
Nexus 7 because pin control was enabled by default after rebooting from
downstream kernel, which uses driver that enables the bit and charger
registers are non-volatile until power supply (battery) is disconnected.
Configure the pin control enable bit. This fixes the potentially
never-enabled charging on devices that use pin control.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/smb347-charger.c