History

Merge tag 'thermal-6.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull thermal control fix from Rafael Wysocki: "Fix a recently introduced deadlock in the int340x thermal control driver (Srinivas Pandruvada)" * tag 'thermal-6.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: thermal: intel: int340x: processor_thermal: Fix deadlock

Linus Torvalds committed 3 years ago

Commit a0aefd32 parents 55a2110 52f04f11 file · +4 −1Browse files

Unified · Split

drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c+4−1
@@ -166,7 +166,6 @@ static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, int temp · 165 unmodified lines
166 proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_THRES_0, _temp);166 proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_THRES_0, _temp);
167 proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_INT_ENABLE_0, 1);167 proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_INT_ENABLE_0, 1);
168 168
169 thermal_zone_device_enable(tzd);
170 pci_info->stored_thres = temp;169 pci_info->stored_thres = temp;
171 170
172 return 0;171 return 0;
@@ -268,6 +267,10 @@ static int proc_thermal_pci_probe(struct pci_dev *pdev, const struct pci_device_ · 95 unmodified lines
268 goto err_free_vectors;267 goto err_free_vectors;
269 }268 }
270 269
270 ret = thermal_zone_device_enable(pci_info->tzone);
271 if (ret)
272 goto err_free_vectors;
273
271 return 0;274 return 0;
272 275
273err_free_vectors:276err_free_vectors:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t