Skip to content

Commit b16ea8b

Browse files
Thinh NguyenFelipe Balbi
authored andcommitted
usb: dwc3: Fix GDBGFIFOSPACE_TYPE values
The FIFO/Queue type values are incorrect. Correct them according to DWC_usb3 programming guide section 1.2.27 (or DWC_usb31 section 1.2.25). Additionally, this patch includes ProtocolStatusQ and AuxEventQ types. Fixes: cf6d867 ("usb: dwc3: core: add fifo space helper") Signed-off-by: Thinh Nguyen <thinhn@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
1 parent e74bd4d commit b16ea8b

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎drivers/usb/dwc3/core.h‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,15 @@
158158
#define DWC3_GDBGFIFOSPACE_TYPE(n) (((n) << 5) & 0x1e0)
159159
#define DWC3_GDBGFIFOSPACE_SPACE_AVAILABLE(n) (((n) >> 16) & 0xffff)
160160

161-
#define DWC3_TXFIFOQ 1
162-
#define DWC3_RXFIFOQ 3
163-
#define DWC3_TXREQQ 5
164-
#define DWC3_RXREQQ 7
165-
#define DWC3_RXINFOQ 9
166-
#define DWC3_DESCFETCHQ 13
167-
#define DWC3_EVENTQ 15
161+
#define DWC3_TXFIFOQ 0
162+
#define DWC3_RXFIFOQ 1
163+
#define DWC3_TXREQQ 2
164+
#define DWC3_RXREQQ 3
165+
#define DWC3_RXINFOQ 4
166+
#define DWC3_PSTATQ 5
167+
#define DWC3_DESCFETCHQ 6
168+
#define DWC3_EVENTQ 7
169+
#define DWC3_AUXEVENTQ 8
168170

169171
/* Global RX Threshold Configuration Register */
170172
#define DWC3_GRXTHRCFG_MAXRXBURSTSIZE(n) (((n) & 0x1f) << 19)

0 commit comments

Comments
 (0)