summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorPhil Elwell <phil@raspberrypi.com>2024-09-19 18:22:24 +0100
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>2024-11-08 14:24:19 +0000
commit8894298105f4cb41dfa41e0b0d3c40c3f7b92c44 (patch)
tree0c126a698fb7a2df8a54b243af4dd5894a263c4a /drivers/tty
parent5cf7209c294a58029984880d4858e2d3c7e46a3c (diff)
downloadlinux-rpi-8894298105f4cb41dfa41e0b0d3c40c3f7b92c44.tar.gz
linux-rpi-8894298105f4cb41dfa41e0b0d3c40c3f7b92c44.tar.bz2
linux-rpi-8894298105f4cb41dfa41e0b0d3c40c3f7b92c44.zip
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/amba-pl011.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index 39fd89e8e663..80c57cbc47da 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -468,6 +468,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,