Allen Yan 2ff23c4802 serial: mvebu-uart: clear state register before IRQ request
When receiving data on RX pin before ->uart_startup() is called, some
error bits in the state register could be set up (like BRK_DET).

This is harmless when using only the standard UART (error bits are
read-only), but may procude an endless loop once in the extended UART
RX interrupt handler (error bits must be cleared).

Clear the status register in ->uart_startup() to avoid this situation.

Signed-off-by: Allen Yan <yanwei@marvell.com>
Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-20 14:20:06 +02:00
..
2017-09-07 10:15:40 -07:00
2017-07-30 07:35:27 -07:00
2017-07-30 07:35:28 -07:00
2017-10-09 09:05:05 +02:00
2016-05-01 13:22:54 -07:00
2017-09-05 10:30:48 -07:00
2016-03-07 16:11:14 -08:00
2017-07-03 20:04:16 -07:00
2016-02-14 14:36:04 -08:00