Re: [PATCH v2 3/4] dt-bindings: serial: snps-dw-apb-uart: Add Allwinner A733

From: Vinicius Pedrosa

Date: Tue Dec 01 2026 - 05:39:24 EST


Hi Andre,

On Mon, 30 Nov 2026, Andre Przywara wrote:

> Thanks for that, looks simple enough. Now I'd just be interested what's
> your use case here? Are you driving something through the serial port
> that needs some runtime adjustment? Because normally I'd expect the
> serial setup to be done first, while no transfers occur, and then never
> change later again?

My use case is the serial login console on the Cubie A7Z during mainline
bring-up. I wasn't trying to support an application that keeps changing
the serial settings.

I found the problem on a normal boot. The console stopped handling
interrupts after the first userspace termios change, before I got a
login prompt. That was the false DLF detection: 0xc0 is UART_485_CTL on
the A733 and its readback was taken as a DLF. It replaced the BUSY-safe
divisor hook, and the IER restore ended up writing DLH.

The clock gating is a separate issue. The A733 DT provides only the UART
bus clock, and set_termios gates it around clk_set_rate, which can cut a
character if TX is still active. With the CLOCAL test, five runs were
corrupted without SKIP_SET_RATE and five were clean with it. The test
forces termios changes during TX on purpose, and I haven't measured the
corruption on a normal boot.

> Just want to assess the urgency of those fixes.

Only the stall hit me in normal use, and it broke the login console.
The corruption I only have under stress.

I agree the A733 binding shouldn't wait for the driver fixes. I'll
retest the remaining patches on the current tty-next, with James's
divisor fix applied, before posting the next revision.

Thanks for reviewing the binding.

Vinicius