OSDN Git Service

tty: serial: imx: allow breaks to be received when using dma
authorTroy Kisky <troy.kisky@boundarydevices.com>
Sat, 24 Feb 2018 02:27:50 +0000 (18:27 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Feb 2018 12:44:33 +0000 (13:44 +0100)
commit45ca673e81df80f24a575e0a9a4e33c1f865ad08
tree7fb48bb86eeff453b54b8f3367e5b97f0a62c137
parent914eaf935ec78d3a3ce03751b1e0f8395035d94a
tty: serial: imx: allow breaks to be received when using dma

This allows me to login after sending a break when service
serial-getty@ttymxc0.service is running

The "tty_insert_flip_char(port, 0, TTY_BREAK)" in clear_rx_errors
fixes this by allowing the higher layers to see a break.

Also, call uart_handle_break to handle possible
"secure attention key."

FYI: Martin said the ROM sdma firmware works with this patch,
but external sdma firmware still does not send breaks on a
i.mx6UL

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Tested-by: Martin Hicks <mort@bork.org>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c