serial: mvebu-uart: add TX interrupt trigger for pulse interrupts
authorAllen Yan <yanwei@marvell.com>
Fri, 13 Oct 2017 09:01:53 +0000 (11:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Oct 2017 12:20:07 +0000 (14:20 +0200)
commit30434b0713a5f4ecf00e9ffd3d47053882b1909a
tree96983cebadafc50a4174d09c3742a515b15d89f6
parent2ff23c48028a77114757438f9a480c453f68d4b0
serial: mvebu-uart: add TX interrupt trigger for pulse interrupts

Pulse interrupts (extended UART only) needs a change of state to trigger
the TX interrupt. In addition to enabling the TX_READY_INT_EN flag,
produce a FIFO state change from 'empty' to 'not full'. For this, write
only one data byte in TX start, making the TX FIFO not empty, and wait
for the TX interrupt to continue the transfer.

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>
drivers/tty/serial/mvebu-uart.c