From: sashiko-bot@kernel.org
To: "Joy Zou" <joy.zou@oss.nxp.com>
Cc: devicetree@vger.kernel.org, Frank.Li@kernel.org, robh@kernel.org,
conor+dt@kernel.org, imx@lists.linux.dev
Subject: Re: [PATCH 2/2] arm64: dts: imx93-evk/qsb: add rtc1 alias for external PCF2131 RTC
Date: Mon, 14 Sep 2026 03:29:40 +0000 [thread overview]
Message-ID: <20260914032940.7A54E1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260914-b4_imx91_93_rtc-v1-2-daed1cba0714@oss.nxp.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] This problem wasn't introduced by this patch, but several other NXP boards with multiple RTCs lack explicit RTC aliases, leading to the exact same unpredictable /dev/rtcN numbering that this patch fixes.
--
commit 3914a89ee5c45116b8135c7ac05a01b772cb8462
Author: Joy Zou <joy.zou@oss.nxp.com>
arm64: dts: imx93-evk/qsb: add rtc1 alias for external PCF2131 RTC
This commit fixes unpredictable /dev/rtcN numbering for imx93 boards by adding
an explicit rtc1 alias.
> Only rtc0 was aliased to bbnsm_rtc, while the external pcf2131 had
> no fixed index. When both drivers are modules, the pcf2131 may register
> first and take rtc0, pushing bbnsm_rtc to rtc1. Since suspend/resume
> wakeup relies on the internal bbnsm RTC at rtc0, this broke wakeup.
>
> Add rtc1 alias for the pcf2131 on imx93-11x11-evk and imx93-9x9-qsb,
> so it keeps a fixed index while bbnsm_rtc stays rtc0.
[Severity: High]
This isn't a bug introduced by this patch, but several other NXP boards with
multiple RTCs lack explicit RTC aliases, leading to the exact same
unpredictable /dev/rtcN numbering that this patch fixes.
For example, in arch/arm64/boot/dts/freescale/imx8mn-dimonoff-gateway-evk.dts:
rtc@53 {
compatible = "nxp,pcf2131";
This board defines multiple RTCs (pcf2129 and pcf2131) without aliases,
leaving them susceptible to the same index race condition.
In arch/arm64/boot/dts/freescale/imx8mp-navqp.dts:
rtc@53 {
compatible = "nxp,pcf2131";
This board defines an external RTC alongside the SoC's internal snvs_rtc
without any aliases, causing unpredictable index assignment.
In arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts:
rtc@51 {
compatible = "nxp,pcf2129";
This board defines multiple external RTCs without a complete set of aliases,
leading to unpredictable rtc0/rtc2 index assignment.
A race condition between module probes will swap these indices unpredictably,
which can break system time initialization (since CONFIG_RTC_HCTOSYS_DEVICE
defaults to rtc0) or suspend/resume wakeup functionality.
Could these other boards also be updated with explicit RTC aliases to prevent
the same issue?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260914-b4_imx91_93_rtc-v1-0-daed1cba0714@oss.nxp.com?part=2
next prev parent reply other threads:[~2026-09-14 3:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 3:21 [PATCH 0/2] arm64: dts: imx91/imx93: add rtc1 alias for external PCF2131 RTC Joy Zou
2026-09-14 3:21 ` [PATCH 1/2] arm64: dts: imx91-evk/qsb: " Joy Zou
2026-09-14 3:21 ` [PATCH 2/2] arm64: dts: imx93-evk/qsb: " Joy Zou
2026-09-14 3:29 ` sashiko-bot [this message]
2026-09-23 20:24 ` [PATCH 0/2] arm64: dts: imx91/imx93: " Frank.Li
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=20260914032940.7A54E1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=imx@lists.linux.dev \
--cc=joy.zou@oss.nxp.com \
--cc=robh@kernel.org \
--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.