Re: [PATCH V6 1/3] USB: serial: f81232: clear overrun flag
From: Oliver Neukum
Date: Wed Apr 03 2019 - 06:36:51 EST
On Mi, 2019-04-03 at 16:40 +0800, Ji-Ze Hong (Peter Hong) wrote:
> 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@xxxxxxxx>
> Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@xxxxxxxxx>
Reviewed-by: Oliver Neukum <oneukum@xxxxxxxx>