]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
8250: microchip: pci1xxxx: Add workaround for RTS bit toggle
authorRengarajan S <rengarajan.s@microchip.com>
Wed, 18 Dec 2024 09:40:17 +0000 (15:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 13:01:25 +0000 (14:01 +0100)
commit324785dc9f4319247d838b74db8093d6f69d3050
tree3684b01b88f4274409c4f4bf181be56258a5d3ad
parent1883eaf9b5dd4f1368a374e53c947737e9cecf81
8250: microchip: pci1xxxx: Add workaround for RTS bit toggle

[ Upstream commit e95cb63e57381f00d9274533ea7fd0ac3bf4e5b0 ]

In the B0 revision, the RTS pin remains high due to incorrect hardware
mapping. To address this issue, enable auto-direction control with the
RTS bit in ADCL_CFG_REG. This configuration ensures that the RTS pin
goes low when the terminal is opened and high when the terminal is
closed. Additionally, we reset the step counter for Rx and Tx engines
by writing into FRAC_DIV_CFG_REG.

Signed-off-by: Rengarajan S <rengarajan.s@microchip.com>
Link: https://lore.kernel.org/r/20241218094017.18290-1-rengarajan.s@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/8250/8250_pci1xxxx.c