Searched hist:ebfb319bb601e501f77809a83b0b69b529c22a8d (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/usb/serial/ |
H A D | cp210x.c | diff ebfb319bb601e501f77809a83b0b69b529c22a8d Wed Oct 28 22:02:03 CET 2015 Konstantin Shkolnyy <konstantin.shkolnyy@gmail.com> USB: cp210x: flush device queues at close
Flush all device queues at close in order to work around a cp2108 Tx queue bug.
Occasionally, writing data and immediately closing the port makes cp2108 stop responding. The device has to be unplugged to clear the error. The failure is induced by shutting down the device while its Tx queue still has unsent data. This condition is avoided by issuing PURGE command from the close() callback.
This change is applied to all cp210x devices. Clearing internal queues on close is generally good.
Signed-off-by: Konstantin Shkolnyy <konstantin.shkolnyy@gmail.com> [johan: amend commit message ] Signed-off-by: Johan Hovold <johan@kernel.org>
|