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

Commit af034fb4 authored by Ashay Jaiswal's avatar Ashay Jaiswal Committed by Bernhard Thoben
Browse files

power: qpnp-smbcharger: handle charger removal during APSD re-run



During APSD re-run software ignores all USB insertion/removal
interrupts, there could be a possibility of actual removal of
USB during APSD re-run which will be missed by software.
Fix this by checking and updating USB status after APSD re-run.

Change-Id: I25248ffd5b5a4c2831460605fed402381961f41d
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
[Resolved trivial merge conflicts]
Signed-off-by: default avatarAndrey Cherepkov <andreiskull@gmail.com>
parent 6b09671b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6910,6 +6910,7 @@ static int smbchg_probe(struct spmi_device *spmi)

	power_supply_set_present(chip->usb_psy, chip->usb_present);

	update_usb_status(chip, is_usb_present(chip), false);
	dump_regs(chip);
	create_debugfs_entries(chip);
	dev_info(chip->dev,