]> git.baikalelectronics.ru Git - kernel.git/commit
serial: fsl_lpuart: remove RTSCTS handling from get_mctrl()
authorMichael Walle <michael@walle.cc>
Wed, 12 May 2021 14:12:52 +0000 (16:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 14:08:26 +0000 (16:08 +0200)
commit40403fc2e61c8e48e14571ad2c4ac3d39578b70e
tree72931caf53abd2ec5a63b7756ca861ce708963b7
parentee10bc2bc733646d673707bc3c33748307f542ec
serial: fsl_lpuart: remove RTSCTS handling from get_mctrl()

The wrong code in set_mctrl() was already removed in commit 1fbf050c3415
("tty: serial: lpuart: Remove unnecessary code from set_mctrl"), but the
code in get_mctrl() wasn't removed. It will not return the state of the
RTS or CTS line but whether automatic flow control is enabled, which is
wrong for the get_mctrl(). Thus remove it.

Fixes: 1fbf050c3415 ("tty: serial: lpuart: Remove unnecessary code from set_mctrl")
Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20210512141255.18277-7-michael@walle.cc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c