linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH wireless v2 0/3] wifi: Use IRQF_NO_AUTOEN flag in request_irq()
@ 2024-09-10 12:43 Jinjie Ruan
  2024-09-10 12:43 ` [PATCH wireless v2 1/3] wifi: p54: " Jinjie Ruan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jinjie Ruan @ 2024-09-10 12:43 UTC (permalink / raw)
  To: chunkeey, kvalo, briannorris, francesco, krzysztof.kozlowski,
	leitao, linville, rajatja, linux-wireless, linux-kernel
  Cc: ruanjinjie

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-18 13:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10 12:43 [PATCH wireless v2 0/3] wifi: Use IRQF_NO_AUTOEN flag in request_irq() Jinjie Ruan
2024-09-10 12:43 ` [PATCH wireless v2 1/3] wifi: p54: " Jinjie Ruan
2024-09-18 13:54   ` Kalle Valo
2024-09-10 12:43 ` [PATCH wireless v2 2/3] wifi: mwifiex: " Jinjie Ruan
2024-09-10 17:17   ` Brian Norris
2024-09-10 12:43 ` [PATCH wireless v2 3/3] wifi: wl1251: " Jinjie Ruan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).