]> Git Repo - linux.git/commit
serial: mxs-auart: fix tx
authorJiri Slaby (SUSE) <[email protected]>
Thu, 1 Feb 2024 10:55:57 +0000 (11:55 +0100)
committerGreg Kroah-Hartman <[email protected]>
Tue, 6 Feb 2024 14:42:11 +0000 (14:42 +0000)
commit7be50f2e8f20fc2299069b28dea59a28e3abe20a
tree8db4fe081db4bd9a9fb38eecc93f8afba5cf3dbf
parent3ee07964d407411fd578a3bc998de44fd64d266a
serial: mxs-auart: fix tx

Emil reports:
  After updating Linux on an i.MX28 board, serial communication over
  AUART broke. When I TX from the board and measure on the TX pin, it
  seems like the HW fifo is not emptied before the transmission is
  stopped.

MXS performs weird things with stop_tx(). The driver makes it
conditional on uart_tx_stopped().

So the driver needs special handling. Pass the brand new UART_TX_NOSTOP
to uart_port_tx_flags() and handle the stop on its own.

Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]>
Reported-by: Emil Kronborg <[email protected]>
Cc: stable <[email protected]>
Fixes: 2d141e683e9a ("tty: serial: use uart_port_tx() helper")
Closes: https://lore.kernel.org/all/miwgbnvy3hjpnricubg76ytpn7xoceehwahupy25bubbduu23s@om2lptpa26xw/
Tested-by: Stefan Wahren <[email protected]>
Tested-by: Emil Kronborg <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/serial/mxs-auart.c
This page took 0.056506 seconds and 4 git commands to generate.