diff options
author | Felipe Balbi <balbi@ti.com> | 2011-10-07 15:55:04 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-12 04:48:10 -0500 |
commit | 6c167fc9b0c23ead791edb94cf4debb6b8e534b5 (patch) | |
tree | 1ee2f57ad99cc6a62085c0a433fbc56c17bbf284 /drivers/usb/dwc3/gadget.c | |
parent | b2c2271c826589c5c5b285a5a32e158d36d263d9 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 46ed15bca19..807737aec00 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, | |||
1183 | 1183 | ||
1184 | reg = dwc3_readl(dwc->regs, DWC3_DCFG); | 1184 | reg = dwc3_readl(dwc->regs, DWC3_DCFG); |
1185 | reg &= ~(DWC3_DCFG_SPEED_MASK); | 1185 | reg &= ~(DWC3_DCFG_SPEED_MASK); |
1186 | reg |= DWC3_DCFG_SUPERSPEED; | 1186 | reg |= dwc->maximum_speed; |
1187 | dwc3_writel(dwc->regs, DWC3_DCFG, reg); | 1187 | dwc3_writel(dwc->regs, DWC3_DCFG, reg); |
1188 | 1188 | ||
1189 | dwc->start_config_issued = false; | 1189 | dwc->start_config_issued = false; |