Skip to content

Commit f2216e3

Browse files
Thinh Nguyengregkh
authored andcommitted
usb: dwc3: Fix GDBGFIFOSPACE_TYPE values
commit b16ea8b upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3914aae commit f2216e3

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
@@ -166,13 +166,15 @@
166166
#define DWC3_GDBGFIFOSPACE_TYPE(n) (((n) << 5) & 0x1e0)
167167
#define DWC3_GDBGFIFOSPACE_SPACE_AVAILABLE(n) (((n) >> 16) & 0xffff)
168168

169-
#define DWC3_TXFIFOQ 1
170-
#define DWC3_RXFIFOQ 3
171-
#define DWC3_TXREQQ 5
172-
#define DWC3_RXREQQ 7
173-
#define DWC3_RXINFOQ 9
174-
#define DWC3_DESCFETCHQ 13
175-
#define DWC3_EVENTQ 15
169+
#define DWC3_TXFIFOQ 0
170+
#define DWC3_RXFIFOQ 1
171+
#define DWC3_TXREQQ 2
172+
#define DWC3_RXREQQ 3
173+
#define DWC3_RXINFOQ 4
174+
#define DWC3_PSTATQ 5
175+
#define DWC3_DESCFETCHQ 6
176+
#define DWC3_EVENTQ 7
177+
#define DWC3_AUXEVENTQ 8
176178

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

0 commit comments

Comments
 (0)