]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Rewrite ehci_abort_xfer() to use the method hinted at in the EHCI spec.
authorjulian <julian@FreeBSD.org>
Wed, 29 Dec 2004 01:21:18 +0000 (01:21 +0000)
committerjulian <julian@FreeBSD.org>
Wed, 29 Dec 2004 01:21:18 +0000 (01:21 +0000)
commitad31868542eaea57597d6fb31141e0923791fe71
tree404ea572cc7224ed148cb9710bad8321e9e692e4
parenteef75dc3e478027ed5b51ae8bb42c912ffbe75c9
Rewrite ehci_abort_xfer() to use the method hinted at in the EHCI spec.
to remove a transaction from the async schedule. The previous method didn't
work well and led to the hardware writing to free'd buffers etc, as
it didn't always know that the transaction had been aborted.

Written after consultation with David Brownell who wrote the Linux
EHCI driver.

As part of this give the sqh structure a "previous" pointer.

MFC after: 1 week
sys/dev/usb/ehci.c
sys/dev/usb/ehcivar.h