serial: xilinx_uartps: unset STOPBRK when setting STARTBRK
authorJulien Malik <julien.malik@unseenlabs.fr>
Sat, 24 Jun 2023 21:03:23 +0000 (23:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Oct 2023 18:14:42 +0000 (20:14 +0200)
commit1ed59c5e17936c8f3a0fb7b4217af0b73298d2d7
treeb2522e80d9c78fd7c46a8779d7e4d39801aa075e
parentcee8e0cc9308ab55d4c3bd8eae5f6b4b65898e59
serial: xilinx_uartps: unset STOPBRK when setting STARTBRK

Zynq UG585 states, in chapter B.33, for XUARTPS_CR_STARTBRK:
It can only be set if STPBRK (Stop transmitter break) is not high

This fixes tcsendbreak, which otherwise does not actually break.

Signed-Off-By: Julien Malik <julien.malik@unseenlabs.fr>
Link: https://lore.kernel.org/r/20230624210323.88455-1-julien.malik@unseenlabs.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c