Re:Re: Re: [PATCH v6 11/13] serial: 8250_dw: add Ambarella CV75 quirks

From
zl020895 <hidden>
Date
2026-09-10 09:47:01
Also in
linux-arm-kernel, linux-clk, linux-gpio, linux-serial, lkml
Reply to
Ilpo Järvinen, 2026-09-10
Hi Ilpo, Andy,

I'll go with the simple comment:
	/*
	 * Ambarella keeps variant IER bits (e.g. ETOI) set for correct RX
	 * timeout behaviour.
	 */
	up->ier |= d->pdata->ier_mask;

Best regards,
Long Zhao

At 2026-09-10 17:33:38, "Ilpo Järvinen" [off-list ref] wrote:
On Thu, 10 Sep 2026, Andy Shevchenko wrote:
quoted
On Thu, Sep 10, 2026 at 05:12:52PM +0800, zl020895 wrote:
quoted
quoted
Wondering if we should undo this in the port's .shutdown() callback.
I saw the shutdown path already covers it: dw8250_shutdown() calls
serial8250_do_shutdown(), which does
	up->ier = 0;
	serial_port_out(port, UART_IER, 0);
so both the IER shadow and hardware IER are cleared, including ETOI.
Depending on the answer to Ilpo the enabling may need an updated comment
summarising the above.
I'd prefer removing the entire "Force them ..." sentence, it feels really 
basic detail about how ->ier works. I believe that would resolve your 
concern if relates to what shutdown does for the flag (clears it while 
the comment as is says nothing is supposed to clear it).
quoted
quoted
At 2026-09-10 16:33:14, "Andy Shevchenko" [off-list ref] wrote:
quoted
On Fri, Sep 04, 2026 at 02:38:18PM +0800, Long Zhao via B4 Relay wrote:
...
quoted
quoted
quoted
+	/*
+	 * Ambarella keeps variant IER bits (e.g. ETOI) set for correct RX
+	 * timeout behaviour. Force them into the 8250 IER shadow so later
+	 * generic IER updates do not clear them.
+	 */
Wondering if we should undo this in the port's .shutdown() callback.
-- 
i.
Thread (59 messages) 59 messages, 9 authors, last reply 2026-09-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help