diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2018-03-02 11:07:29 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-09 10:21:02 -0800 |
commit | 48669b69e3ecbabbd2936fbbe095901ba83a37f9 (patch) | |
tree | 098d6397cf766169447427566f0fcebb5d899fba /mm/page_io.c | |
parent | 1866541492641c02874bf51f9d8712b5510f2c64 (diff) | |
download | blackbird-op-linux-48669b69e3ecbabbd2936fbbe095901ba83a37f9.tar.gz blackbird-op-linux-48669b69e3ecbabbd2936fbbe095901ba83a37f9.zip |
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>
Diffstat (limited to 'mm/page_io.c')
0 files changed, 0 insertions, 0 deletions