Skip to content

Commit c087fad

Browse files
l1kgregkh
authored andcommitted
xhci: Clean up stale comment on ERST_SIZE macro
Commit ebd88cf ("xhci: Remove unused defines for ERST_SIZE and ERST_ENTRIES") removed the ERST_SIZE macro but retained a code comment explaining the quantity chosen in the macro. Remove the code comment as well. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20231019102924.2797346-11-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 08cc561 commit c087fad

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/usb/host/xhci.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,12 +1643,7 @@ struct urb_priv {
16431643
struct xhci_td td[];
16441644
};
16451645

1646-
/*
1647-
* Each segment table entry is 4*32bits long. 1K seems like an ok size:
1648-
* (1K bytes * 8bytes/bit) / (4*32 bits) = 64 segment entries in the table,
1649-
* meaning 64 ring segments.
1650-
* Reasonable limit for number of Event Ring segments (spec allows 32k)
1651-
*/
1646+
/* Reasonable limit for number of Event Ring segments (spec allows 32k) */
16521647
#define ERST_MAX_SEGS 2
16531648
/* Poll every 60 seconds */
16541649
#define POLL_TIMEOUT 60

0 commit comments

Comments
 (0)