Re: [PATCH v2 4/4] serial: 8250_dw: Add Allwinner A733 UART
From: Alastair D'Silva
Date: Fri Nov 27 2026 - 06:26:38 EST
On Mon, 19 Oct 2026 17:06:13 -0300, Vinicius Pedrosa <vinicius.eduardo.pedrosa@xxxxxxxxx> wrote:
> On the A733, dw8250_set_termios() stops the UART clock around
> clk_set_rate() on every termios change that reaches the driver. If TX is
> active at that moment, the character being shifted out is corrupted.
>
> No baud rate change is required to trigger the problem. Toggling only
> CLOCAL or CSTOPB 300 times during continuous console output corrupted
> bytes in every run without the quirk and in none with it.
>
> Use the existing SKIP_SET_RATE quirk, as the JH7100 and SG2044 UARTs do.
>
> Signed-off-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@xxxxxxxxx>
> ---
> drivers/tty/serial/8250/8250_dw.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
> index 4c86aaf9c121..718ec44135e4 100644
> --- a/drivers/tty/serial/8250/8250_dw.c
> +++ b/drivers/tty/serial/8250/8250_dw.c
> @@ -906,6 +906,7 @@ static const struct dw8250_platform_data dw8250_tda54 = {
>
> static const struct of_device_id dw8250_of_match[] = {
> { .compatible = "snps,dw-apb-uart", .data = &dw8250_dw_apb },
> + { .compatible = "allwinner,sun60i-a733-uart", .data = &dw8250_skip_set_rate_data },
> { .compatible = "cavium,octeon-3860-uart", .data = &dw8250_octeon_3860_data },
> { .compatible = "marvell,armada-38x-uart", .data = &dw8250_armada_38x_data },
> { .compatible = "renesas,rzn1-uart", .data = &dw8250_renesas_rzn1_data },
Tested on Xunlong OrangePi 4 Pro (Allwinner A733):
- UART0 (2500000.serial, ttyS0, base_baud = 1500000) boots to shell and
echoes interactive console input at 115200 baud.
Reviewed-by: Alastair D'Silva <alastair@xxxxxxxxxxx>
Tested-by: Alastair D'Silva <alastair@xxxxxxxxxxx> # OrangePi 4 Pro