From: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
To: Andre Przywara <andre.przywara@arm.com>
Cc: linux-serial@vger.kernel.org, gregkh@linuxfoundation.org,
jirislaby@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev,
Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Conor Dooley <conor.dooley@microchip.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
ilpo.jarvinen@linux.intel.com,
Enzo Adriano <enzo.adriano.code@gmail.com>
Subject: Re: [PATCH v2 3/4] dt-bindings: serial: snps-dw-apb-uart: Add Allwinner A733
Date: Tue, 1 Dec 2026 07:38:54 -0300 [thread overview]
Message-ID: <20261201103854.14229-1-vinicius.eduardo.pedrosa@gmail.com> (raw)
In-Reply-To: <e4b340e0-b5ff-4612-9677-eac1e24a494e@arm.com>
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
next prev parent reply other threads:[~2026-12-01 10:39 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 20:06 [PATCH v2 0/4] serial: 8250_dw: Allwinner A733 UART support Vinicius Pedrosa
2026-10-19 20:06 ` [PATCH v2 1/4] serial: 8250_dw: Keep the BUSY-safe divisor hook when DLF is present Vinicius Pedrosa
2026-10-20 8:30 ` Andy Shevchenko
2026-10-20 8:51 ` Andy Shevchenko
2026-10-20 10:47 ` Vinicius Pedrosa
2026-10-21 6:42 ` Andy Shevchenko
2026-10-21 10:00 ` Vinicius Pedrosa
2026-10-21 13:45 ` Andy Shevchenko
2026-10-21 15:37 ` Vinicius Pedrosa
2026-10-21 16:37 ` Andy Shevchenko
2026-10-21 17:04 ` Vinicius Pedrosa
2026-10-21 17:21 ` Andy Shevchenko
2026-10-21 18:07 ` Vinicius Pedrosa
2026-11-27 11:25 ` Alastair D'Silva
2026-10-19 20:06 ` [PATCH v2 2/4] serial: 8250_dw: Only accept a contiguous DLF readback Vinicius Pedrosa
2026-10-20 6:11 ` Jiri Slaby
2026-10-20 8:31 ` Andy Shevchenko
2026-10-20 11:50 ` Ilpo Järvinen
2026-10-20 12:27 ` Vinicius Pedrosa
2026-10-20 13:02 ` Ilpo Järvinen
2026-10-21 6:43 ` Andy Shevchenko
2026-10-20 10:47 ` Vinicius Pedrosa
2026-11-27 11:25 ` Alastair D'Silva
2026-10-19 20:06 ` [PATCH v2 3/4] dt-bindings: serial: snps-dw-apb-uart: Add Allwinner A733 Vinicius Pedrosa
2026-10-21 14:54 ` Andre Przywara
2026-10-21 17:58 ` Vinicius Pedrosa
2026-11-30 16:30 ` Andre Przywara
2026-12-01 10:38 ` Vinicius Pedrosa [this message]
2026-11-27 11:26 ` Alastair D'Silva
2026-11-30 16:17 ` Andre Przywara
2026-10-19 20:06 ` [PATCH v2 4/4] serial: 8250_dw: Add Allwinner A733 UART Vinicius Pedrosa
2026-11-27 11:26 ` Alastair D'Silva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201103854.14229-1-vinicius.eduardo.pedrosa@gmail.com \
--to=vinicius.eduardo.pedrosa@gmail.com \
--cc=andre.przywara@arm.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=conor+dt@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=enzo.adriano.code@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jernej.skrabec@gmail.com \
--cc=jirislaby@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®