From a1ee10d4ccd03fa23f47c805b8d79c90c150bd19 Mon Sep 17 00:00:00 2001 From: Bar Weiner Date: Thu, 3 Apr 2014 12:47:51 +0300 Subject: [PATCH] usb: dwc3: gadget: allow remote-wakeup for SS-USB Remove the restriction in the code that disables the possibility of device remote wakeup in SS-USB. Originally, this restriction was coded since suspend/resume in SS-USB is expected to be performed at the function level, rather than the device level. However, the suspend is currently done at the device level, and therefore the corresponding remote wakeup should also follow in suit. The concept of function suspend/resume may be revisited in the future. Change-Id: If071f38c03cf46290536cafad1a13a6818088eb7 Signed-off-by: Bar Weiner --- drivers/usb/dwc3/gadget.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 7d40c92b3efb..43e1e87cc1e8 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1387,7 +1387,6 @@ static int dwc3_gadget_wakeup(struct usb_gadget *g) int ret = 0; u8 link_state; - u8 speed; spin_lock_irqsave(&dwc->lock, flags); @@ -1399,13 +1398,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) {