mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-21 14:14:09 +00:00
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:
committed by
Matt Sealey
parent
713fef6d75
commit
850d7f76ce
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user