From patchwork Fri Mar 25 09:38:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12791390 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 246EAC433F5 for ; Fri, 25 Mar 2022 09:40:40 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bIJrhpzkCC/KZksNoyoZWbRVD3wZagupmWXjGqzYjlk=; b=Ujv1Rf+Iwz25K2 ZNMdwioJrARsbsCoxrPwus/roFi3UKPkWKdltmowFydSkAfkdXEPz/7IXgXN48O/5s4m+a+WPN4Cb wmcX/rTnWzbrik4V/S7gverv6kOFkuVnNLHnJDVuvqfuZOtz48SL/EtkDNYwsq96V0LFbPCA3VboU y++WGqjn7gtzo/DnLMIkfqhsEYiTadBlwI10sJbYrf0RAJLNbHfcNQKczHffl4AtNXqWbC9siXr0T cCzNPq1KEjtkk/11LP3RXmvaH9q0cOQHQmMTgqC6bLM6kCR8EDwp/Ewje45BGdNYi+H3gJsOICs2D VF4AqP1qNv59fxPpg/ug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXgPy-001YM4-CH; Fri, 25 Mar 2022 09:39:38 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXgPF-001Y6r-Mq for linux-arm-kernel@lists.infradead.org; Fri, 25 Mar 2022 09:38:55 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2B5D6B827E6; Fri, 25 Mar 2022 09:38:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C11F6C36AE7; Fri, 25 Mar 2022 09:38:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648201130; bh=vzWBAbR4Oux6P/RO30qmN2wLxTgTR+gOm30Ed6V+lZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bhSjlEziOo48SqLlNz4c5nQy4SgfqAcmhBze18cOf5PV93stYk1ufN7CsMazrxAOj v8uIiAT43dNkCCzbGzCIx5nhCFRL1CHm5l6qDUt9x3gRAPyey8oBhPbx08rIOZzNPa iKVAPvWerlApLFmekUg549a2vrUzeNRTAxxiGXo2MTfvn9UMLFoXESZIUzHA65lrAl WKhptYcr2sfnGOZpTKuGueTtzd3XEqXYqa0ewyMxXS5eCi/LiI8DPV5wNgWQ8MnAkv G65ReeF0KEDGXrAp+sRq/DR5lfISWevDtgs6PVM+PHZfBloeGg44lexextdKNYr+fu amhmDeOm+oksw== Received: by pali.im (Postfix) id 123A19F5; Fri, 25 Mar 2022 10:38:48 +0100 (CET) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Lorenzo Pieralisi , Bjorn Helgaas , Rob Herring , Andrew Lunn , Thomas Petazzoni , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , =?utf-8?q?Marek_Beh=C3=BAn?= , Russell King Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/4] PCI: Add PCI_EXP_SLTCTL_ASPL_DISABLE macro Date: Fri, 25 Mar 2022 10:38:24 +0100 Message-Id: <20220325093827.4983-2-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220325093827.4983-1-pali@kernel.org> References: <20220325093827.4983-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220325_023853_913395_74C5D609 X-CRM114-Status: GOOD ( 11.29 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add macro defining Auto Slot Power Limit Disable bit in Slot Control Register. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún Acked-by: Bjorn Helgaas --- include/uapi/linux/pci_regs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index bee1a9ed6e66..108f8523fa04 100644 --- a/include/uapi/linux/pci_regs.h +++ b/include/uapi/linux/pci_regs.h @@ -616,6 +616,7 @@ #define PCI_EXP_SLTCTL_PWR_OFF 0x0400 /* Power Off */ #define PCI_EXP_SLTCTL_EIC 0x0800 /* Electromechanical Interlock Control */ #define PCI_EXP_SLTCTL_DLLSCE 0x1000 /* Data Link Layer State Changed Enable */ +#define PCI_EXP_SLTCTL_ASPL_DISABLE 0x2000 /* Auto Slot Power Limit Disable */ #define PCI_EXP_SLTCTL_IBPD_DISABLE 0x4000 /* In-band PD disable */ #define PCI_EXP_SLTSTA 0x1a /* Slot Status */ #define PCI_EXP_SLTSTA_ABP 0x0001 /* Attention Button Pressed */