power: supply: cros_pchg: Sync port status on resume
authorDaisuke Nojiri <dnojiri@chromium.org>
Mon, 17 Apr 2023 22:16:10 +0000 (15:16 -0700)
committerSebastian Reichel <sre@kernel.org>
Mon, 8 May 2023 12:31:24 +0000 (14:31 +0200)
commit97dd69b1ade166f3200546e5fb7984986cafcf81
treeaf72d9fa8d8f1c8237509779bb4910c7a267990c
parentd41dab4c031edaa460a484113394327aa52dc0bd
power: supply: cros_pchg: Sync port status on resume

When a stylus is removed (or attached) during suspend, the device detach
(or attach) events can be lost. This patch makes the peripheral device
charge driver retrieve the latest status from the EC on resume.

BUG=b:276414488
TEST=Redrix

Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cros_peripheral_charger.c