aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-01-24 04:56:11 -0500
committerFelipe Balbi <balbi@ti.com>2013-01-24 05:02:31 -0500
commit1a947746dbe1486d0e305ab512ddf085b7874cb3 (patch)
tree1189d62e54cf11936948b4b92b18c657e122667a /drivers
parent388e5c51135f817f01177c42261f1116a6d7f2ad (diff)
usb: dwc3: gadget: change HIRD threshold to 12
First of all, that 28 value makes no sense as HIRD threshold is a 4-bit value, second of all it's causing issues for OMAP5. Using 12 because commit cbc725b3 (usb: dwc3: keep default hird threshold value as 4b1100) had the intention of setting the maximum allowed value of 0xc. Also, original code has been wrong forever, so this should be backported as far back as possible. Cc: <stable@vger.kernel.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/dwc3/gadget.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 38e8d3e5dfd3..77a0013c9dd3 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -2225,8 +2225,11 @@ static void dwc3_gadget_conndone_interrupt(struct dwc3 *dwc)
2225 reg = dwc3_readl(dwc->regs, DWC3_DCTL); 2225 reg = dwc3_readl(dwc->regs, DWC3_DCTL);
2226 reg &= ~(DWC3_DCTL_HIRD_THRES_MASK | DWC3_DCTL_L1_HIBER_EN); 2226 reg &= ~(DWC3_DCTL_HIRD_THRES_MASK | DWC3_DCTL_L1_HIBER_EN);
2227 2227
2228 /* TODO: This should be configurable */ 2228 /*
2229 reg |= DWC3_DCTL_HIRD_THRES(28); 2229 * TODO: This should be configurable. For now using
2230 * maximum allowed HIRD threshold value of 0b1100
2231 */
2232 reg |= DWC3_DCTL_HIRD_THRES(12);
2230 2233
2231 dwc3_writel(dwc->regs, DWC3_DCTL, reg); 2234 dwc3_writel(dwc->regs, DWC3_DCTL, reg);
2232 } 2235 }