Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 91a5042e authored by Harry Yang's avatar Harry Yang Committed by Ashay Jaiswal
Browse files

power: smb5: update APSD result in USBIN_PLUGIN IRQ



The variable real_charge_type is a cached value to reflect the real
connected charger type based on APSD results. However, it is not
updated when APSD result status gets cleared on charger removal, the
moment when USBIN_PLUGIN_RT_STS goes low on unplug. As a result,
some times, charger type remains even after a charger is removed.

Fix it by updating real_charge_type in USBIN_PLUGIN IRQ.

Change-Id: I008aa466ef83c12a38d3d2a2d81c736d14d019c9
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent 410cb11a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment