aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/int340x_thermal/int340x_thermal_zone.c6
-rw-r--r--drivers/thermal/int340x_thermal/processor_thermal_device.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/drivers/thermal/int340x_thermal/int340x_thermal_zone.c b/drivers/thermal/int340x_thermal/int340x_thermal_zone.c
index 145a5c53ff5c..dfdf6dbc2ddc 100644
--- a/drivers/thermal/int340x_thermal/int340x_thermal_zone.c
+++ b/drivers/thermal/int340x_thermal/int340x_thermal_zone.c
@@ -147,9 +147,9 @@ static int int340x_thermal_get_trip_hyst(struct thermal_zone_device *zone,
147 147
148 status = acpi_evaluate_integer(d->adev->handle, "GTSH", NULL, &hyst); 148 status = acpi_evaluate_integer(d->adev->handle, "GTSH", NULL, &hyst);
149 if (ACPI_FAILURE(status)) 149 if (ACPI_FAILURE(status))
150 return -EIO; 150 *temp = 0;
151 151 else
152 *temp = hyst * 100; 152 *temp = hyst * 100;
153 153
154 return 0; 154 return 0;
155} 155}
diff --git a/drivers/thermal/int340x_thermal/processor_thermal_device.c b/drivers/thermal/int340x_thermal/processor_thermal_device.c
index 80bbf9ce2fb6..284cf2c5a8fd 100644
--- a/drivers/thermal/int340x_thermal/processor_thermal_device.c
+++ b/drivers/thermal/int340x_thermal/processor_thermal_device.c
@@ -43,6 +43,9 @@
43#define PCI_DEVICE_ID_PROC_BXTX_THERMAL 0x4A8C 43#define PCI_DEVICE_ID_PROC_BXTX_THERMAL 0x4A8C
44#define PCI_DEVICE_ID_PROC_BXTP_THERMAL 0x5A8C 44#define PCI_DEVICE_ID_PROC_BXTP_THERMAL 0x5A8C
45 45
46/* GeminiLake thermal reporting device */
47#define PCI_DEVICE_ID_PROC_GLK_THERMAL 0x318C
48
46struct power_config { 49struct power_config {
47 u32 index; 50 u32 index;
48 u32 min_uw; 51 u32 min_uw;
@@ -467,6 +470,7 @@ static const struct pci_device_id proc_thermal_pci_ids[] = {
467 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXTP_THERMAL)}, 470 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXTP_THERMAL)},
468 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_CNL_THERMAL)}, 471 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_CNL_THERMAL)},
469 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_CFL_THERMAL)}, 472 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_CFL_THERMAL)},
473 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_GLK_THERMAL)},
470 { 0, }, 474 { 0, },
471}; 475};
472 476