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

Commit e63743aa 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: allow remote-wakeup for SS-USB"

parents 17acbb49 cf869998
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -1518,7 +1518,6 @@ static int dwc3_gadget_wakeup(struct usb_gadget *g)
	int			ret = 0;

	u8			link_state;
	u8			speed;

	spin_lock_irqsave(&dwc->lock, flags);

@@ -1530,13 +1529,6 @@ static int dwc3_gadget_wakeup(struct usb_gadget *g)
	 */
	reg = dwc3_readl(dwc->regs, DWC3_DSTS);

	speed = reg & DWC3_DSTS_CONNECTSPD;
	if (speed == DWC3_DSTS_SUPERSPEED) {
		dev_dbg(dwc->dev, "no wakeup on SuperSpeed\n");
		ret = -EINVAL;
		goto out;
	}

	link_state = DWC3_DSTS_USBLNKST(reg);

	switch (link_state) {