mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
serial: pl011: Request a memory width of 1 byte
In order to avoid losing residue bytes when a receive is terminated early, set the destination width to single bytes. Link: https://github.com/raspberrypi/linux/issues/6365 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
This commit is contained in:
@@ -475,6 +475,7 @@ static void pl011_dma_probe(struct uart_amba_port *uap)
|
|||||||
.src_addr = uap->port.mapbase +
|
.src_addr = uap->port.mapbase +
|
||||||
pl011_reg_to_offset(uap, REG_DR),
|
pl011_reg_to_offset(uap, REG_DR),
|
||||||
.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE,
|
.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE,
|
||||||
|
.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE,
|
||||||
.direction = DMA_DEV_TO_MEM,
|
.direction = DMA_DEV_TO_MEM,
|
||||||
.src_maxburst = uap->fifosize >> 2,
|
.src_maxburst = uap->fifosize >> 2,
|
||||||
.device_fc = false,
|
.device_fc = false,
|
||||||
|
|||||||
Reference in New Issue
Block a user