From: sashiko-bot@kernel.org
To: "Yixun Lan" <dlan@kernel.org>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH v4 3/3] riscv: dts: spacemit: k3: Add UFS support
Date: Tue, 08 Sep 2026 07:52:34 +0000 [thread overview]
Message-ID: <20260908075235.3C3041F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260908-08-k3-ufs-support-v4-3-22aa2bd97d3b@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The platform driver is missing power management operations (.pm), which breaks system suspend/resume and runtime PM.
--
commit e432cf6faf83c7fe0612ce4cb8a3f5d0731598d9
Author: Yixun Lan <dlan@kernel.org>
scsi: ufs: spacemit: k3: Add UFS Host Controller driver
SpacemiT K3 SoC consist of UFS (Universal Flash Storage) Host Controller
which has features compatible with JEDEC UFS 2.2, MIPI UniPro v1.61 and
M-PHY v3.0 standard.
> diff --git a/drivers/ufs/host/ufs-spacemit.c b/drivers/ufs/host/ufs-spacemit.c
> new file mode 100644
> index 0000000000000..9d037d90ac5e3
> --- /dev/null
> +++ b/drivers/ufs/host/ufs-spacemit.c
[ ... ]
> +static struct platform_driver ufs_spacemit_pltform = {
> + .probe = ufs_spacemit_probe,
> + .remove = ufs_spacemit_remove,
> + .driver = {
> + .name = "ufshcd-spacemit",
> + .of_match_table = of_match_ptr(ufs_spacemit_of_match),
> + },
> +};
[Severity: High]
Does this platform driver need power management operations assigned to .pm?
Since .pm is missing in ufs_spacemit_pltform, the platform bus PM core won't
invoke any callbacks during system suspend/resume or runtime PM transitions.
This means the host controller and attached UFS device might not be placed
into a low-power state or have their hardware queues properly flushed during
suspend, and could resume in an inconsistent state causing hardware hangs or
data corruption if parent buses were powered down.
Could .pm be set here (for example, to a dev_pm_ops struct utilizing
ufshcd_system_suspend and ufshcd_runtime_suspend) to ensure the PM core
manages the UFS controller's power state?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260908-08-k3-ufs-support-v4-0-22aa2bd97d3b@kernel.org?part=3
next prev parent reply other threads:[~2026-09-08 7:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 7:42 [PATCH v4 0/3] Add UFS Host driver support for SpacemiT K3 SoC Yixun Lan
2026-09-08 7:42 ` [PATCH v4 1/3] scsi: ufs: spacemit: dt-bindings: Add UFS controller for " Yixun Lan
2026-09-08 17:59 ` Conor Dooley
2026-09-09 2:13 ` Yixun Lan
2026-09-08 7:42 ` [PATCH v4 2/3] scsi: ufs: spacemit: k3: Add UFS Host Controller driver Yixun Lan
2026-09-08 7:55 ` sashiko-bot
2026-09-10 4:39 ` Yixun Lan
2026-09-08 7:42 ` [PATCH v4 3/3] riscv: dts: spacemit: k3: Add UFS support Yixun Lan
2026-09-08 7:52 ` sashiko-bot [this message]
2026-09-11 20:26 ` [PATCH v4 0/3] Add UFS Host driver support for SpacemiT K3 SoC Aurelien Jarno
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=20260908075235.3C3041F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).