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

Commit 49715f8d 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: gadget: start resume sequence on remote-wakeup"

parents e38b83a2 77bcb360
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@

static void dwc3_gadget_usb2_phy_suspend(struct dwc3 *dwc, int suspend);
static void dwc3_gadget_usb3_phy_suspend(struct dwc3 *dwc, int suspend);
static void dwc3_gadget_wakeup_interrupt(struct dwc3 *dwc);

/**
 * dwc3_gadget_set_test_mode - Enables USB2 Test Modes
@@ -1581,6 +1582,14 @@ static int dwc3_gadget_wakeup(struct usb_gadget *g)
		ret = -EINVAL;
	}

	/*
	 * According to DWC3 databook, the controller does not
	 * trigger a wakeup event when remote-wakeup is used.
	 * Hence, after remote-wakeup sequence is complete, and
	 * the device is back at U0 state, it is required that
	 * the resume sequence is initiated by SW.
	 */
	dwc3_gadget_wakeup_interrupt(dwc);
out:
	spin_unlock_irqrestore(&dwc->lock, flags);