power: supply: cpcap-charger: Fix flakey reboot with charger connected
authorTony Lindgren <tony@atomide.com>
Sun, 10 Jan 2021 19:53:51 +0000 (21:53 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 14 Jan 2021 22:42:42 +0000 (23:42 +0100)
commit2828ffc2a276e73f8f3182b3385d7f1989178043
treed78b2a6d3f311017e5dc63f274c903653d1c1aff
parent97456a24acb41b74ab6910f40fb8f09b206fd3b5
power: supply: cpcap-charger: Fix flakey reboot with charger connected

If we have a USB charger connected, reboot is flakey and often fails to
reboot the device with the charger LED staying on.

Let's fix this by implementing .shutdown.

Cc: Arthur Demchenkov <spinal.by@gmail.com>
Cc: Carl Philipp Klemm <philipp@uvos.xyz>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cpcap-charger.c