serial: bfin-uart: Fix auto CTS
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 10 Sep 2014 19:06:28 +0000 (15:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:19:35 +0000 (21:19 -0700)
Commit 64851636d568ae9f167cd5d1dcdbfe17e6eef73c,
serial: bfin-uart: Remove ASYNC_CTS_FLOW flag for hardware automatic CTS,
open-codes uart_handle_cts_change() when CONFIG_SERIAL_BFIN_HARD_CTSRTS
to skip start and stop tx.

But the CTS interrupt handler _still_ calls uart_handle_cts_change();
only call uart_handle_cts_change() if !CONFIG_SERIAL_BFIN_HARD_CTSRTS.

cc: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/bfin_uart.c

index fc9fbf3f24a78a2f0f116faaee51237b272bf7ce..7da9911e95f0a14a8c917448be1f47cc433da916 100644 (file)
@@ -122,8 +122,9 @@ static irqreturn_t bfin_serial_mctrl_cts_int(int irq, void *dev_id)
                if (!status)
                        uport->hw_stopped = 1;
        }
-#endif
+#else
        uart_handle_cts_change(uport, status & TIOCM_CTS);
+#endif
 
        return IRQ_HANDLED;
 }