From: "Jernej Škrabec" <jernej.skrabec@gmail.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: "Vincent Mailhol" <mailhol@kernel.org>,
"Chen-Yu Tsai" <wens@csie.org>,
"Samuel Holland" <samuel@sholland.org>,
"Gerhard Bertelsmann" <info@gerhard-bertelsmann.de>,
"Maxime Ripard" <mripard@kernel.org>,
kernel@pengutronix.de, linux-can@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
stable@vger.kernel.org,
"Thomas Mühlbacher" <tmuehlbacher@posteo.net>
Subject: Re: [PATCH can] can: sun4i_can: sun4i_can_interrupt(): fix max irq loop handling
Date: Sun, 16 Nov 2025 18:46:51 +0100 [thread overview]
Message-ID: <5938604.DvuYhMxLoT@jernej-laptop> (raw)
In-Reply-To: <20251116-mysterious-delightful-spaniel-18d220-mkl@pengutronix.de>
Hi!
Dne nedelja, 16. november 2025 ob 17:26:07 Srednjeevropski standardni čas je Marc Kleine-Budde napisal(a):
> On 16.11.2025 17:20:37, Jernej Škrabec wrote:
> > Dne nedelja, 16. november 2025 ob 16:55:26 Srednjeevropski standardni čas je Marc Kleine-Budde napisal(a):
> > > Reading the interrupt register `SUN4I_REG_INT_ADDR` causes all of its bits
> > > to be reset. If we ever reach the condition of handling more than
> > > `SUN4I_CAN_MAX_IRQ` IRQs, we will have read the register and reset all its
> > > bits but without actually handling the interrupt inside of the loop body.
> > >
> > > This may, among other issues, cause us to never `netif_wake_queue()` again
> > > after a transmission interrupt.
> > >
> > > Fixes: 0738eff14d81 ("can: Allwinner A10/A20 CAN Controller support - Kernel module")
> > > Cc: stable@vger.kernel.org
> > > Co-developed-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
> > > Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
> > > Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
> > > ---
> > > I've ported the fix from the sja1000 driver to the sun4i_can, which based
> > > on the sja1000 driver.
> >
> > Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
>
> Thank you very much! I have seen a lot of feedback from you about the
> sun4i driver. Would you like to become the maintainer of the driver?
As a Allwinner (sunxi) maintainer, it is somehow implied that I help with
reviewing such drivers, right?
However, while I never used sun4i_can driver, I know CAN protocol well
as I work with SJA1000 compatible controllers at work, so I can help with
maintaining it.
Best regards,
Jernej
prev parent reply other threads:[~2025-11-16 17:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-16 15:55 [PATCH can] can: sun4i_can: sun4i_can_interrupt(): fix max irq loop handling Marc Kleine-Budde
2025-11-16 16:20 ` Jernej Škrabec
2025-11-16 16:26 ` Marc Kleine-Budde
2025-11-16 17:46 ` Jernej Škrabec [this message]
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=5938604.DvuYhMxLoT@jernej-laptop \
--to=jernej.skrabec@gmail.com \
--cc=info@gerhard-bertelsmann.de \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=mailhol@kernel.org \
--cc=mkl@pengutronix.de \
--cc=mripard@kernel.org \
--cc=samuel@sholland.org \
--cc=stable@vger.kernel.org \
--cc=tmuehlbacher@posteo.net \
--cc=wens@csie.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