ENGR00133590 UART: let user control HW flow control

HW flow control should be enable/disable by userspace.
It can be set by tty option: options.c_cflag of  CRTSCTS
bit.

This bug is found by testing UART BT AR3001 chip,
this chip will wake up the chip by set RTS to high,
it needs frist disable HW flow control, set RTS,
then disable HW flow control.

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
This commit is contained in:
Zhang Jiejing
2010-12-13 13:58:29 -06:00
committed by Matt Sealey
parent 713fef6d75
commit 850d7f76ce

View File

@@ -1379,6 +1379,9 @@ static void mxcuart_set_termios(struct uart_port *port,
umxc->port.ignore_status_mask |= UART_CREAD_BIT;
}
/* Hardware flow control should controled by userspace */
umxc->hardware_flow = (termios->c_cflag & CRTSCTS) ? 1 : 0;
cr4 = readl(umxc->port.membase + MXC_UARTUCR4);
if (UART_ENABLE_MS(port, termios->c_cflag)) {
mxcuart_enable_ms(port);