Commit 096597cf authored by Srinivas Pandruvada's avatar Srinivas Pandruvada Committed by Rafael J. Wysocki

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: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fixes: f0658708 ("thermal: int340x: processor_thermal: Use non MSI interrupts by default")
Cc: 6.7+ <stable@vger.kernel.org> # 6.7+
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent d284d6cd
...@@ -150,7 +150,7 @@ static irqreturn_t proc_thermal_irq_handler(int irq, void *devid) ...@@ -150,7 +150,7 @@ static irqreturn_t proc_thermal_irq_handler(int irq, void *devid)
{ {
struct proc_thermal_pci *pci_info = devid; struct proc_thermal_pci *pci_info = devid;
struct proc_thermal_device *proc_priv; struct proc_thermal_device *proc_priv;
int ret = IRQ_HANDLED; int ret = IRQ_NONE;
u32 status; u32 status;
proc_priv = pci_info->proc_priv; proc_priv = pci_info->proc_priv;
...@@ -175,6 +175,7 @@ static irqreturn_t proc_thermal_irq_handler(int irq, void *devid) ...@@ -175,6 +175,7 @@ static irqreturn_t proc_thermal_irq_handler(int irq, void *devid)
/* Disable enable interrupt flag */ /* Disable enable interrupt flag */
proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_INT_ENABLE_0, 0); proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_INT_ENABLE_0, 0);
pkg_thermal_schedule_work(&pci_info->work); pkg_thermal_schedule_work(&pci_info->work);
ret = IRQ_HANDLED;
} }
pci_write_config_byte(pci_info->pdev, 0xdc, 0x01); pci_write_config_byte(pci_info->pdev, 0xdc, 0x01);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment