Skip to content

Commit 4a513bb

Browse files
pelwellpopcornmix
authored andcommitted
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 <phil@raspberrypi.com>
1 parent b3a05f5 commit 4a513bb

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
@@ -465,6 +465,7 @@ static void pl011_dma_probe(struct uart_amba_port *uap)
465465
.src_addr = uap->port.mapbase +
466466
pl011_reg_to_offset(uap, REG_DR),
467467
.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE,
468+
.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE,
468469
.direction = DMA_DEV_TO_MEM,
469470
.src_maxburst = uap->fifosize >> 2,
470471
.device_fc = false,

0 commit comments

Comments
 (0)