[PATCH wireless v2 0/3] wifi: Use IRQF_NO_AUTOEN flag in request_irq()

From: Jinjie Ruan
Date: Tue Sep 10 2024 - 08:34:29 EST


As commit cbe16f35bee6 ("genirq: Add IRQF_NO_AUTOEN for request_irq/nmi()")
said, reqeust_irq() and then disable_irq() is unsafe.

And the code below is subobtimal:
irq_set_status_flags(irq, IRQ_NOAUTOEN);
request_irq(dev, irq...);

IRQF_NO_AUTOEN flag can be used by drivers to request_irq(). It prevents
the automatic enabling of the requested interrupt in the same safe way.
With that the usage can be simplified and corrected.

Only compile-tested.

Changes in v2:
- wireless prefixed subject and submit them in a separate patchset.
- Add fix tag.

Jinjie Ruan (3):
wifi: p54: Use IRQF_NO_AUTOEN flag in request_irq()
wifi: mwifiex: Use IRQF_NO_AUTOEN flag in request_irq()
wifi: wl1251: Use IRQF_NO_AUTOEN flag in request_irq()

drivers/net/wireless/intersil/p54/p54spi.c | 4 +---
drivers/net/wireless/marvell/mwifiex/main.c | 4 ++--
drivers/net/wireless/ti/wl1251/sdio.c | 4 ++--
3 files changed, 5 insertions(+), 7 deletions(-)

--
2.34.1