commit | 48669b69e3ecbabbd2936fbbe095901ba83a37f9 | [log] [tgz] |
---|---|---|
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | Fri Mar 02 11:07:29 2018 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Mar 09 10:21:02 2018 -0800 |
tree | 098d6397cf766169447427566f0fcebb5d899fba | |
parent | 1866541492641c02874bf51f9d8712b5510f2c64 [diff] |
serial: imx: don't prepare to send if no data is available 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>