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

Commit 675a2edd authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: phy-msm-usb: Fix deadlock in Micro-A cable disconnect"

parents 281f1385 8d3e5e4d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -801,7 +801,8 @@ static int msm_otg_set_suspend(struct usb_phy *phy, int suspend)
		case OTG_STATE_A_HOST:
			pr_debug("host bus suspend\n");
			clear_bit(A_BUS_REQ, &motg->inputs);
			if (!atomic_read(&motg->in_lpm)) {
			if (!atomic_read(&motg->in_lpm) &&
					!test_bit(ID, &motg->inputs)) {
				queue_work(system_nrt_wq, &motg->sm_work);
				/* Flush sm_work to avoid it race with
				 * subsequent calls of set_suspend.