Re: [PATCH 2/2] hwmon: (k10temp): Load the driver on models A0h-AFh

From: Guenter Roeck
Date: Thu Jun 02 2022 - 17:05:12 EST


On 6/1/22 10:21, Mario Limonciello wrote:
commit 8bb050cd5cf4 ("hwmon: (k10temp) Support up to 12 CCDs on AMD
Family of processors") added the CCD offsets for models A0h-AFh but
didn't add the PCI device ID for the device.

Add the missing ID so the driver works on these models.

Fixes: 8bb050cd5cf4 ("hwmon: (k10temp) Support up to 12 CCDs on AMD Family of processors")
Signed-off-by: Mario Limonciello <mario.limonciello@xxxxxxx>

I can not apply this patch without the context patch (which I wasn't
copied on), so I assume the idea is to push this through the x86
tree. This is ok with me.

Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx>

---
drivers/hwmon/k10temp.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index 4e239bd75b1d..80a489f89aa2 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -493,6 +493,7 @@ static const struct pci_device_id k10temp_id_table[] = {
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_19H_M10H_DF_F3) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_19H_M40H_DF_F3) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_19H_M50H_DF_F3) },
+ { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_19H_MA0H_DF_F3) },
{ PCI_VDEVICE(HYGON, PCI_DEVICE_ID_AMD_17H_DF_F3) },
{}
};