Skip to contentSkip to conversation

hwmon: (k10temp) Add support for Raven Ridge (Ryzen APU)

PATCH In review ojab 2 participants 3 messages Apr 27, 2018

Subsystems (2)
lore
Share & tools
lore

ojab

author
#0 lore raw

PATCH 1/1 hwmon: (k10temp) Add support for Raven Ridge (Ryzen APU)

---
 drivers/hwmon/k10temp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/hwmon/k10temp.c +2 -0
index 051a72e..0e428b0 100644
@@ -39,6 +39,7 @@ static DEFINE_MUTEX(nb_smu_ind_mutex);
 #ifndef PCI_DEVICE_ID_AMD_17H_DF_F3
 #define PCI_DEVICE_ID_AMD_17H_DF_F3	0x1463
 #endif
+#define PCI_DEVICE_ID_AMD_RAVEN_RIDGE	0x15d0
 
 /* CPUID function 0x80000001, ebx */
 #define CPUID_PKGTYPE_MASK	0xf0000000
@@ -292,6 +293,7 @@ static const struct pci_device_id k10temp_id_table[] = {
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F3) },
 	{ 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_RAVEN_RIDGE) },
 	{}
 };
 MODULE_DEVICE_TABLE(pci, k10temp_id_table);
Signature · 1 line
2.10.0
maintainer
#1 lore raw

Hi,

Quoted 1 line · ojab

Thanks a lot for your patch. Note though that a similar patch was applied yesterday to the upstream kernel, so your patch is no longer necessary.

For future submissions, please consider the following.

- Please provide additional information in the patch description.
- Please provide a full name.
- Please follow existing naming conventions.

Thanks,
Guenter

Quoted 31 lines
---
 drivers/hwmon/k10temp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/hwmon/k10temp.c +2 -0
index 051a72e..0e428b0 100644
@@ -39,6 +39,7 @@ static DEFINE_MUTEX(nb_smu_ind_mutex);
 #ifndef PCI_DEVICE_ID_AMD_17H_DF_F3
 #define PCI_DEVICE_ID_AMD_17H_DF_F3	0x1463
 #endif
+#define PCI_DEVICE_ID_AMD_RAVEN_RIDGE	0x15d0
 
 /* CPUID function 0x80000001, ebx */
 #define CPUID_PKGTYPE_MASK	0xf0000000
@@ -292,6 +293,7 @@ static const struct pci_device_id k10temp_id_table[] = {
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F3) },
 	{ 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_RAVEN_RIDGE) },
 	{}
 };
 MODULE_DEVICE_TABLE(pci, k10temp_id_table);
Signature · 6 lines
2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#2 lore raw

Ouch, used 4.17-rc2 as a reference. Thanks!

//wbr ojab

Quoted 49 lines · Guenter Roeck

Hi,

Quoted 1 line · ojab

Thanks a lot for your patch. Note though that a similar patch was applied yesterday to the upstream kernel, so your patch is no longer necessary.

For future submissions, please consider the following.

- Please provide additional information in the patch description.
- Please provide a full name.
- Please follow existing naming conventions.

Thanks,
Guenter

Quoted 31 lines
---
 drivers/hwmon/k10temp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/hwmon/k10temp.c +2 -1
index 051a72e..0e428b0 100644
@@ -39,6 +39,7 @@ static DEFINE_MUTEX(nb_smu_ind_mutex);
 #ifndef PCI_DEVICE_ID_AMD_17H_DF_F3
 #define PCI_DEVICE_ID_AMD_17H_DF_F3  0x1463
 #endif
+#define PCI_DEVICE_ID_AMD_RAVEN_RIDGE        0x15d0
 
 /* CPUID function 0x80000001, ebx */
 #define CPUID_PKGTYPE_MASK   0xf0000000
@@ -292,6 +293,7 @@ static const struct pci_device_id k10temp_id_table[] = {
      { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F3) },
      { 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_RAVEN_RIDGE) },
      {}
 };
 MODULE_DEVICE_TABLE(pci, k10temp_id_table);
--

2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html