Skip to content

Commit 096597c

Browse files
spandruvadarafaeljw
authored andcommitted
thermal: int340x: processor_thermal: Support shared interrupts
On some systems the processor thermal device interrupt is shared with other PCI devices. In this case return IRQ_NONE from the interrupt handler when the interrupt is not for the processor thermal device. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Fixes: f065870 ("thermal: int340x: processor_thermal: Use non MSI interrupts by default") Cc: 6.7+ <stable@vger.kernel.org> # 6.7+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent d284d6c commit 096597c

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
@@ -150,7 +150,7 @@ static irqreturn_t proc_thermal_irq_handler(int irq, void *devid)
150150
{
151151
struct proc_thermal_pci *pci_info = devid;
152152
struct proc_thermal_device *proc_priv;
153-
int ret = IRQ_HANDLED;
153+
int ret = IRQ_NONE;
154154
u32 status;
155155

156156
proc_priv = pci_info->proc_priv;
@@ -175,6 +175,7 @@ static irqreturn_t proc_thermal_irq_handler(int irq, void *devid)
175175
/* Disable enable interrupt flag */
176176
proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_INT_ENABLE_0, 0);
177177
pkg_thermal_schedule_work(&pci_info->work);
178+
ret = IRQ_HANDLED;
178179
}
179180

180181
pci_write_config_byte(pci_info->pdev, 0xdc, 0x01);

0 commit comments

Comments
 (0)