Skip to content
Commit 40686d87 authored by Jonathan Bell's avatar Jonathan Bell Committed by Dom Cobley
Browse files

usb: xhci: expand the scope of XHCI_VLI_SS_BULK_OUT_BUG



Further testing has revealed that any TRB with buffer length that is not
a multiple of wMaxPacket and not the last TRB in a TD can cause data
corruption.

Work around this by linearising any vulnerable Bulk OUT scatter-gather
URBs prior to URB submission. Normal XHCI TRB formation will split
buffers on 64K boundaries and align TRBs prior to a Link TRB to
wMaxPacket, so keep the residue TRB generation added with the first
iteration of the quirk which will guarantee the last TRB is the only TRB
with an odd buffer size.

Signed-off-by: default avatarJonathan Bell <jonathan@raspberrypi.com>
parent 3066be08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment