Skip to content

Commit

Permalink
Revert "Revert "tty/serial: pl011: restrict RX burst FIFO threshold""
Browse files Browse the repository at this point in the history
This reverts commit 2dc559c.
  • Loading branch information
pelwell committed Sep 17, 2024
1 parent 2dc559c commit 26bedd7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/tty/serial/amba-pl011.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,12 @@ static void pl011_dma_probe(struct uart_amba_port *uap)
"RX DMA disabled - no residue processing\n");
return;
}
/*
* DMA controllers with smaller burst capabilities than 1/4
* the FIFO depth will leave more bytes than expected in the
* RX FIFO if mismatched.
*/
rx_conf.src_maxburst = min(caps.max_burst, rx_conf.src_maxburst);
}
dmaengine_slave_config(chan, &rx_conf);
uap->dmarx.chan = chan;
Expand Down

0 comments on commit 26bedd7

Please sign in to comment.