summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2014-04-12 19:47:17 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-16 14:17:44 -0700
commitb2aeb775f814c9543784b15a5f2d87ea91005f3f (patch)
tree8f8bfc9a4e398303fe41a5d05abdfbdbf08ca186 /drivers/tty
parente55c2a07c4abf65d1915a7507a625c82c72fed5a (diff)
downloadblackbird-op-linux-b2aeb775f814c9543784b15a5f2d87ea91005f3f.tar.gz
blackbird-op-linux-b2aeb775f814c9543784b15a5f2d87ea91005f3f.zip
serial: pl011: change Rx burst size to half of trigger level
The amba-pl011.c driver sets DMA burst size equal to FIFO trigger level. If now exactly DMA burst size bytes are received, the DMAC will retrieve them all and no Rx timeout interrupt will be generated. To fix that set the burst size to half the FIFO trigger level. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/amba-pl011.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index d4eda24aa68b..ca0ec600fab6 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -318,7 +318,7 @@ static void pl011_dma_probe_initcall(struct device *dev, struct uart_amba_port *
.src_addr = uap->port.mapbase + UART01x_DR,
.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE,
.direction = DMA_DEV_TO_MEM,
- .src_maxburst = uap->fifosize >> 1,
+ .src_maxburst = uap->fifosize >> 2,
.device_fc = false,
};
OpenPOWER on IntegriCloud