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

Commit 6e13527e 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: Handle host resume after failed remote wakeup-up"

parents 12735d6b b6862cee
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3632,6 +3632,13 @@ static void dwc3_process_event_entry(struct dwc3 *dwc,
	/* Endpoint IRQ, handle it and return early */
	if (event->type.is_devspec == 0) {
		/* depevt */
		/* If remote-wakeup attempt by device had failed, then core
		 * wouldn't give wakeup event after resume. Handle that
		 * here on ep event which indicates that bus is resumed.
		 */
		if (dwc->b_suspend &&
		    dwc3_get_link_state(dwc) == DWC3_LINK_STATE_U0)
			dwc3_gadget_wakeup_interrupt(dwc, false);
		return dwc3_endpoint_interrupt(dwc, &event->depevt);
	}