android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sergey Organov 5d48ee3211 usb: gadget: serial: fix Tx stall after buffer overflow
[ Upstream commit e4bfded56cf39b8d02733c1e6ef546b97961e18a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-03-12 13:00:10 +01:00
..
atm USB: atm: ueagle-atm: add missing endpoint check 2019-12-17 19:55:44 +01:00
c67x00
cdns3 usb: cdns3: should not use the same dev_id for shared interrupt handler 2020-01-14 20:08:29 +01:00
chipidea usb: chipidea: host: Disable port power only if previously enabled 2020-01-14 20:08:19 +01:00
class
common usb: common: usb-conn-gpio: Don't log an error on probe deferral 2019-12-17 19:55:39 +01:00
core USB: hub: Fix the broken detection of USB3 device in SMSC hub 2020-02-28 17:22:16 +01:00
dwc2 usb: dwc2: Fix in ISOC request length checking 2020-02-28 17:22:26 +01:00
dwc3 usb: dwc3: debug: fix string position formatting mixup with ret and len 2020-02-28 17:22:16 +01:00
early
gadget usb: gadget: serial: fix Tx stall after buffer overflow 2020-03-12 13:00:10 +01:00
host usb: host: xhci: update event ring dequeue pointer on purpose 2020-02-28 17:22:15 +01:00
image
isp1760
misc USB: misc: iowarrior: add support for the 100 device 2020-02-28 17:22:14 +01:00
mon usb: mon: Fix a deadlock in usbmon between mmap and read 2019-12-17 19:55:49 +01:00
mtu3
musb usb: musb: omap2430: Get rid of musb .set_vbus for omap2430 glue 2020-02-24 08:36:49 +01:00
phy
renesas_usbhs usb: renesas_usbhs: add suspend event support in gadget mode 2019-12-31 16:43:37 +01:00
roles usb: roles: fix a potential use after free 2019-12-17 19:55:46 +01:00
serial USB: serial: ir-usb: fix IrLAP framing 2020-02-01 09:34:32 +00:00
storage usb: uas: fix a plug & unplug racing 2020-02-28 17:22:16 +01:00
typec usb: typec: tcpci: mask event interrupts when remove driver 2020-02-11 04:35:10 -08:00
usbip usbip: Fix error path of vhci_recv_ret_submit() 2019-12-31 16:46:05 +01:00
Kconfig
Makefile
usb-skeleton.c