Skip to contentSkip to conversation

iio: pressure: abp2030pa: Replace IRQF_ONESHOT with IRQF_NO_THREAD

PATCH Superseded Felix Gu 3 participants 4 messages Feb 26 – Feb 27

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Felix Gu

author
#0 lore raw

PATCH 1/1 iio: pressure: abp2030pa: Replace IRQF_ONESHOT with IRQF_NO_THREAD

Since commit aef30c8d569c ("genirq: Warn about using IRQF_ONESHOT without a threaded handler"), the IRQ core checks IRQF_ONESHOT flag in IRQ request and gives a warning if there is no threaded handler.

Replace IRQF_ONESHOT with IRQF_NO_THREAD.

Fixes 47d323ce1e89 ("iio: pressure: add Honeywell ABP2 driver")
---
 drivers/iio/pressure/abp2030pa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/pressure/abp2030pa.c +1 -1
index 4ca056a73cef..858e13e02bb4 100644
@@ -520,7 +520,7 @@ int abp2_common_probe(struct device *dev, const struct abp2_ops *ops, int irq)
 	data->p_offset = div_s64(odelta * data->pmin, pdelta) - data->outmin;
 
 	if (data->irq > 0) {
-		ret = devm_request_irq(dev, irq, abp2_eoc_handler, IRQF_ONESHOT,
+		ret = devm_request_irq(dev, irq, abp2_eoc_handler, IRQF_NO_THREAD,
 				       dev_name(dev), data);
 		if (ret)
 			return ret;

---
base-commit: 7d6661873f6b54c75195780a40d66bad3d482d8f
change-id: 20260227-abp-016a007ab817

Best regards,

Signature · 1 line
Felix Gu <[email protected]>
maintainer
#1 lore raw

hello,

based on previous feedback [1] IRQF_ONESHOT should be replaced with 0.

[1] https://lore.kernel.org/linux-iio/[email protected]/

best regards,
peter

Quoted 34 lines · Felix Gu

Since commit aef30c8d569c ("genirq: Warn about using IRQF_ONESHOT without a threaded handler"), the IRQ core checks IRQF_ONESHOT flag in IRQ request and gives a warning if there is no threaded handler.

Replace IRQF_ONESHOT with IRQF_NO_THREAD.

Fixes 47d323ce1e89 ("iio: pressure: add Honeywell ABP2 driver")
---
 drivers/iio/pressure/abp2030pa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/pressure/abp2030pa.c +1 -2
index 4ca056a73cef..858e13e02bb4 100644
@@ -520,7 +520,7 @@ int abp2_common_probe(struct device *dev, const struct abp2_ops *ops, int irq)
 	data->p_offset = div_s64(odelta * data->pmin, pdelta) - data->outmin;
 
 	if (data->irq > 0) {
-		ret = devm_request_irq(dev, irq, abp2_eoc_handler, IRQF_ONESHOT,
+		ret = devm_request_irq(dev, irq, abp2_eoc_handler, IRQF_NO_THREAD,
 				       dev_name(dev), data);
 		if (ret)
 			return ret;
 
---

base-commit: 7d6661873f6b54c75195780a40d66bad3d482d8f
change-id: 20260227-abp-016a007ab817

Best regards,

Signature · 1 line
Felix Gu <[email protected]>
Signature · 1 line
petre rodan
Reviewed-by on v1 1/1
#3 lore raw
In reply to Felix Gu
Quoted 8 lines · Felix Gu

Since commit aef30c8d569c ("genirq: Warn about using IRQF_ONESHOT without a threaded handler"), the IRQ core checks IRQF_ONESHOT flag in IRQ request and gives a warning if there is no threaded handler.

Replace IRQF_ONESHOT with IRQF_NO_THREAD.

Fixes 47d323ce1e89 ("iio: pressure: add Honeywell ABP2 driver")

Sebastian