usb: abort control data in/out on reset or when receiving another SETUP.

This removes the horrible timeout hack.
This commit is contained in:
Dario Nieuwenhuis
2022-04-06 03:14:22 +02:00
parent f6d11dfba5
commit 22a47aeeb2
3 changed files with 50 additions and 31 deletions

View File

@ -147,7 +147,7 @@ pub trait ControlPipe {
type DataOutFuture<'a>: Future<Output = Result<usize, ReadError>> + 'a
where
Self: 'a;
type DataInFuture<'a>: Future<Output = ()> + 'a
type DataInFuture<'a>: Future<Output = Result<(), WriteError>> + 'a
where
Self: 'a;