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

Commit dfe3d45c authored by Nicholas Troast's avatar Nicholas Troast
Browse files

power: qcom: smb-lib: check for USB removal after legacy WA



If the USB Type-C cable is removed while the legacy workaround is
running the IRQ will be ignored and the removal will not be detected.

Check for USB Type-C removal by manually triggering the IRQ when the
legacy workaround finishes.

Change-Id: Ie2e399915da88a9d7fc480767e4fad8abf23024d
Signed-off-by: default avatarNicholas Troast <ntroast@codeaurora.org>
parent 28bf2d8b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4228,6 +4228,7 @@ static void smblib_legacy_detection_work(struct work_struct *work)

unlock:
	chg->typec_en_dis_active = 0;
	smblib_usb_typec_change(chg);
	mutex_unlock(&chg->lock);
}