Skip to contentSkip to conversation

omap-serial: Allow IXON and IXOFF to be disabled.

PATCH In review Nick Pelly 2 participants 3 messages Jul 14, 2011 – Jul 18, 2011 TTY layer and serial drivers

lore
Share & tools
lore

Nick Pelly

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/tty/serial/omap-serial.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/tty/serial/omap-serial.c +1 -2
index 47cadf4..6d3ec14 100644
@@ -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);
Signature · 1 line
1.7.5.2
Acked-by Govindraj.R Tested-by Govindraj.R on v1 1/1
#1 lore raw
Quoted 4 lines · Nick Pelly

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.

Thanks, Good Point.

need to send to this patch to [email protected], CC'ing "Greg Kroah-Hartman <[email protected]>"

will be merged through tty tree.

feel free to add

--
Thanks,
Govindraj.R

Quoted 22 lines

---
 drivers/tty/serial/omap-serial.c |    3 +--

 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/tty/serial/omap-serial.c +1 -3
index 47cadf4..6d3ec14 100644
@@ -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);
--

1.7.5.2

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw
Quoted 12 lines · Govindraj
Quoted 4 lines · Nick Pelly

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.

Thanks, Good Point.

need to send to this patch to [email protected], CC'ing "Greg Kroah-Hartman <[email protected]>"

Quoted 6 lines

will be merged through tty tree.

feel free to add

Done.