Skip to content

Commit 8894298

Browse files
committed
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: #6365 Signed-off-by: Phil Elwell <[email protected]>
1 parent 5cf7209 commit 8894298

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/amba-pl011.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ static void pl011_dma_probe(struct uart_amba_port *uap)
468468
.src_addr = uap->port.mapbase +
469469
pl011_reg_to_offset(uap, REG_DR),
470470
.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE,
471+
.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE,
471472
.direction = DMA_DEV_TO_MEM,
472473
.src_maxburst = uap->fifosize >> 2,
473474
.device_fc = false,

0 commit comments

Comments
 (0)