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

Commit edf37360 authored by Ashay Jaiswal's avatar Ashay Jaiswal
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>
parent becfd28d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8577,6 +8577,7 @@ static int smbchg_probe(struct spmi_device *spmi)

	rerun_hvdcp_det_if_necessary(chip);

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