summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/hcd.c
diff options
context:
space:
mode:
authorSevak Arakelyan <sevaka@synopsys.com>2017-01-24 00:01:01 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-01-24 15:19:10 +0100
commite1f411d1b3db49a2089f47087410dcfec6564e28 (patch)
tree9fc685cfe24a49c701ecca1dfcdae66e288e1469 /drivers/usb/dwc2/hcd.c
parentusb: dwc2: host: use msleep() for long delay (diff)
downloadlinux-e1f411d1b3db49a2089f47087410dcfec6564e28.tar.xz
linux-e1f411d1b3db49a2089f47087410dcfec6564e28.zip
usb: dwc2: host: Correct snpsid checking for GDFIFOCFG
GDFIFOCFG is available from IP version 2.91a. Fix the code to reflect this. Signed-off-by: Sevak Arakelyan <sevaka@synopsys.com> Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/hcd.c')
-rw-r--r--drivers/usb/dwc2/hcd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index 751f0ddd741b..a2d4997d822c 100644
--- a/drivers/usb/dwc2/hcd.c
+++ b/drivers/usb/dwc2/hcd.c
@@ -494,8 +494,9 @@ static void dwc2_config_fifos(struct dwc2_hsotg *hsotg)
dwc2_readl(hsotg->regs + HPTXFSIZ));
if (hsotg->params.en_multiple_tx_fifo &&
- hsotg->hw_params.snpsid <= DWC2_CORE_REV_2_94a) {
+ hsotg->hw_params.snpsid >= DWC2_CORE_REV_2_91a) {
/*
+ * This feature was implemented in 2.91a version
* Global DFIFOCFG calculation for Host mode -
* include RxFIFO, NPTXFIFO and HPTXFIFO
*/