serial: imx: Enable RTSD only when needed
authorNandor Han <nandor.han@ge.com>
Wed, 28 Jun 2017 13:59:36 +0000 (15:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Jun 2017 15:08:01 +0000 (17:08 +0200)
commit6376cd39ea0b9a56c3ddfb8c794b7322a7029b63
tree1fb9d5c8fe679a3deeb2241209f989f60b0b1e83
parent5ac88295fc8e128717e08eca9726549215a2fa70
serial: imx: Enable RTSD only when needed

Currently, this IRQ is always enabled. Some devices might mux these pins
to other I/Os, like I2C. This could lead to spurious interrupts.

This commit makes this IRQ optional, by using the field have_rtscts.

Signed-off-by: Nandor Han <nandor.han@ge.com>
Signed-off-by: Romain Perier <romain.perier@collabora.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c