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 X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E2E7C10F14 for ; Thu, 11 Apr 2019 10:17:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3D07620818 for ; Thu, 11 Apr 2019 10:17:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gLswVrCW"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="J2l9ojnt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3D07620818 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=prZgdhKybXzl2E5B5emNnlQSTROkGGm8bZmUlV3Gmlo=; b=gLswVrCWUERMvdpML/z6wh36q VXLqGncnkSGVypig83iJigi+CxVMjcWDIvqBwvj7wtkvyN7GgV1PaNrGF/ahrKZwltAcIMwPKvRS+ vYthL7VdnpvTKvA4neGjkauNbhD/0WB0UnRKen0sJ2sHoUBeBKPfl+6wMS+u0zT9JI0woHxuIH90X /SPZ2HZpbSoXLwch25AWubCBFy1y30qwn4mZZHXvfahwPy/S2Yhxp2nkbH/Sf1U8yS9ftD7C10YNa 2IOvYP150soZrl5xH7bBoqkTPFQ4//raH2jhe1Q0lQXBQkZRIjCSq8LHQ9i1wyO0D3MjTwqtS8k+V 1F6kAsp4w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEWlW-0005qM-9Z; Thu, 11 Apr 2019 10:17:06 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEWlS-0005pX-S9 for linux-arm-kernel@lists.infradead.org; Thu, 11 Apr 2019 10:17:04 +0000 Received: by mail-wm1-x342.google.com with SMTP id z6so1592510wmi.0 for ; Thu, 11 Apr 2019 03:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RblycNJZFRqa7MldVoQZQ/Xu05FPCTLCvJAt4kE/QIk=; b=J2l9ojntHi2kFn4tdcHEN5Z2f06cSuYgQr4FzmgJNkP7h29iO1z551QJJTn8aFgpE9 okthCZc9QP+bd3MC7fvB1vjWpinTTPnMs6Vg68yTcl+ccqSd/RKYdw//NygIbS/+OAyQ 7UUWxMUnxJkjJKNqjGQ41KKQb1UpNdfU+6GwX2jYrYQ6I8shbjdrVar4sDO56Et85khQ l8Ggm+0MjRD0BnJTR2YqcdTIC+XD3lOR+zlOeVYsfE7SJrrFOPWib1zg6+jHrpHwTsvN +yYqEatBuen82xsrNsqvPWKGik3Z6zduNMdfnaiYyscotWQG6hCgG549QgV+OSeN4RYg szmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=RblycNJZFRqa7MldVoQZQ/Xu05FPCTLCvJAt4kE/QIk=; b=Yv/UTg54o3+Il1/YeVrDrYJ0JOvjt63KfNFcbXMumpIE4/vSXONTr3+AnIBEPStbl7 jaka4aYVifoWMvdZStoTXXA7Z7rtA5uFZmUj0UvdI3ppYDrxkGP70M4mp0uD60v0dRvL FJof9q99CJRuN7ShqLuFAmN4Dl7RuT5ghyZ3A5yOScLqxf8BuTljeXMLjbhnk97SVTHu 9PJI/NHblFskEaS1OEIlpfuqy06hjdc8VND0iycIMBN85mESSR6FA6WsqmuByz7XsBJ2 s1OxvIAr0xahV+H6zLgxEtwMlvGSo0oRM6/hUOYym3L0OdBFAQZ6dHbYrhSh+qUgDu2Q K8bQ== X-Gm-Message-State: APjAAAW0lSlWHWyRvb8E8iVSjwz0SDqIXnJdBLNbXg4kaWDcrTjSfvlJ 4KiYhOZJp2QJQ7d0fBEA+OY= X-Google-Smtp-Source: APXvYqxEAhvPpOptFZA84zkR7+mvLRRjkp/ZckZdkMLy6BdfPtVk49xK2JQzRXHxi4zRVxDAGKoEIg== X-Received: by 2002:a1c:9ec7:: with SMTP id h190mr6327161wme.105.1554977821269; Thu, 11 Apr 2019 03:17:01 -0700 (PDT) Received: from localhost (pD9E51B25.dip0.t-ipconnect.de. [217.229.27.37]) by smtp.gmail.com with ESMTPSA id o12sm40262711wrx.92.2019.04.11.03.17.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Apr 2019 03:17:00 -0700 (PDT) Date: Thu, 11 Apr 2019 12:16:57 +0200 From: Thierry Reding To: Vidya Sagar Subject: Re: [PATCH V2 02/16] PCI/PME: Export pcie_pme_disable_msi() API Message-ID: <20190411101657.GF4633@ulmo> References: <1554407683-31580-1-git-send-email-vidyas@nvidia.com> <1554407683-31580-3-git-send-email-vidyas@nvidia.com> MIME-Version: 1.0 In-Reply-To: <1554407683-31580-3-git-send-email-vidyas@nvidia.com> User-Agent: Mutt/1.11.4 (2019-03-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190411_031702_918794_D0703F71 X-CRM114-Status: GOOD ( 15.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, lorenzo.pieralisi@arm.com, mperttunen@nvidia.com, mmaddireddy@nvidia.com, linux-pci@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, kthota@nvidia.com, kishon@ti.com, linux-tegra@vger.kernel.org, robh+dt@kernel.org, gustavo.pimentel@synopsys.com, jingoohan1@gmail.com, bhelgaas@google.com, jonathanh@nvidia.com, linux-arm-kernel@lists.infradead.org, sagar.tv@gmail.com Content-Type: multipart/mixed; boundary="===============5112393019896319914==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5112393019896319914== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9ADF8FXzFeE7X4jE" Content-Disposition: inline --9ADF8FXzFeE7X4jE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 05, 2019 at 01:24:29AM +0530, Vidya Sagar wrote: > Export pcie_pme_disable_msi() API to enable drivers using this API be abl= e to > build as loadable modules >=20 > Signed-off-by: Vidya Sagar > --- > Changes from [v1]: > * This is a new patch in v2 series >=20 > drivers/pci/pcie/pme.c | 6 ++++++ > drivers/pci/pcie/portdrv.h | 5 +---- > 2 files changed, 7 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/pci/pcie/pme.c b/drivers/pci/pcie/pme.c > index 54d593d10396..18e815c1e3c9 100644 > --- a/drivers/pci/pcie/pme.c > +++ b/drivers/pci/pcie/pme.c > @@ -27,6 +27,12 @@ > */ > bool pcie_pme_msi_disabled; > =20 > +void pcie_pme_disable_msi(void) > +{ > + pcie_pme_msi_disabled =3D true; > +} > +EXPORT_SYMBOL_GPL(pcie_pme_disable_msi); > + > static int __init pcie_pme_setup(char *str) > { > if (!strncmp(str, "nomsi", 5)) > diff --git a/drivers/pci/pcie/portdrv.h b/drivers/pci/pcie/portdrv.h > index 1d50dc58ac40..2be7b7e9a784 100644 > --- a/drivers/pci/pcie/portdrv.h > +++ b/drivers/pci/pcie/portdrv.h > @@ -127,10 +127,7 @@ struct pci_dev; > #ifdef CONFIG_PCIE_PME > extern bool pcie_pme_msi_disabled; > =20 > -static inline void pcie_pme_disable_msi(void) > -{ > - pcie_pme_msi_disabled =3D true; > -} > +void pcie_pme_disable_msi(void); > =20 > static inline bool pcie_pme_no_msi(void) > { Perhaps also export pcie_pme_no_msi()? That way you could get rid of the extern declaration of the pcie_pme_msi_disabled variable and make it static to drivers/pci/pcie/pme.c? Thierry --9ADF8FXzFeE7X4jE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlyvFBkACgkQ3SOs138+ s6ELhQ//Vv9MKAZnJoNuinAuHN0VZpoVinl2xO7luTsHwQwXZxojinHPNU6svT8e JG9n142d4+64x9LrpwAo2uK9Eur5502ru55knuDPX4f6R1s4zXjVKOSzuk5mgT/C /tj/aBTsz5j1nONMk1JMDVdAmecEIMdxdqBu8ReXdDKWREn2e4X/1xMKC8lHkdTL ykZid+SgzYB2S7h3edM7yUdvNbejZj6FEPfSmYHoFz4FU5TFV44KQdyCWWnLag45 eIfmeiiS5HUjC70a7hA+cEl5VzBaaVOnyb7upwk0+td4a27G5C1DjG9fimTa11ZE JER7uYR5uspou0eAIYjUWMk2+ZVb83IOb/C5rx3G63c7ZZe5RFIZ6JMMZ5Xk8/B/ klY/NEDSZiTTFBbNKkaectjMYLbhZ958S3ysXBU8qTkJkApo7fzrWZMijyMliaXx S87vCklXMTKXtXoxBjsEgwBCQsirwrHHlkgRCbwTpkr2P37AdMMSTB/J2jsj7pBH ncmGzf4K61rsLlKvIu2OozM9u5zIGfI3t3NY3ZNG3vK9Do0R4HGCxhZWN/JxdXhm QLCow0erxVPGJNNUSssiiIUyikMbmcB/ap7aI78yYZgj4jTOUhDMDBcCaj8IdluB YRDVKLaRuwDb6vQ4i2u3y3z7Xg9/1zq0hSwpMeNry3AmsCA/EpY= =IySS -----END PGP SIGNATURE----- --9ADF8FXzFeE7X4jE-- --===============5112393019896319914== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5112393019896319914==--