]> www.infradead.org Git - users/jedix/linux-maple.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>
Mon, 23 Dec 2024 17:59:44 +0000 (18:59 +0100)
commite95cb63e57381f00d9274533ea7fd0ac3bf4e5b0
treeab3f2ae38ab58b7e5106a9feaacafe65671bfe58
parent30691a59c85c48575b04e849f675660fd8060cad
8250: microchip: pci1xxxx: Add workaround for RTS bit toggle

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>
drivers/tty/serial/8250/8250_pci1xxxx.c