Merge branch 'net-use-irqf_no_autoen-flag-in-request_irq'
authorJakub Kicinski <kuba@kernel.org>
Fri, 13 Sep 2024 03:35:09 +0000 (20:35 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Sep 2024 03:35:10 +0000 (20:35 -0700)
commitf0c7de5a5f892f7cf60a0593d06430119a22d23e
tree33c581366626f4d01deb52aa638aed2a0fc855b8
parent5905c024a776c7f592581551993817aaf0cd1f36
parentdaaba19d357f0900b303a530ced96c78086267ea
Merge branch 'net-use-irqf_no_autoen-flag-in-request_irq'

Jinjie Ruan says:

====================
net: Use IRQF_NO_AUTOEN flag in request_irq()

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.
====================

Link: https://patch.msgid.link/20240911094445.1922476-1-ruanjinjie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>