aboutsummaryrefslogtreecommitdiff
path: root/drivers/sh
diff options
context:
space:
mode:
authorSergey Organov2020-01-29 14:21:46 +0300
committerFelipe Balbi2020-02-11 08:45:45 +0200
commite4bfded56cf39b8d02733c1e6ef546b97961e18a (patch)
tree4c64ab8c2e1a830d13ad6aa8c13175f1fcb1edc8 /drivers/sh
parent43d565727a3a6fd24e37c7c2116475106af71806 (diff)
usb: gadget: serial: fix Tx stall after buffer overflow
Symptom: application opens /dev/ttyGS0 and starts sending (writing) to it while either USB cable is not connected, or nobody listens on the other side of the cable. If driver circular buffer overflows before connection is established, no data will be written to the USB layer until/unless /dev/ttyGS0 is closed and re-opened again by the application (the latter besides having no means of being notified about the event of establishing of the connection.) Fix: on open and/or connect, kick Tx to flush circular buffer data to USB layer. Signed-off-by: Sergey Organov <sorganov@gmail.com> Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/sh')
0 files changed, 0 insertions, 0 deletions