Resolve data toggle out of sync problem for ugen(4) and uhidev(4) devices
authormglocker <mglocker@openbsd.org>
Mon, 25 Jan 2021 14:14:42 +0000 (14:14 +0000)
committermglocker <mglocker@openbsd.org>
Mon, 25 Jan 2021 14:14:42 +0000 (14:14 +0000)
commit5d08e3d383078899c5a226c8b55bea15031b733d
tree4d405953f4079442b1c71d9e6f8107a8a70b83e6
parentd6d3599dbc0aa04884ef6f62daba043614d35f3c
Resolve data toggle out of sync problem for ugen(4) and uhidev(4) devices
on xhci(4) controllers by clearing the interface endpoints before opening
the pipes.

Tested by Mikolaj Kucharski for ugen(4) and gnezdo@ for uhidev(4), plus
myself for both.

ok mpi@
sys/dev/usb/ugen.c
sys/dev/usb/uhidev.c