From patchwork Wed Aug 2 07:59:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 13337811 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BB75C04A94 for ; Wed, 2 Aug 2023 08:00:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232124AbjHBIAg (ORCPT ); Wed, 2 Aug 2023 04:00:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232496AbjHBIAO (ORCPT ); Wed, 2 Aug 2023 04:00:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 759A530E9 for ; Wed, 2 Aug 2023 00:59:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ED556617B4 for ; Wed, 2 Aug 2023 07:59:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F4A6C433C7; Wed, 2 Aug 2023 07:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690963188; bh=DPtHQkSgaeEpcijgqXAMXl2TZmqWK1rPP/HuOaZUICc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uUnrUE1UgEu0zVV4FDrAwqOmJ2Lu0GKSMF6aMm3ckcs2uQ+mUqSEcv2yAZ7IBKTjn K7u7OeymC5bLN/CWJQg2Oy1Ucz8++jeGBar/FevKQL3QoAqgwWB7A5qvnji+lIfLlY gNCLxlAtz5QM5XszLziJBIw8wTUnXSJD5d67rAvCKSuhLb6v5VNqtjJbce8ktzpIa1 +GLReD17fBEA9RGGiT28fiS6OjpjqMlnAwQHOnfZhE+mGHTMQc23imqp43PbxzixTU 30MOMGBxDfwCz+r2PoVA+D//xf2MgPiTwGxZ+isCEGiymVRPLLEdQ7g1sbnFgmbuGV 59gBQmGxSpP2A== From: Damien Le Moal To: linux-pci@vger.kernel.org, Bjorn Helgaas Cc: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Lorenzo Pieralisi , Kishon Vijay Abraham I , Manivannan Sadhasivami , Serge Semin , Yoshihiro Shimoda Subject: [PATCH v2 1/2] PCI: Rename PCI_IRQ_LEGACY to PCI_IRQ_INTX Date: Wed, 2 Aug 2023 16:59:43 +0900 Message-ID: <20230802075944.937619-2-dlemoal@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230802075944.937619-1-dlemoal@kernel.org> References: <20230802075944.937619-1-dlemoal@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Bjorn Helgaas Rename PCI_IRQ_LEGACY to PCI_IRQ_INTX to be more explicit about the type of IRQ being referenced as well as to match the PCI specifications terms. Redefine PCI_IRQ_LEGACY as an alias to PCI_IRQ_INTX to avoid the need for doing the renaming tree-wide. New drivers and new code should now prefer using PCI_IRQ_INTX instead of PCI_IRQ_LEGACY. Signed-off-by: Bjorn Helgaas Signed-off-by: Damien Le Moal Reviewed-by: Yoshihiro Shimoda Reviewed-by: Serge Semin --- include/linux/pci.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index 0ff7500772e6..7692d73719e0 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1048,11 +1048,13 @@ enum { PCI_SCAN_ALL_PCIE_DEVS = 0x00000040, /* Scan all, not just dev 0 */ }; -#define PCI_IRQ_LEGACY (1 << 0) /* Allow legacy interrupts */ +#define PCI_IRQ_INTX (1 << 0) /* Allow INTx interrupts */ #define PCI_IRQ_MSI (1 << 1) /* Allow MSI interrupts */ #define PCI_IRQ_MSIX (1 << 2) /* Allow MSI-X interrupts */ #define PCI_IRQ_AFFINITY (1 << 3) /* Auto-assign affinity */ +#define PCI_IRQ_LEGACY PCI_IRQ_INTX /* prefer PCI_IRQ_INTX */ + /* These external functions are only available when PCI support is enabled */ #ifdef CONFIG_PCI