From patchwork Wed Sep 11 09:44:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinjie Ruan X-Patchwork-Id: 13800118 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E44C7E110; Wed, 11 Sep 2024 09:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726047350; cv=none; b=qgMCimO3fNYootIpnRMk2hqsva8TMzHK2YLL9wT9Kg1a624tABPVT5M6D3FKiOTwljJ1gEC2xWOY+7vhA8yvus00r7nfAzTVK036b9p44aLZfdMCreFSLx/BxxahCXDlhGPEwX0gSg7PiZKxI/Tz+wZPULxMQF+nsCWroUDtFo0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726047350; c=relaxed/simple; bh=YKTAzuTAPAhmNZkS9NdUoRHE9sIRTmRBUa9a9AcStcc=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=a9LnvUwzSyZ5tPPiv+5kXY9SSflNXVQZ822Kt0E9rO5y48EHuilHoeb7/xdNNMpRuG6EFYQ+RIL9hFmqvX8faP/89kmNx0SI/vWjBpIg0r7B4vyHt8ofPifx5mt1KKt805vE2AwdkxcHE5BYSQZ40qansPK1pd33Mtc7B3kvEmc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4X3b4s6Z0czyQrp; Wed, 11 Sep 2024 17:34:37 +0800 (CST) Received: from kwepemh500013.china.huawei.com (unknown [7.202.181.146]) by mail.maildlp.com (Postfix) with ESMTPS id B47B114038F; Wed, 11 Sep 2024 17:35:44 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemh500013.china.huawei.com (7.202.181.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 11 Sep 2024 17:35:43 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , , , , , , CC: Subject: [PATCH net RESEND 0/3] net: Use IRQF_NO_AUTOEN flag in request_irq() Date: Wed, 11 Sep 2024 17:44:42 +0800 Message-ID: <20240911094445.1922476-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemh500013.china.huawei.com (7.202.181.146) X-Patchwork-Delegate: kuba@kernel.org 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(-)