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>
Wed, 14 Jul 2021 14:56:33 +0000 (16:56 +0200)
commit5dcff72fe42a194852a132fe70018be5eddd00af
tree939a316b271a5c3857fd57dde5951ae9dca9483c
parent685d53abc9187824d52ab7eaa2d65eeed60f860b
serial: fsl_lpuart: remove RTSCTS handling from get_mctrl()

[ Upstream commit e60c2991f18bf221fa9908ff10cb24eaedaa9bae ]

The wrong code in set_mctrl() was already removed in commit 2b30efe2e88a
("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: 2b30efe2e88a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/fsl_lpuart.c