USB: adutux: Add waiting in transfer abortion
authorKirill Kapranov <kirill.kirillovich.kapranov@gmail.com>
Sat, 17 Feb 2018 21:01:40 +0000 (23:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 17:37:10 +0000 (09:37 -0800)
commit687ca6395f10ac8a54fd5285dda91ed9efac9e23
treeb134186b4cf748278c1d21a11c6e7255ccc63c54
parent092bd5c2b939e63e0e02249f7695ca828fa05049
USB: adutux: Add waiting in transfer abortion

Add waiting for an URB transmit finish that let the last URB to be sent
(to be not discarded) during 'release' procedure. W/o this waiting,the
last frame will be nearly always lost.

A test case: an attempt of sending a single frame:
echo -en "\001mk255" >/dev/adutux0

Signed-off-by: Kirill Kapranov <kirill.kirillovich.kapranov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/adutux.c