Skip to content

Commit e71d363

Browse files
author
Felipe Balbi
committed
usb: dwc3: core: avoid Overflow events
Now that we're handling so many transfers at a time and for some dwc3 revisions LPM events *must* be enabled, we can fall into a situation where too many events fire and we start receiving Overflow events. Let's do what XHCI does and allocate a full page for the Event Ring, this will avoid any future issues. Cc: <[email protected]> # v4.9 Signed-off-by: Felipe Balbi <[email protected]>
1 parent d621459 commit e71d363

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/usb/dwc3/core.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@
4545
#define DWC3_XHCI_RESOURCES_NUM 2
4646

4747
#define DWC3_SCRATCHBUF_SIZE 4096 /* each buffer is assumed to be 4KiB */
48-
#define DWC3_EVENT_SIZE 4 /* bytes */
49-
#define DWC3_EVENT_MAX_NUM 64 /* 2 events/endpoint */
50-
#define DWC3_EVENT_BUFFERS_SIZE (DWC3_EVENT_SIZE * DWC3_EVENT_MAX_NUM)
48+
#define DWC3_EVENT_BUFFERS_SIZE 4096
5149
#define DWC3_EVENT_TYPE_MASK 0xfe
5250

5351
#define DWC3_EVENT_TYPE_DEV 0

0 commit comments

Comments
 (0)