From: sashiko-bot@kernel.org
To: "Colin Huang" <colin.huang2@amd.com>
Cc: conor+dt@kernel.org, robh@kernel.org,
linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v5 2/2] hwmon: (pmbus/tda38740) Add driver for Infineon TDA38740/TDA38725
Date: Thu, 17 Sep 2026 11:41:16 +0000 [thread overview]
Message-ID: <20260917114117.36ADB1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260917-add-tda38740-and-tda38725-v5-2-7fc19668ada4@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] acpi: of_match_ptr() breaks PRP0001 ACPI matching without CONFIG_OF
--
commit 7b99b2a1da30b603fdd50ea7b04df230634e2572
Author: Colin Huang <u8813345@gmail.com>
hwmon: (pmbus/tda38740) Add driver for Infineon TDA38740/TDA38725
Add a PMBus driver for Infineon TDA38740 and TDA38725
single-voltage synchronous buck regulators.
> diff --git a/drivers/hwmon/pmbus/tda38740.c b/drivers/hwmon/pmbus/tda38740.c
> new file mode 100644
> index 0000000000000..1b981c7686453
> --- /dev/null
> +++ b/drivers/hwmon/pmbus/tda38740.c
[ ... ]
> +static const struct of_device_id __maybe_unused tda38740_of_match[] = {
^^^^^^^^^^^^^^
[Severity: Medium]
Could we drop this annotation? It appears it is only needed because of the
of_match_ptr() usage below.
> + { .compatible = "infineon,tda38725"},
> + { .compatible = "infineon,tda38740"},
> + {}
> +};
> +MODULE_DEVICE_TABLE(of, tda38740_of_match);
> +
> +static struct i2c_driver tda38740_driver = {
> + .driver = {
> + .name = "tda38740",
> + .of_match_table = of_match_ptr(tda38740_of_match),
^^^^^^^^^^^^
[Severity: Medium]
Will this break device binding on ACPI-based systems?
When CONFIG_OF is disabled, the of_match_ptr() macro evaluates to NULL. This
strips the of_match_table from the device_driver struct, which prevents the
ACPI subsystem from using the PRP0001 compatible string mechanism to match
and bind the device.
Dropping of_match_ptr() would allow ACPI platforms without OF to still match
using these compatible strings.
> + },
> + .probe = tda38740_probe,
> + .id_table = tda38740_id,
> +};
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260917-add-tda38740-and-tda38725-v5-0-7fc19668ada4@gmail.com?part=2
prev parent reply other threads:[~2026-09-17 11:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 11:33 [PATCH v5 0/2] Add driver for Infineon TDA38740/TDA38725 Colin Huang
2026-09-17 11:33 ` [PATCH v5 1/2] dt-bindings: hwmon: pmbus: Add Infineon tda38740 and tda38725 Colin Huang
2026-09-17 11:38 ` sashiko-bot
2026-09-17 11:33 ` [PATCH v5 2/2] hwmon: (pmbus/tda38740) Add driver for Infineon TDA38740/TDA38725 Colin Huang
2026-09-17 11:41 ` 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=20260917114117.36ADB1F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=colin.huang2@amd.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-hwmon@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