mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
serial: omap: Fix EFR write on RTS deassertion
commit2a71de2f73upstream. Commit348f9bb31c("serial: omap: Fix RTS handling") sought to enable auto RTS upon manual RTS assertion and disable it on deassertion. However it seems the latter was done incorrectly, it clears all bits in the Extended Features Register *except* auto RTS. Fixes:348f9bb31c("serial: omap: Fix RTS handling") Cc: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2cfbb32f6c
commit
70eb4608bb
@@ -693,7 +693,7 @@ static void serial_omap_set_mctrl(struct uart_port *port, unsigned int mctrl)
|
||||
if ((mctrl & TIOCM_RTS) && (port->status & UPSTAT_AUTORTS))
|
||||
up->efr |= UART_EFR_RTS;
|
||||
else
|
||||
up->efr &= UART_EFR_RTS;
|
||||
up->efr &= ~UART_EFR_RTS;
|
||||
serial_out(up, UART_EFR, up->efr);
|
||||
serial_out(up, UART_LCR, lcr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user