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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 50763C433F5 for ; Thu, 28 Apr 2022 11:14:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vFEcHIzBOMk9JO8WDnFxUzaAMpL+XjaoT7KDhdHyfIs=; b=2EGw2P8TXB4NHn 2JxUgMd0pKz+T7w5PFNNP3DmfoidshtrD//6c3a47AQw4thGK78EmjkXuoxlEeSlCiRy8cONp0066 atYpsrxKxsZxU156MDkpB/9OuaQVRjgwwWa+PetEcahgJfirE8UMvLaDIjGJbYdyI4b9J1vu4PrMw wOe6yXTc8Yikqwx15nebeArN7OGMNVGOf8/sEPRuscBkWK4K8SsKVAJaugh+8enEwuLK1wGfivuip ysSi2QSJ+2H6SDpbtG2WygrtsbYFHCMLoWH5RLFzXLbXwwTUG9MrIu3QXQzsdp7Hf7LHwdM8GbkyZ u3S0O/QDYMpbO8xsKC/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nk25C-006S66-Ny; Thu, 28 Apr 2022 11:13:15 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nk21g-006QHU-9f for linux-arm-kernel@lists.infradead.org; Thu, 28 Apr 2022 11:09:39 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 11D6D1474; Thu, 28 Apr 2022 04:09:35 -0700 (PDT) Received: from lpieralisi (unknown [10.57.14.104]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6745B3F774; Thu, 28 Apr 2022 04:09:33 -0700 (PDT) Date: Thu, 28 Apr 2022 12:09:26 +0100 From: Lorenzo Pieralisi To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Bjorn Helgaas , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Marc Zyngier , pali@kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Gregory CLEMENT Subject: Re: [PATCH 04/18] PCI: Add PCI_EXP_SLTCAP_*_SHIFT macros Message-ID: <20220428110926.GA32469@lpieralisi> References: <20220220193346.23789-1-kabel@kernel.org> <20220220193346.23789-5-kabel@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220220193346.23789-5-kabel@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220428_040936_518487_C58B4C15 X-CRM114-Status: GOOD ( 12.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Feb 20, 2022 at 08:33:32PM +0100, Marek Beh=FAn wrote: > From: Pali Roh=E1r > = > These macros allows to easily compose and extract Slot Power Limit and > Physical Slot Number values from Slot Capability Register. > = > Signed-off-by: Pali Roh=E1r > Signed-off-by: Marek Beh=FAn > --- > include/uapi/linux/pci_regs.h | 3 +++ > 1 file changed, 3 insertions(+) This patch can be dropped, correct ? Thanks, Lorenzo > = > diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h > index bee1a9ed6e66..d825e17e448c 100644 > --- a/include/uapi/linux/pci_regs.h > +++ b/include/uapi/linux/pci_regs.h > @@ -591,10 +591,13 @@ > #define PCI_EXP_SLTCAP_HPS 0x00000020 /* Hot-Plug Surprise */ > #define PCI_EXP_SLTCAP_HPC 0x00000040 /* Hot-Plug Capable */ > #define PCI_EXP_SLTCAP_SPLV 0x00007f80 /* Slot Power Limit Value */ > +#define PCI_EXP_SLTCAP_SPLV_SHIFT 7 /* Slot Power Limit Value shift */ > #define PCI_EXP_SLTCAP_SPLS 0x00018000 /* Slot Power Limit Scale */ > +#define PCI_EXP_SLTCAP_SPLS_SHIFT 15 /* Slot Power Limit Scale shift */ > #define PCI_EXP_SLTCAP_EIP 0x00020000 /* Electromechanical Interlock Pr= esent */ > #define PCI_EXP_SLTCAP_NCCS 0x00040000 /* No Command Completed Support = */ > #define PCI_EXP_SLTCAP_PSN 0xfff80000 /* Physical Slot Number */ > +#define PCI_EXP_SLTCAP_PSN_SHIFT 19 /* Physical Slot Number shift */ > #define PCI_EXP_SLTCTL 0x18 /* Slot Control */ > #define PCI_EXP_SLTCTL_ABPE 0x0001 /* Attention Button Pressed Enable */ > #define PCI_EXP_SLTCTL_PFDE 0x0002 /* Power Fault Detected Enable */ > -- = > 2.34.1 > = _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel