OSDN Git Service

serial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 4 Jan 2018 17:58:34 +0000 (15:58 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:39:23 +0000 (17:39 +0100)
commite6e7d6baa61a57bf61d0d3647a5037ad1013f4db
tree4d9ff205a06302ed3a7a112f0d6644781e8121c2
parent24293a3970e11889cc123d3f0cf9bb9bbb2cf34f
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