Mathias Nyman e2d3ac9cd9 xhci: expand next_trb() helper to support more ring types
The next_trb() helper relies on a link TRB at the end of a ring segment
to know a segment ends. This works well with transfer rings that use
link trbs, but not with event rings.

Event rings segments are always filled by host to segment size
before moving to next segment. It does not use link TRBs

Check for both link trb and full segment in next_trb() helper to
support event rings.

Useful if several interrupters with several event rings are supported.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20231019102924.2797346-4-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-21 12:38:53 +02:00
..
2022-09-01 16:08:29 +02:00
2023-05-29 15:28:34 +01:00
2023-03-21 14:06:11 +01:00
2023-02-01 17:23:38 +01:00
2023-05-28 15:25:53 +01:00
2023-07-31 09:36:55 +02:00
2023-10-16 17:36:12 +02:00