]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 08:00:29 +0000 (10:00 +0200)
commit8437fe52f732fe79ff04bac6959e4e3342fe2cbd
treeef1e3fd2732868763752d5e9708dcd090a972dd6
parent54799262c342face34f7472f5319255c4d8f9ac8
power: supply: smb347-charger: Add missing pin control activation

[ Upstream commit efe2175478d5237949e33c84d9a722fc084b218c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/power/supply/smb347-charger.c