serial: 8250_dma: add timer for dma receive
authorHuibin Hong <huibin.hong@rock-chips.com>
Mon, 24 Oct 2016 10:04:50 +0000 (18:04 +0800)
committerHuibin Hong <huibin.hong@rock-chips.com>
Tue, 25 Oct 2016 01:12:28 +0000 (09:12 +0800)
commit12660c60ba4f9b6f89882c2242defeeede6ad714
tree08245718852a14ead64e6d0609a2b33ed975481e
parente2f1d149c77fd84d709d84b8a568c369c7ed680c
serial: 8250_dma: add timer for dma receive

For rockchip serial, received data available and character timeout
interrupts are both enabled by IER[0]. Then when there is data in
the FIFO, received data available interrupt will occurd frequently.
So we must disable it, but which may disable the character timeout
interrput. Then it is useful to add a timer to report the data received
in dma buffer every 10 microsecond.

Change-Id: I6530b17800435b288a7309bb5998176decb94297
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
drivers/tty/serial/8250/8250.h
drivers/tty/serial/8250/8250_dma.c