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

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

Merge "USB: dwc3: Don't handle USB/Link Status change event for RESUME"

parents 69a841d2 b217f500
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2802,10 +2802,13 @@ static void dwc3_gadget_linksts_change_interrupt(struct dwc3 *dwc,
		}
	}

	/*
	 * Notify suspend only to gadget driver, but not resume. Resume is
	 * notified as part of wakeup event in dwc3_gadget_wakeup_interrupt().
	 */
	if (next == DWC3_LINK_STATE_U0) {
		if (dwc->link_state == DWC3_LINK_STATE_U3) {
			dbg_event(0xFF, "RESUME", 0);
			dwc->gadget_driver->resume(&dwc->gadget);
		}
	} else if (next == DWC3_LINK_STATE_U3) {
		dbg_event(0xFF, "SUSPEND", 0);