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

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

Merge "dwc3: gadget: Initiate remote wakeup only if configuration allows"

parents 174faf3c 383e9017
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1486,9 +1486,10 @@ static int dwc3_gadget_ep_queue(struct usb_ep *ep, struct usb_request *request,
	}

	if (dwc3_gadget_is_suspended(dwc)) {
		if (dwc->gadget.remote_wakeup)
			dwc3_gadget_wakeup(&dwc->gadget);
		spin_unlock_irqrestore(&dwc->lock, flags);
		return -EAGAIN;
		return dwc->gadget.remote_wakeup ? -EAGAIN : -ENOTSUPP;
	}

	dev_vdbg(dwc->dev, "queing request %p to %s length %d\n",