* [PATCH] tty: atmel_serial: update outdated reference to atmel_tasklet_func()
@ 2026-03-21 10:59 Kexin Sun
2026-03-23 9:29 ` Richard GENOUD
0 siblings, 1 reply; 5+ messages in thread
From: Kexin Sun @ 2026-03-21 10:59 UTC (permalink / raw)
To: richard.genoud, gregkh, jirislaby, nicolas.ferre,
alexandre.belloni, claudiu.beznea, linux-kernel, linux-serial,
linux-arm-kernel
Cc: julia.lawall, xutong.ma, kexinsun, yunbolyu, ratnadiraw
The modem-status comparison that used irq_status_prev was
moved from atmel_tasklet_func() into atmel_handle_status() in
commit 2c7af5ba65cf ("tty: serial: atmel: rework interrupt and
wakeup handling"). atmel_tasklet_func() itself was later split
into atmel_tasklet_rx_func() and atmel_tasklet_tx_func() in
commit 00e8e65870cc ("tty/serial: atmel: split tx and rx
paths"). Update the comment to reference
atmel_handle_status(), which now performs the comparison.
Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
---
drivers/tty/serial/atmel_serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index 08dd8f887956..5d8c1cfc1c60 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -1927,7 +1927,7 @@ static int atmel_startup(struct uart_port *port)
atmel_uart_writel(port, ATMEL_US_FMR, fmr);
}
- /* Save current CSR for comparison in atmel_tasklet_func() */
+ /* Save current CSR for comparison in atmel_handle_status() */
atmel_port->irq_status_prev = atmel_uart_readl(port, ATMEL_US_CSR);
/*
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] tty: atmel_serial: update outdated reference to atmel_tasklet_func()
2026-03-21 10:59 [PATCH] tty: atmel_serial: update outdated reference to atmel_tasklet_func() Kexin Sun
@ 2026-03-23 9:29 ` Richard GENOUD
2026-03-24 2:48 ` [PATCH v2] " Kexin Sun
0 siblings, 1 reply; 5+ messages in thread
From: Richard GENOUD @ 2026-03-23 9:29 UTC (permalink / raw)
To: Kexin Sun, gregkh, jirislaby, nicolas.ferre, alexandre.belloni,
claudiu.beznea, linux-kernel, linux-serial, linux-arm-kernel
Cc: julia.lawall, xutong.ma, yunbolyu, ratnadiraw
Le 21/03/2026 à 11:59, Kexin Sun a écrit :
> The modem-status comparison that used irq_status_prev was
> moved from atmel_tasklet_func() into atmel_handle_status() in
> commit 2c7af5ba65cf ("tty: serial: atmel: rework interrupt and
> wakeup handling"). atmel_tasklet_func() itself was later split
> into atmel_tasklet_rx_func() and atmel_tasklet_tx_func() in
> commit 00e8e65870cc ("tty/serial: atmel: split tx and rx
> paths"). Update the comment to reference
> atmel_handle_status(), which now performs the comparison.
Actually, it was in commit:
d033e82db9a5 ("tty/serial: at91: handle IRQ status more safely")
That irq_status prev/actual comparison was moved from
atmel_tasklet_func() to atmel_handle_status().
And we don't need the rx/tx tasklet splitting history there.
IHMO, only the last sentence should suffice, but now that I've done the
right commit research, you may add a reference to it :)
>
> Assisted-by: unnamed:deepseek-v3.2 coccinelle
> Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
> ---
> drivers/tty/serial/atmel_serial.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
> index 08dd8f887956..5d8c1cfc1c60 100644
> --- a/drivers/tty/serial/atmel_serial.c
> +++ b/drivers/tty/serial/atmel_serial.c
> @@ -1927,7 +1927,7 @@ static int atmel_startup(struct uart_port *port)
> atmel_uart_writel(port, ATMEL_US_FMR, fmr);
> }
>
> - /* Save current CSR for comparison in atmel_tasklet_func() */
> + /* Save current CSR for comparison in atmel_handle_status() */
> atmel_port->irq_status_prev = atmel_uart_readl(port, ATMEL_US_CSR);
>
> /*
Thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] tty: atmel_serial: update outdated reference to atmel_tasklet_func()
2026-03-23 9:29 ` Richard GENOUD
@ 2026-03-24 2:48 ` Kexin Sun
2026-03-24 7:08 ` Richard GENOUD
0 siblings, 1 reply; 5+ messages in thread
From: Kexin Sun @ 2026-03-24 2:48 UTC (permalink / raw)
To: gregkh, jirislaby
Cc: nicolas.ferre, alexandre.belloni, claudiu.beznea, richard.genoud,
linux-kernel, linux-serial, linux-arm-kernel, julia.lawall,
xutong.ma, yunbolyu, ratnadiraw, Kexin Sun
The modem-status comparison that used irq_status_prev was
moved from atmel_tasklet_func() into atmel_handle_status() in
commit d033e82db9a5 ("tty/serial: at91: handle IRQ status
more safely"). Update the comment accordingly.
Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
---
drivers/tty/serial/atmel_serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index 08dd8f887956..5d8c1cfc1c60 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -1927,7 +1927,7 @@ static int atmel_startup(struct uart_port *port)
atmel_uart_writel(port, ATMEL_US_FMR, fmr);
}
- /* Save current CSR for comparison in atmel_tasklet_func() */
+ /* Save current CSR for comparison in atmel_handle_status() */
atmel_port->irq_status_prev = atmel_uart_readl(port, ATMEL_US_CSR);
/*
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] tty: atmel_serial: update outdated reference to atmel_tasklet_func()
2026-03-24 2:48 ` [PATCH v2] " Kexin Sun
@ 2026-03-24 7:08 ` Richard GENOUD
2026-03-24 7:58 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Richard GENOUD @ 2026-03-24 7:08 UTC (permalink / raw)
To: Kexin Sun, gregkh, jirislaby
Cc: nicolas.ferre, alexandre.belloni, claudiu.beznea, linux-kernel,
linux-serial, linux-arm-kernel, julia.lawall, xutong.ma, yunbolyu,
ratnadiraw
Le 24/03/2026 à 03:48, Kexin Sun a écrit :
> The modem-status comparison that used irq_status_prev was
> moved from atmel_tasklet_func() into atmel_handle_status() in
> commit d033e82db9a5 ("tty/serial: at91: handle IRQ status
> more safely"). Update the comment accordingly.
Double space here, but I don't think it's necessary to send another
iteration for that.
>
> Assisted-by: unnamed:deepseek-v3.2 coccinelle
> Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Acked-by Richard Genoud <richard.genoud@bootlin.com>
> ---
> drivers/tty/serial/atmel_serial.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
> index 08dd8f887956..5d8c1cfc1c60 100644
> --- a/drivers/tty/serial/atmel_serial.c
> +++ b/drivers/tty/serial/atmel_serial.c
> @@ -1927,7 +1927,7 @@ static int atmel_startup(struct uart_port *port)
> atmel_uart_writel(port, ATMEL_US_FMR, fmr);
> }
>
> - /* Save current CSR for comparison in atmel_tasklet_func() */
> + /* Save current CSR for comparison in atmel_handle_status() */
> atmel_port->irq_status_prev = atmel_uart_readl(port, ATMEL_US_CSR);
>
> /*
Thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] tty: atmel_serial: update outdated reference to atmel_tasklet_func()
2026-03-24 7:08 ` Richard GENOUD
@ 2026-03-24 7:58 ` Greg KH
0 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2026-03-24 7:58 UTC (permalink / raw)
To: Richard GENOUD
Cc: Kexin Sun, jirislaby, nicolas.ferre, alexandre.belloni,
claudiu.beznea, linux-kernel, linux-serial, linux-arm-kernel,
julia.lawall, xutong.ma, yunbolyu, ratnadiraw
On Tue, Mar 24, 2026 at 08:08:40AM +0100, Richard GENOUD wrote:
> Le 24/03/2026 à 03:48, Kexin Sun a écrit :
> > The modem-status comparison that used irq_status_prev was
> > moved from atmel_tasklet_func() into atmel_handle_status() in
> > commit d033e82db9a5 ("tty/serial: at91: handle IRQ status
> > more safely"). Update the comment accordingly.
> Double space here, but I don't think it's necessary to send another
> iteration for that.
Double spaces are the "real way", so this is all good :)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-03-24 7:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-21 10:59 [PATCH] tty: atmel_serial: update outdated reference to atmel_tasklet_func() Kexin Sun
2026-03-23 9:29 ` Richard GENOUD
2026-03-24 2:48 ` [PATCH v2] " Kexin Sun
2026-03-24 7:08 ` Richard GENOUD
2026-03-24 7:58 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox