Merge tag 'tty-4.0-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty

Pull tty/serial fixes from Greg KH:
"Here are 3 serial driver fixes for 4.0-rc6. They fix some reported
issues with the samsung and fsl_lpuart drivers.

All have been in linux-next for a while"

* tag 'tty-4.0-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
tty: serial: fsl_lpuart: clear receive flag on FIFO flush
tty: serial: fsl_lpuart: specify transmit FIFO size
serial: samsung: Clear operation mode on UART shutdown

Changed files
+6
drivers
tty
+5
drivers/tty/serial/fsl_lpuart.c
··· 921 921 writeb(val | UARTPFIFO_TXFE | UARTPFIFO_RXFE, 922 922 sport->port.membase + UARTPFIFO); 923 923 924 + /* explicitly clear RDRF */ 925 + readb(sport->port.membase + UARTSR1); 926 + 924 927 /* flush Tx and Rx FIFO */ 925 928 writeb(UARTCFIFO_TXFLUSH | UARTCFIFO_RXFLUSH, 926 929 sport->port.membase + UARTCFIFO); ··· 1078 1075 1079 1076 sport->txfifo_size = 0x1 << (((temp >> UARTPFIFO_TXSIZE_OFF) & 1080 1077 UARTPFIFO_FIFOSIZE_MASK) + 1); 1078 + 1079 + sport->port.fifosize = sport->txfifo_size; 1081 1080 1082 1081 sport->rxfifo_size = 0x1 << (((temp >> UARTPFIFO_RXSIZE_OFF) & 1083 1082 UARTPFIFO_FIFOSIZE_MASK) + 1);
+1
drivers/tty/serial/samsung.c
··· 963 963 free_irq(ourport->tx_irq, ourport); 964 964 tx_enabled(port) = 0; 965 965 ourport->tx_claimed = 0; 966 + ourport->tx_mode = 0; 966 967 } 967 968 968 969 if (ourport->rx_claimed) {