From: sashiko-bot@kernel.org
To: "Santhosh Kumar K" <s-k6@ti.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/2] memory: ti-k3-fsas: Add TI FSS_FSAS driver
Date: Mon, 29 Jun 2026 06:50:51 +0000 [thread overview]
Message-ID: <20260629065055.25A9B1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260629064228.860226-3-s-k6@ti.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Incorrect wrapper macro `pm_sleep_ptr()` used for the `dev_pm_ops` structure pointer.
--
commit be06c2a7e885af5ffba7e5ddc137bd7ba0758747
Author: Santhosh Kumar K <s-k6@ti.com>
memory: ti-k3-fsas: Add TI FSS_FSAS driver
This commit adds a new platform driver for the TI K3 Flash Subsystem
Application Subsystem (FSS_FSAS). It configures the SYSCONFIG register to
disable OSPI XIP prefetch, preventing DMA data corruption.
> diff --git a/drivers/memory/ti-k3-fsas.c b/drivers/memory/ti-k3-fsas.c
> new file mode 100644
> index 0000000000000..9ff109b8d96fd
> --- /dev/null
> +++ b/drivers/memory/ti-k3-fsas.c
[ ... ]
> +static DEFINE_SIMPLE_DEV_PM_OPS(k3_fsas_pm_ops, NULL, k3_fsas_resume);
> +
> +static const struct of_device_id k3_fsas_of_match[] = {
> + { .compatible = "ti,am62a-fsas" },
> + { /* sentinel */ }
> +};
> +MODULE_DEVICE_TABLE(of, k3_fsas_of_match);
> +
> +static struct platform_driver k3_fsas_driver = {
> + .probe = k3_fsas_probe,
> + .driver = {
> + .name = "k3-fsas",
> + .of_match_table = k3_fsas_of_match,
> + .pm = pm_sleep_ptr(&k3_fsas_pm_ops),
[Severity: Low]
Should this use pm_ptr() instead of pm_sleep_ptr() for the dev_pm_ops
structure pointer?
The PM subsystem guidelines specify that pm_sleep_ptr() is intended for the
individual sleep callbacks, while pm_ptr() should be used for the dev_pm_ops
structure pointer itself. While this doesn't cause immediate issues since
the driver currently only uses sleep callbacks, using pm_ptr() here ensures
consistency with standard PM usage and prevents issues if runtime PM
callbacks are added later.
> + },
> +};
> +module_platform_driver(k3_fsas_driver);
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260629064228.860226-1-s-k6@ti.com?part=2
prev parent reply other threads:[~2026-06-29 6:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-29 6:42 [PATCH 0/2] Fix OSPI DMA corruption via FSS_FSAS driver Santhosh Kumar K
2026-06-29 6:42 ` [PATCH 1/2] dt-bindings: memory: Add TI FSS_FSAS binding Santhosh Kumar K
2026-06-29 6:47 ` sashiko-bot
2026-06-29 6:42 ` [PATCH 2/2] memory: ti-k3-fsas: Add TI FSS_FSAS driver Santhosh Kumar K
2026-06-29 6:50 ` 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=20260629065055.25A9B1F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s-k6@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox