]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: xhci: move link chain bit quirk checks into one helper function.
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Thu, 8 Jan 2026 08:49:26 +0000 (00:49 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Jan 2026 14:19:25 +0000 (15:19 +0100)
commit272b7e48d0eaebbb206e787272c40cddb73b8475
treee1598317da262ad17b88b420cf762377570bb399
parentaf9d88cbf0fce52f465978360542ef679713491f
usb: xhci: move link chain bit quirk checks into one helper function.

commit 7476a2215c07703db5e95efaa3fc5b9f957b9417 upstream.

Older 0.95 xHCI hosts and some other specific newer hosts require the
chain bit to be set for Link TRBs even if the link TRB is not in the
middle of a transfer descriptor (TD).

move the checks for all those cases  into one xhci_link_chain_quirk()
function to clean up and avoid code duplication.

No functional changes.

[skip renaming chain_links flag, reword commit message -Mathias]

Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240626124835.1023046-10-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[Shivani: Modified to apply on v5.10.y-v6.1.y]
Signed-off-by: Shivani Agarwal <shivani.agarwal@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h