From: sashiko-bot@kernel.org
To: "Mario Limonciello" <mario.limonciello@amd.com>
Cc: linux-pci@vger.kernel.org, linux-hwmon@vger.kernel.org
Subject: Re: [PATCH] hwmon: (k10temp): Add PCI IDs for 1ah/80h
Date: Fri, 11 Sep 2026 13:51:25 +0000 [thread overview]
Message-ID: <20260911135125.8CECE1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260911134304.226286-1-mario.limonciello@amd.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The new PCI device ID `PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3` is inappropriately added to the global `include/linux/pci_ids.h` instead of being defined locally in the driver.
--
commit 7a5a1abca982d7be5902a75b129f16bd3cb32d69
Author: Mario Limonciello <mario.limonciello@amd.com>
hwmon: (k10temp): Add PCI IDs for 1ah/80h
This commit adds a new PCI ID to support AMD Family 1Ah model 80h processors
in the k10temp hardware monitoring driver.
[ ... ]
> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> index 63774ae2bf71d..57a4ad9984798 100644
> --- a/include/linux/pci_ids.h
> +++ b/include/linux/pci_ids.h
> @@ -585,6 +585,7 @@
> #define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3 0x16fb
> #define PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3 0x124b
> #define PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3 0x12bb
> +#define PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3 0x1243
[Severity: Low]
Should this new device ID be defined locally in drivers/hwmon/k10temp.c
instead of the global include/linux/pci_ids.h header?
There is an existing comment in drivers/hwmon/k10temp.c that establishes
the practice for these specific devices:
/*
* PCI Device IDs for AMD's Family 1Ah-based SOCs.
* Defining locally as IDs are not shared.
*/
Since this ID does not appear to be shared with other drivers, would it
be more appropriate to define it directly in the k10temp driver to avoid
cluttering the global PCI IDs header?
> #define PCI_DEVICE_ID_AMD_MI200_DF_F3 0x14d3
> #define PCI_DEVICE_ID_AMD_MI300_DF_F3 0x152b
> #define PCI_DEVICE_ID_AMD_VANGOGH_USB 0x163a
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260911134304.226286-1-mario.limonciello@amd.com?part=1
next prev parent reply other threads:[~2026-09-11 13:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-11 13:43 [PATCH] hwmon: (k10temp): Add PCI IDs for 1ah/80h Mario Limonciello
2026-09-11 13:51 ` sashiko-bot [this message]
2026-09-11 14:24 ` Guenter Roeck
2026-09-11 14:26 ` Mario Limonciello
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=20260911135125.8CECE1F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mario.limonciello@amd.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