summaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2022-09-06 14:21:26 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-08 11:11:41 +0200
commit2a4c619a87ddf558082a1dd6f2b0cad3bd4623f5 (patch)
tree68142005bdba8c5d02b2f3ab0f0003e08916d33f /lib/mpi/mpiutil.c
parent06a84bda0a0876dc0ba358e47ff51e5e658ed374 (diff)
USB: serial: ch341: fix lost character on LCR updates
commit 8e83622ae7ca481c76c8fd9579877f6abae64ca2 upstream. Disable LCR updates for pre-0x30 devices which use a different (unknown) protocol for line control and where the current register write causes the next received character to be lost. Note that updating LCR using the INIT command has no effect on these devices either. Reported-by: Jonathan Woithe <jwoithe@just42.net> Tested-by: Jonathan Woithe <jwoithe@just42.net> Link: https://lore.kernel.org/r/Ys1iPTfiZRWj2gXs@marvin.atrad.com.au Fixes: 4e46c410e050 ("USB: serial: ch341: reinitialize chip on reconfiguration") Fixes: 55fa15b5987d ("USB: serial: ch341: fix baud rate and line-control handling") Cc: stable@vger.kernel.org # 4.10 Signed-off-by: Johan Hovold <johan@kernel.org> [ johan: adjust context to 5.15 ] Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions