[tip:x86/amd-nb] hwmon/k10temp: Add support for AMD family 17h, model 30h CPUs

From: tip-bot for Woods, Brian
Date: Wed Nov 07 2018 - 15:45:39 EST


Commit-ID: 210ba1201ff950b3d05bfd8fa5d47540cea393c0
Gitweb: https://git.kernel.org/tip/210ba1201ff950b3d05bfd8fa5d47540cea393c0
Author: Woods, Brian <Brian.Woods@xxxxxxx>
AuthorDate: Tue, 6 Nov 2018 20:08:21 +0000
Committer: Borislav Petkov <bp@xxxxxxx>
CommitDate: Wed, 7 Nov 2018 21:39:13 +0100

hwmon/k10temp: Add support for AMD family 17h, model 30h CPUs

Add support for AMD family 17h model 30h processors for k10temp. Model
30h is functionally the same as model 01h processors (as far as k10temp
is concerned), just the PCI device IDs need to be updated.

Signed-off-by: Brian Woods <brian.woods@xxxxxxx>
Signed-off-by: Borislav Petkov <bp@xxxxxxx>
Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx>
CC: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
CC: Clemens Ladisch <clemens@xxxxxxxxxx>
CC: "H. Peter Anvin" <hpa@xxxxxxxxx>
CC: Ingo Molnar <mingo@xxxxxxxxxx>
CC: Jean Delvare <jdelvare@xxxxxxxx>
CC: Jia Zhang <qianyue.zj@xxxxxxxxxxxxxxx>
CC: <linux-hwmon@xxxxxxxxxxxxxxx>
CC: <linux-pci@xxxxxxxxxxxxxxx>
CC: Pu Wen <puwen@xxxxxxxx>
CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CC: x86-ml <x86@xxxxxxxxxx>
Link: http://lkml.kernel.org/r/20181106200754.60722-5-brian.woods@xxxxxxx
---
drivers/hwmon/k10temp.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index bc6871c8dd4e..9790f1f5eb98 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -360,6 +360,7 @@ static const struct pci_device_id k10temp_id_table[] = {
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_M30H_NB_F3) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_DF_F3) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M10H_DF_F3) },
+ { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M30H_DF_F3) },
{}
};
MODULE_DEVICE_TABLE(pci, k10temp_id_table);