CVSROOT:        /cvs
Module name:    src
Changes by:     patr...@cvs.openbsd.org 2019/02/26 22:22:37

Modified files:
        sys/dev/usb    : xhci.c 

Log message:
Make xhci_ring_produce() check the previous TRB to find out if it
needs the Chain Bit set or not instead of using the last parameter,
which is used to mark the last TRB in a USB transfer, not in a TD.
To make that work we need to setup the recently acquired TRB before
calling xhci_xfer_get_trb() the next time.  Thus setting up the
initial TRB has to happen right away.  To kick the transfer off we
simply flip the toggle bit on the first TRB right at the end.

Fixes regression for jcs@, dhill@ and stsp@
Initially discussed with mpi@
ok stsp@

Reply via email to