Linux RTC
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Myeonghun Pak" <mhun512@gmail.com>
Cc: "Alexandre Belloni" <alexandre.belloni@bootlin.com>,
	wsa+renesas@sang-engineering.com, linux-rtc@vger.kernel.org
Subject: Re: [PATCH 1/2] rtc: renesas-rtca3: Initialize the RTC before requesting interrupts
Date: Sun, 11 Oct 2026 23:08:59 +0000	[thread overview]
Message-ID: <sashiko-outbox-167506@kernel.org> (raw)
In-Reply-To: <20261011225657.rtca3-irq-ordering.1@gmail.com>

> The alarm handler passes priv->rtc_dev to rtc_update_irq(), but the RTC
> allocation is managed after the interrupt requests. Devres can therefore
> drop the RTC's allocation reference before freeing and synchronizing the
> alarm IRQ. Masking alarm interrupts in remove does not wait for a handler
> that has already entered, and a pending alarm flag can still be handled.
> 
> Allocate the RTC before requesting the IRQs so that the allocation
> reference remains valid until the IRQs have been freed and synchronized
> on both removal and probe failure. Initialize its operations and time
> range before requesting the IRQs as well, so an early alarm interrupt
> cannot queue RTC work before the operations are available.
> 
> This issue was found by static analysis.
> 
> Fixes: d4488377609e ("rtc: renesas-rtca3: Add driver for RTCA-3 available on Renesas RZ/G3S SoC")
> Assisted-by: LLM
> Co-developed-by: Ijae Kim <ae878000@gmail.com>
> Signed-off-by: Ijae Kim <ae878000@gmail.com>
> Signed-off-by: Myeonghun Pak <mhun512@gmail.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261011225657.rtca3-irq-ordering.0@gmail.com?part=1


  reply	other threads:[~2026-10-11 23:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-11 22:57 [PATCH 0/2] rtc: renesas-rtca3: Fix IRQ initialization and teardown ordering Myeonghun Pak
2026-10-11 22:57 ` [PATCH 1/2] rtc: renesas-rtca3: Initialize the RTC before requesting interrupts Myeonghun Pak
2026-10-11 23:08   ` sashiko-bot [this message]
2026-10-11 22:57 ` [PATCH 2/2] rtc: renesas-rtca3: Join interrupt handlers before unregistering the RTC Myeonghun Pak
2026-10-11 23:04   ` sashiko-bot

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=sashiko-outbox-167506@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=linux-rtc@vger.kernel.org \
    --cc=mhun512@gmail.com \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wsa+renesas@sang-engineering.com \
    /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