]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_omap: Fix gpio check for auto RTS/CTS
authorAdam Ford <aford173@gmail.com>
Sun, 6 Oct 2019 16:33:12 +0000 (11:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 11:21:54 +0000 (13:21 +0200)
commit5a8a5373becfaa326444306795df422ad69f84b7
tree20e5f496f9cb884edb9b2f199ddf6d9c0b175feb
parentdb283dd45cc0e580b6122fed989edb1d0d63ba5c
serial: 8250_omap: Fix gpio check for auto RTS/CTS

There are two checks to see if the manual gpio is configured, but
these the check is seeing if the structure is NULL instead it
should check to see if there are CTS and/or RTS pins defined.

This patch uses checks for those individual pins instead of
checking for the structure itself to restore auto RTS/CTS.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Link: https://lore.kernel.org/r/20191006163314.23191-2-aford173@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_omap.c