public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net RESEND 0/3] net: Use IRQF_NO_AUTOEN flag in request_irq()
@ 2024-09-11  9:44 Jinjie Ruan
  2024-09-11  9:44 ` [PATCH net RESEND 1/3] net: apple: bmac: " Jinjie Ruan
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jinjie Ruan @ 2024-09-11  9:44 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, claudiu.manoil, vladimir.oltean,
	louis.peens, damien.lemoal, set_pte_at, mpe, horms, yinjun.zhang,
	ryno.swart, johannes.berg, fei.qin, netdev, linux-kernel,
	oss-drivers
  Cc: ruanjinjie

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

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.

v1 -> RESNED
- Add reviewed-by.
- Put wireless into another patch set.
- Update to net prefix subject.

Jinjie Ruan (3):
  net: apple: bmac: Use IRQF_NO_AUTOEN flag in request_irq()
  net: enetc: Use IRQF_NO_AUTOEN flag in request_irq()
  nfp: Use IRQF_NO_AUTOEN flag in request_irq()

 drivers/net/ethernet/apple/bmac.c                   | 3 +--
 drivers/net/ethernet/freescale/enetc/enetc.c        | 3 +--
 drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 5 ++---
 3 files changed, 4 insertions(+), 7 deletions(-)

-- 
2.34.1


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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-11  9:44 [PATCH net RESEND 0/3] net: Use IRQF_NO_AUTOEN flag in request_irq() Jinjie Ruan
2024-09-11  9:44 ` [PATCH net RESEND 1/3] net: apple: bmac: " Jinjie Ruan
2024-09-11  9:44 ` [PATCH net RESEND 2/3] net: enetc: " Jinjie Ruan
2024-09-11  9:44 ` [PATCH net RESEND 3/3] nfp: " Jinjie Ruan
2024-09-13  3:50 ` [PATCH net RESEND 0/3] net: " patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox