Skip to content

Commit

Permalink
serial: pl011: Request a memory width of 1 byte
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pelwell committed Nov 9, 2024
1 parent c469500 commit b48113a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/tty/serial/amba-pl011.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ static void pl011_dma_probe(struct uart_amba_port *uap)
.src_addr = uap->port.mapbase +
pl011_reg_to_offset(uap, REG_DR),
.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE,
.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE,
.direction = DMA_DEV_TO_MEM,
.src_maxburst = uap->fifosize >> 2,
.device_fc = false,
Expand Down

0 comments on commit b48113a

Please sign in to comment.