From: sashiko-bot@kernel.org
To: "Larisa Grigore" <larisa.grigore@oss.nxp.com>
Cc: imx@lists.linux.dev, robh@kernel.org, devicetree@vger.kernel.org,
conor+dt@kernel.org, Frank.Li@kernel.org,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH v6 09/12] scsi: ufs: Add NXP S32N79 UFS host controller driver
Date: Fri, 25 Sep 2026 14:44:34 +0000 [thread overview]
Message-ID: <20260925144435.3CE0A1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260925143534.3298540-10-larisa.grigore@oss.nxp.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] pm: incorrect conditional wrapper used for system sleep callbacks
--
commit d098a24e93df9f55eb797a42c24f7333f79c7078
Author: Larisa Grigore <larisa.grigore@oss.nxp.com>
scsi: ufs: Add NXP S32N79 UFS host controller driver
Add support for the UFS host controller on the NXP S32N79 SoC, built on
the Synopsys DesignWare (DWC) UFS architecture, using the UFSHCD DWC and
UFSHCD platform glue. This controller requires S32N79-specific initialization
prior to UIC_LINKSTARTUP.
> diff --git a/drivers/ufs/host/ufs-nxp-s32n7.c b/drivers/ufs/host/ufs-nxp-s32n7.c
> new file mode 100644
> index 0000000000000..f7a017a6d9ae6
> --- /dev/null
> +++ b/drivers/ufs/host/ufs-nxp-s32n7.c
[ ... ]
> +static const struct dev_pm_ops ufs_s32n7_pm_ops = {
> + SYSTEM_SLEEP_PM_OPS(ufshcd_system_suspend, ufshcd_system_resume)
> + RUNTIME_PM_OPS(ufshcd_runtime_suspend, ufshcd_runtime_resume, NULL)
> + .prepare = pm_ptr(ufshcd_suspend_prepare),
> + .complete = pm_ptr(ufshcd_resume_complete),
[Severity: Low]
Is it correct to use pm_ptr() for the .prepare and .complete system sleep
callbacks in ufs_s32n7_pm_ops?
The pm_ptr() macro evaluates to NULL when CONFIG_PM is disabled, but .prepare
and .complete are system sleep callbacks which should evaluate to NULL when
CONFIG_PM_SLEEP is disabled. Wrapping them in pm_ptr() could cause dead code
or build errors if the kernel is configured with CONFIG_PM=y but
CONFIG_PM_SLEEP=n. Should pm_sleep_ptr() be used here instead?
> +};
> +
> +static struct platform_driver ufs_s32n7_driver = {
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260925143534.3298540-1-larisa.grigore@oss.nxp.com?part=9
next prev parent reply other threads:[~2026-09-25 14:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 14:35 [PATCH v6 00/12] Add S32N79RDB UFS support Larisa Grigore
2026-09-25 14:35 ` [PATCH v6 01/12] scsi: ufs: dwc: Return a negative error if the link is down Larisa Grigore
2026-09-25 14:35 ` [PATCH v6 02/12] ufs: unipro: Move Tx/Rx FSM state definitions to unipro.h Larisa Grigore
2026-09-25 14:35 ` [PATCH v6 03/12] ufs: unipro: Add TX/RX FSM state attributes Larisa Grigore
2026-09-25 14:35 ` [PATCH v6 04/12] ufs: host: Add common Hibern8 TX FSM polling helper Larisa Grigore
2026-09-25 14:35 ` [PATCH v6 05/12] scsi: ufs: Move Versal2 M-PHY CREG access helpers into ufshcd-dwc Larisa Grigore
2026-09-25 14:35 ` [PATCH v6 06/12] scsi: ufs: dwc: Export common clock divider and link status helpers Larisa Grigore
2026-09-25 14:35 ` [PATCH v6 07/12] dt-bindings: ufs: Add NXP S32N79 UFS host controller Larisa Grigore
2026-09-25 16:43 ` Conor Dooley
2026-09-25 14:35 ` [PATCH v6 08/12] scsi: ufs: dwc: Sort CBCRCTRL and CBREFCLKCTRL2 by offset Larisa Grigore
2026-09-25 14:35 ` [PATCH v6 09/12] scsi: ufs: Add NXP S32N79 UFS host controller driver Larisa Grigore
2026-09-25 14:44 ` sashiko-bot [this message]
2026-09-25 14:35 ` [PATCH v6 10/12] arm64: dts: freescale: s32n79: Add UFS host controller Larisa Grigore
2026-09-25 14:35 ` [PATCH v6 11/12] arm64: dts: freescale: s32n79-rdb: Enable UFS Larisa Grigore
2026-09-25 14:35 ` [PATCH v6 12/12] MAINTAINERS: Add NXP S32N7 UFS host controller entry Larisa Grigore
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=20260925144435.3CE0A1F00893@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=larisa.grigore@oss.nxp.com \
--cc=linux-scsi@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox