]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
USB: serial: f81232: clear overrun flag
authorJi-Ze Hong (Peter Hong) <hpeter@gmail.com>
Tue, 30 Apr 2019 01:22:30 +0000 (09:22 +0800)
committerJohan Hovold <johan@kernel.org>
Fri, 3 May 2019 07:19:54 +0000 (09:19 +0200)
commit1c6b7ab2dd0763657fc7cac562976fa01772d040
treef34149358c77b0305ee7421432f896d4182d91dd
parent804dbee1e49774918339c1e5a87400988c0819e8
USB: serial: f81232: clear overrun flag

The F81232 will report data and LSR with bulk like following format:
bulk-in data: [LSR(1Byte)+DATA(1Byte)][LSR(1Byte)+DATA(1Byte)]...

LSR will auto clear frame/parity/break error flag when reading by H/W,
but overrrun will only cleared when reading LSR. So this patch add a
worker to read LSR when overrun and flush the worker on close() &
suspend().

Cc: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/f81232.c