Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8620d3e5 authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman
Browse files

serial: bfin-uart: Fix auto CTS



Commit 64851636,
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: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d95e3cae
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
}