Skip to contentSkip to conversation

iio: pressure: abp2030pa: Remove IRQF_ONESHOT from devm_request_irq()

PATCH Applied Felix Gu 3 participants 4 messages Feb 27 – Feb 28

Subsystems (2)
lore
Share & tools
lore

Felix Gu

author
#0 lore raw

PATCH v2 1/1 iio: pressure: abp2030pa: Remove IRQF_ONESHOT from devm_request_irq()

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.

Remove IRQF_ONESHOT from devm_request_irq().

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

---
Changes in v2:
- Fixes Petre's comment.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 drivers/iio/pressure/abp2030pa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/pressure/abp2030pa.c +1 -1
index 4ca056a73cef..b44f1bf4c633 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, 0,
 				       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 Applied
#1 lore raw
Quoted 9 lines · On Fri, 27 Feb 2026 21:54:29 +0800 Felix Gu <[email protected]> wrote:

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.

Remove IRQF_ONESHOT from devm_request_irq().

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

Applied to the fixes-togreg branch of iio.git. If Petre wants to take another look and perhaps give a tag that would still be welcom.

Thanks!

Jonathan

Quoted 27 lines

---
Changes in v2:
- Fixes Petre's comment.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 drivers/iio/pressure/abp2030pa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/pressure/abp2030pa.c +1 -2
index 4ca056a73cef..b44f1bf4c633 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, 0,
 				       dev_name(dev), data);
 		if (ret)
 			return ret;
 
---

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

Best regards,

maintainer Tested-by
#2 lore raw

hello!

Quoted 7 lines · Jonathan Cameron
Quoted 4 lines · On Fri, 27 Feb 2026 21:54:29 +0800 Felix Gu <[email protected]> wrote:

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.

Quoted 8 lines
Quoted 5 lines

Remove IRQF_ONESHOT from devm_request_irq().

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

Applied to the fixes-togreg branch of iio.git. If Petre wants to take another look and perhaps give a tag that would still be welcom.

thank you for the patch, Felix.
took me a hot minute to upgrade everything to 7.0.0, you were both too fast :)

best regards,
peter

Quoted 33 lines

Thanks!

Jonathan

Quoted 27 lines

---
Changes in v2:
- Fixes Petre's comment.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 drivers/iio/pressure/abp2030pa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/pressure/abp2030pa.c +1 -2
index 4ca056a73cef..b44f1bf4c633 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, 0,
 				       dev_name(dev), data);
 		if (ret)
 			return ret;
 
---

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

Best regards,

Signature · 1 line
petre rodan
maintainer
#3 lore raw
Quoted 16 lines · On Sat, 28 Feb 2026 15:16:32 +0200 Petre Rodan <[email protected]>…

hello!

Quoted 13 lines · Jonathan Cameron
Quoted 9 lines · On Fri, 27 Feb 2026 21:54:29 +0800 Felix Gu <[email protected]> wrote:

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.

Remove IRQF_ONESHOT from devm_request_irq().

Fixes 47d323ce1e89 ("iio: pressure: add Honeywell ABP2 driver")
Quoted 7 lines
Quoted 2 lines

Applied to the fixes-togreg branch of iio.git. If Petre wants to take another look and perhaps give a tag that would still be welcom.

thank you for the patch, Felix.
took me a hot minute to upgrade everything to 7.0.0, you were both too fast :)

Thanks Petre!

Added the tag.

Jonathan

Quoted 38 lines

best regards,
peter

Quoted 33 lines

Thanks!

Jonathan

Quoted 27 lines

---
Changes in v2:
- Fixes Petre's comment.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 drivers/iio/pressure/abp2030pa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/pressure/abp2030pa.c +1 -2
index 4ca056a73cef..b44f1bf4c633 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, 0,
 				       dev_name(dev), data);
 		if (ret)
 			return ret;
 
---

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

Best regards,