Skip to contentSkip to conversation

thermal/drivers/qcom/lmh: Fix irq handler return value

PATCH Applied Bjorn Andersson 3 participants 3 messages Mar 16, 2022 – Dec 9, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal/drivers/qcom/lmh: Fix irq handler return value

After enough invocations the LMh irq is eventually reported as bad, because the handler doesn't return IRQ_HANDLED, fix this.

Fixes 53bca371cdf7 ("thermal/drivers/qcom: Add support for LMh driver")
---
 drivers/thermal/qcom/lmh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/qcom/lmh.c +1 -1
index c7f91cbdccc7..af9f0872614f 100644
@@ -45,7 +45,7 @@ static irqreturn_t lmh_handle_irq(int hw_irq, void *data)
 	if (irq)
 		generic_handle_irq(irq);
 
-	return 0;
+	return IRQ_HANDLED;
 }
 
 static void lmh_enable_interrupt(struct irq_data *d)
Signature · 1 line
2.33.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Bjorn Andersson

After enough invocations the LMh irq is eventually reported as bad, because the handler doesn't return IRQ_HANDLED, fix this.

Fixes 53bca371cdf7 ("thermal/drivers/qcom: Add support for LMh driver")
Quoted 20 lines
---
 drivers/thermal/qcom/lmh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/qcom/lmh.c +1 -2
index c7f91cbdccc7..af9f0872614f 100644
@@ -45,7 +45,7 @@ static irqreturn_t lmh_handle_irq(int hw_irq, void *data)
        if (irq)
                generic_handle_irq(irq);
 
-       return 0;
+       return IRQ_HANDLED;
 }
 
 static void lmh_enable_interrupt(struct irq_data *d)
--

2.33.1

Signature · 2 lines
With best wishes
Dmitry
#2 lore raw
In reply to Bjorn Andersson
The following commit has been merged into the thermal/next branch of thermal:

The following commit has been merged into the thermal/next branch of thermal:

Commit-ID:     1c5ec8178db2c71a9c20bd5da03eb1a7165121d3
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//1c5ec8178db2c71a9c20bd5da03eb1a7165121d3
Author:        Bjorn Andersson <[email protected]>
AuthorDate:    Wed, 16 Mar 2022 11:03:22 -07:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Thu, 08 Dec 2022 17:45:04 +01:00

thermal/drivers/qcom/lmh: Fix irq handler return value

After enough invocations the LMh irq is eventually reported as bad, because the handler doesn't return IRQ_HANDLED, fix this.

---
 drivers/thermal/qcom/lmh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/qcom/lmh.c +1 -1
index d3d9b9f..4122a51 100644
@@ -45,7 +45,7 @@ static irqreturn_t lmh_handle_irq(int hw_irq, void *data)
 	if (irq)
 		generic_handle_irq(irq);
 
-	return 0;
+	return IRQ_HANDLED;
 }
 
 static void lmh_enable_interrupt(struct irq_data *d)