serial_core might call the .start_tx callback without any data being
available to send. In this case return early instead of going through
all the setup needed for sending which might include disabling RX in
RS485 half-duplex mode.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
struct imx_port *sport = (struct imx_port *)port;
u32 ucr1;
+ if (!sport->port.x_char && uart_circ_empty(&port->state->xmit))
+ return;
+
if (port->rs485.flags & SER_RS485_ENABLED) {
u32 ucr2;