From: sashiko-bot@kernel.org
To: "Stefan Wahren" <wahrenst@gmx.net>
Cc: mfd@lists.linux.dev, devicetree@vger.kernel.org,
imx@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org,
Frank.Li@kernel.org, lee@kernel.org
Subject: Re: [PATCH 2/3] nvmem: Add driver for i.MX BBNSM GP register
Date: Sun, 01 Nov 2026 20:14:23 +0000 [thread overview]
Message-ID: <sashiko-outbox-192658@kernel.org> (raw)
In-Reply-To: <20261101200140.141642-3-wahrenst@gmx.net>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] nvmem: imx-bbnsm: missing MFD_SYSCON dependency in Kconfig
--
commit 72a81833b2595fcf0c62fe0c32408d53d3b1d63b
Author: Stefan Wahren <wahrenst@gmx.net>
nvmem: Add driver for i.MX BBNSM GP register
This commit adds an NVMEM provider driver to expose the general purpose
registers in the Battery-Backed Non-Secure Module (BBNSM) on i.MX9 SoCs.
> diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
> index c36c2a4c2a0b7..8d492d05f1602 100644
> --- a/drivers/nvmem/Kconfig
> +++ b/drivers/nvmem/Kconfig
> @@ -185,6 +185,18 @@ config NVMEM_BRCM_NVRAM
> This driver provides support for Broadcom's NVRAM that can be accessed
> using I/O mapping.
>
> +config NVMEM_IMX_BBNSM
> + tristate "i.MX BBNSM general purpose register support"
> + depends on ARCH_MXC || COMPILE_TEST
> + depends on OF
> + select REGMAP_MMIO
[Severity: Low]
Should NVMEM_IMX_BBNSM depend on or select MFD_SYSCON instead of selecting
REGMAP_MMIO?
In drivers/nvmem/imx-bbnsm.c, imx_bbnsm_probe() obtains its regmap via
syscon_node_to_regmap(parent) rather than calling any regmap-mmio API
directly:
priv->regmap = syscon_node_to_regmap(parent);
of_node_put(parent);
if (IS_ERR(priv->regmap))
return PTR_ERR(priv->regmap);
On arm64, ARCH_MXC does not select MFD_SYSCON (unlike 32-bit ARCH_MXC). When
CONFIG_MFD_SYSCON is disabled, syscon_node_to_regmap() in
include/linux/mfd/syscon.h falls back to its inline stub returning
ERR_PTR(-ENOTSUPP), causing imx_bbnsm_probe() to fail unconditionally at
runtime. MFD_SYSCON also already selects REGMAP_MMIO.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261101200140.141642-1-wahrenst@gmx.net?part=2
next prev parent reply other threads:[~2026-11-01 20:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-01 20:01 [PATCH 0/3] nvmem: Add driver for i.MX BBNSM GP register Stefan Wahren
2026-11-01 20:01 ` [PATCH 1/3] dt-bindings: mfd: nxp,bbnsm: Add NVMEM for GP registers Stefan Wahren
2026-11-01 20:08 ` sashiko-bot
2026-11-02 7:28 ` Krzysztof Kozlowski
2026-11-01 20:01 ` [PATCH 2/3] nvmem: Add driver for i.MX BBNSM GP register Stefan Wahren
2026-11-01 20:14 ` sashiko-bot [this message]
2026-11-01 20:01 ` [PATCH 3/3] arm64: dts: imx91_93_common: Enable BBNSM NVMEM Stefan Wahren
2026-11-01 20:17 ` sashiko-bot
2026-11-02 7:29 ` Krzysztof Kozlowski
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-192658@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=lee@kernel.org \
--cc=mfd@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wahrenst@gmx.net \
/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