usb: dwc2: host: Correct snpsid checking for GDFIFOCFG
authorSevak Arakelyan <sevaka@synopsys.com>
Mon, 23 Jan 2017 23:01:01 +0000 (15:01 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 14:19:10 +0000 (16:19 +0200)
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>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/hcd.c

index a473853..5370e64 100644 (file)
@@ -940,6 +940,7 @@ struct dwc2_hsotg {
        /* DWC OTG HW Release versions */
 #define DWC2_CORE_REV_2_71a    0x4f54271a
 #define DWC2_CORE_REV_2_90a    0x4f54290a
+#define DWC2_CORE_REV_2_91a    0x4f54291a
 #define DWC2_CORE_REV_2_92a    0x4f54292a
 #define DWC2_CORE_REV_2_94a    0x4f54294a
 #define DWC2_CORE_REV_3_00a    0x4f54300a
index 751f0dd..a2d4997 100644 (file)
@@ -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
                 */