Skip to content

Commit d87ffe3

Browse files
Sevak Arakelyanwuliangfeng
authored andcommitted
UPSTREAM: usb: dwc2: host: Correct snpsid checking for GDFIFOCFG
GDFIFOCFG is available from IP version 2.91a. Fix the code to reflect this. Change-Id: If2115c355b383c5586833016c1f46095eb61af43 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> Signed-off-by: William Wu <william.wu@rock-chips.com> (cherry picked from commit e1f411d1b3db49a2089f47087410dcfec6564e28)
1 parent 3c5f283 commit d87ffe3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/usb/dwc2/core.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,7 @@ struct dwc2_hsotg {
900900
/* DWC OTG HW Release versions */
901901
#define DWC2_CORE_REV_2_71a 0x4f54271a
902902
#define DWC2_CORE_REV_2_90a 0x4f54290a
903+
#define DWC2_CORE_REV_2_91a 0x4f54291a
903904
#define DWC2_CORE_REV_2_92a 0x4f54292a
904905
#define DWC2_CORE_REV_2_94a 0x4f54294a
905906
#define DWC2_CORE_REV_3_00a 0x4f54300a

drivers/usb/dwc2/hcd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,9 @@ static void dwc2_config_fifos(struct dwc2_hsotg *hsotg)
510510
dwc2_readl(hsotg->regs + HPTXFSIZ));
511511

512512
if (hsotg->core_params->en_multiple_tx_fifo > 0 &&
513-
hsotg->hw_params.snpsid <= DWC2_CORE_REV_2_94a) {
513+
hsotg->hw_params.snpsid >= DWC2_CORE_REV_2_91a) {
514514
/*
515+
* This feature was implemented in 2.91a version
515516
* Global DFIFOCFG calculation for Host mode -
516517
* include RxFIFO, NPTXFIFO and HPTXFIFO
517518
*/

0 commit comments

Comments
 (0)