All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jiawen Liu" <liu1298662399@gmail.com>
Cc: linux-rtc@vger.kernel.org,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH] rtc: omap: abort probe if runtime resume fails
Date: Sun, 29 Nov 2026 19:31:48 +0000	[thread overview]
Message-ID: <sashiko-outbox-239955@kernel.org> (raw)
In-Reply-To: <179598033474.2.16434657830284928463.pattern-ext-052.2@gmail.com>

> On AM335x, the ti-sysc parent can runtime suspend before a later RTC
> probe. If its functional clock fails to become ready during resume,
> the RTC's synchronous runtime PM acquisition can fail. Probe ignores
> that result and immediately writes the KICK and interrupt registers
> while the parent remains suspended.
> 
> Use pm_runtime_resume_and_get() and return its error before accessing
> any RTC registers. The helper balances the usage count on failure,
> so disable runtime PM and release the optional oscillator clock in
> the early error path. Check clk_prepare_enable() so that this path
> only releases a clock that was successfully enabled. A successful
> probe retains its runtime PM reference for the existing cleanup.
> 
> Source review traced probe and
> removal. The rtc-omap object built for ARM OMAP2+ with AM33xx and
> CONFIG_PM=y and for x86_64 COMPILE_TEST with CONFIG_PM=n. Both
> git diff --check and checkpatch.pl passed. Runtime and hardware
> reproduction were not performed.
> 
> Fixes: fc9bd9022e8d ("rtc: omap: add runtime pm support")
> Signed-off-by: Jiawen Liu <liu1298662399@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/179598033474.2.16434657830284928463.pattern-ext-052.2@gmail.com?part=1

      reply	other threads:[~2026-11-29 19:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 19:25 [PATCH] rtc: omap: abort probe if runtime resume fails Jiawen Liu
2026-11-29 19:31 ` sashiko-bot [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=sashiko-outbox-239955@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=linux-rtc@vger.kernel.org \
    --cc=liu1298662399@gmail.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.