Skip to content

Commit 1ced5dc

Browse files
spandruvadarafaeljw
authored andcommitted
thermal: int340x: processor_thermal: Ack all PCI interrupts
All interrupts from the processor thermal PCI device require ACK. This is done by writing 0x01 at offset 0xDC in the config space. This is already done for the thereshold interrupt. Extend this for the workload hint interrupt. Fixes: e682b86 ("thermal: int340x: Handle workload hint interrupts") Signed-off-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent a966a0d commit 1ced5dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,11 @@ static irqreturn_t proc_thermal_irq_handler(int irq, void *devid)
154154
if (status) {
155155
/* Disable enable interrupt flag */
156156
proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_INT_ENABLE_0, 0);
157-
pci_write_config_byte(pci_info->pdev, 0xdc, 0x01);
158157
pkg_thermal_schedule_work(&pci_info->work);
159158
}
160159

160+
pci_write_config_byte(pci_info->pdev, 0xdc, 0x01);
161+
161162
return ret;
162163
}
163164

0 commit comments

Comments
 (0)