mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
omap-serial: Allow IXON and IXOFF to be disabled.
Fixes logic bug that software flow control cannot be disabled, because serial_omap_configure_xonxoff() is not called if both IXON and IXOFF bits are cleared. Signed-off-by: Nick Pelly <[email protected]> Acked-by: Govindraj.R <[email protected]> Tested-by: Govindraj.R <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
0055197e98
commit
b280a97d1c
1 changed files with 1 additions and 2 deletions
|
|
@ -806,8 +806,7 @@ serial_omap_set_termios(struct uart_port *port, struct ktermios *termios,
|
|||
|
||||
serial_omap_set_mctrl(&up->port, up->port.mctrl);
|
||||
/* Software Flow Control Configuration */
|
||||
if (termios->c_iflag & (IXON | IXOFF))
|
||||
serial_omap_configure_xonxoff(up, termios);
|
||||
serial_omap_configure_xonxoff(up, termios);
|
||||
|
||||
spin_unlock_irqrestore(&up->port.lock, flags);
|
||||
dev_dbg(up->port.dev, "serial_omap_set_termios+%d\n", up->pdev->id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue