serial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS
commit68c610bf1e38e3a01a17bd101b089102a76d03b3
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 4 Jan 2018 17:58:34 +0000 (4 15:58 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:58:42 +0000 (3 17:58 +0100)
treeb676611daf0343b95557c02d37e79520ebddb465
parent150becd9a389d04fd73a0f7feffbcba4d88aa11b
serial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS

commit 38b1f0fb42f772b8c9aac53593883a18ff5eb9d7 upstream.

The wakeup mechanism via RTSDEN bit relies on the system using the RTS/CTS
lines, so only allow such wakeup method when the system actually has
RTS/CTS support.

Fixes: bc85734b126f ("serial: imx: allow waking up on RTSD")
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Martin Kaiser <martin@kaiser.cx>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c