summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-10-07 21:55:04 +0200
committerFelipe Balbi <balbi@ti.com>2011-12-12 10:48:10 +0100
commit6c167fc9b0c23ead791edb94cf4debb6b8e534b5 (patch)
tree1ee2f57ad99cc6a62085c0a433fbc56c17bbf284 /drivers/usb/dwc3/gadget.c
parentusb: dwc3: gadget: don't disable endpoints on exit (diff)
downloadlinux-6c167fc9b0c23ead791edb94cf4debb6b8e534b5.tar.xz
linux-6c167fc9b0c23ead791edb94cf4debb6b8e534b5.zip
usb: dwc3: allow forcing a maximum speed
this is mainly for testing. In order to be able to test if we're enumerating correctly on all speeds, let that be controlled by a module parameter. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r--drivers/usb/dwc3/gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 46ed15bca19f..807737aec00e 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -1183,7 +1183,7 @@ static int dwc3_gadget_start(struct usb_gadget *g,
reg = dwc3_readl(dwc->regs, DWC3_DCFG);
reg &= ~(DWC3_DCFG_SPEED_MASK);
- reg |= DWC3_DCFG_SUPERSPEED;
+ reg |= dwc->maximum_speed;
dwc3_writel(dwc->regs, DWC3_DCFG, reg);
dwc->start_config_issued = false;