Do not try to stop and reset endpoints if USB transfers are aborted
authormpi <mpi@openbsd.org>
Wed, 21 Jan 2015 14:02:33 +0000 (14:02 +0000)
committermpi <mpi@openbsd.org>
Wed, 21 Jan 2015 14:02:33 +0000 (14:02 +0000)
commit7ff307ae954db12cebe37bdf6861a1cc9696014e
treea72a0b1c02d8eefff5c815e97058ef2bf8e8871c
parent9c0a6fc0ac67d853fd5324b259bbc555d725a5c0
Do not try to stop and reset endpoints if USB transfers are aborted
because the HC has been shut down (during suspend/hibernate) or
removed (PCIe card).

In both cases the hardware wont complete the commands, resulting in
timeouts.  Instead just do the software part of the abort process.

Unbreak suspend/resume with USB a device connected to xhci(4) as
reported by Fabian Raetz on bugs@.
sys/dev/usb/xhci.c