From mboxrd@z Thu Jan 1 00:00:00 1970 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 78595ECAAD3 for ; Sat, 17 Sep 2022 12:03:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229623AbiIQMDW (ORCPT ); Sat, 17 Sep 2022 08:03:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbiIQMDS (ORCPT ); Sat, 17 Sep 2022 08:03:18 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A62563204E for ; Sat, 17 Sep 2022 05:03:15 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id EE15F92009C; Sat, 17 Sep 2022 14:03:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id E70C492009B; Sat, 17 Sep 2022 13:03:14 +0100 (BST) Date: Sat, 17 Sep 2022 13:03:14 +0100 (BST) From: "Maciej W. Rozycki" To: Bjorn Helgaas cc: Stefan Roese , Jim Wilson , David Abdurachmanov , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/5] PCI: Export `pcie_cap_has_lnkctl2' In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Export `pcie_cap_has_lnkctl2' for external use. Signed-off-by: Maciej W. Rozycki --- New change in v5. --- drivers/pci/access.c | 2 +- drivers/pci/pci.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) linux-pcie-cap-has-lnkctl2-export.diff Index: linux-macro/drivers/pci/access.c =================================================================== --- linux-macro.orig/drivers/pci/access.c +++ linux-macro/drivers/pci/access.c @@ -350,7 +350,7 @@ bool pcie_cap_has_lnkctl(const struct pc type == PCI_EXP_TYPE_PCIE_BRIDGE; } -static inline bool pcie_cap_has_lnkctl2(const struct pci_dev *dev) +bool pcie_cap_has_lnkctl2(const struct pci_dev *dev) { return pcie_cap_has_lnkctl(dev) && pcie_cap_version(dev) > 1; } Index: linux-macro/drivers/pci/pci.h =================================================================== --- linux-macro.orig/drivers/pci/pci.h +++ linux-macro/drivers/pci/pci.h @@ -15,6 +15,7 @@ extern const unsigned char pcie_link_spe extern bool pci_early_dump; bool pcie_cap_has_lnkctl(const struct pci_dev *dev); +bool pcie_cap_has_lnkctl2(const struct pci_dev *dev); bool pcie_cap_has_rtctl(const struct pci_dev *dev); /* Functions internal to the PCI core code */