From patchwork Tue Feb 22 16:31:52 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: 12755647 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 0C46EC433EF for ; Tue, 22 Feb 2022 16:34:07 +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: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:In-Reply-To:References: List-Owner; bh=5GzETaC+6g/qw4EpKal5NBWpOHzfnWZkDobRqzHDLs0=; b=hEHNXSmJW45p20 AI33NWTmRik6cxVL1AxdYe+kZNDAwxcbOR++OTvasY7ec5O/dzISFnRJFtwbhZd+xVvvfFpO+vRUh A2Pv/BgxyLJe2SHIucL0i64e3zO1hTci7ZQI0tnShZUwIxgzP2sfx88Ps7L2ovRiHhiJ+9HOjP41c bEinT0DO3CwM9N5IhLYasNewUbRsezftuoHTEiIU4EAqLKzQbgtQb7E7kSRWUW0FWLK+ws2/Tk76Z u8xJ8SBaR7jhTaHo1avuTf/6xumxv6zOtB52ttA7lSvBYZ2TN7m0l85y+yJOfh28Wiu69tJyxh7Y/ jaR6/pFcTBErF80wCpdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMY5n-00Ae1u-CE; Tue, 22 Feb 2022 16:32:47 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMY5L-00Adm6-S3 for linux-arm-kernel@lists.infradead.org; Tue, 22 Feb 2022 16:32:22 +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 sin.source.kernel.org (Postfix) with ESMTPS id E46CECE13BF; Tue, 22 Feb 2022 16:32:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DCF7C340E8; Tue, 22 Feb 2022 16:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645547536; bh=deQThiFosCfgbDDY9+kUsiyxUvwfdDyovhHUVd2d6Es=; h=From:To:Cc:Subject:Date:From; b=owqOXQsmE+DCQm/rkbWl89cTxGH6CkxC7SDpWtLvOdiSFd+pmRreHeb++Q27fRxJ5 8TVokOpf4FHh+KrCnrm5atIUkG83YW0TD0KbvxnBFB6AHGcgkwsU6rH1V2TIj23ufS NBKNtGpynCuuzWK1a7cA37qcDr4HhFhkNqI8K2P4WmcIHIivFWBaKNe3qMzyIOf8xX c7El312WoZotOkpJ4DcqkMYf+j3dDS+mCgIh2pFWgthQkGXTM3LVF8VpvKPGZLaHsx +wH2uHfLmWr20lUPKhEJTNh3fYtiqM1oCId9QpRPMFENHdPYDGtFNPqlm47qiT6BNd e9L/xRe4Nkp5Q== Received: by pali.im (Postfix) id E2C85FDB; Tue, 22 Feb 2022 17:32:13 +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 , Gregory Clement Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] PCI: mvebu: Slot support Date: Tue, 22 Feb 2022 17:31:52 +0100 Message-Id: <20220222163158.1666-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220222_083220_096420_ECE1A9A8 X-CRM114-Status: GOOD ( 11.25 ) 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 This patch series add slot support to pci-mvebu.c driver. It is based on branch pci/mvebu of git repository: https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git Some patches were reviewed in other patch series. Pali Rohár (6): PCI: Add PCI_EXP_SLTCTL_ASPL_DISABLE macro PCI: Add PCI_EXP_SLTCAP_*_SHIFT macros dt-bindings: Add 'slot-power-limit-milliwatt' PCIe port property PCI: Add function for parsing 'slot-power-limit-milliwatt' DT property PCI: mvebu: Add support for sending Set_Slot_Power_Limit message ARM: dts: turris-omnia: Set PCIe slot-power-limit-milliwatt properties Documentation/devicetree/bindings/pci/pci.txt | 6 ++ arch/arm/boot/dts/armada-385-turris-omnia.dts | 3 + drivers/pci/controller/pci-mvebu.c | 85 +++++++++++++++++-- drivers/pci/of.c | 64 ++++++++++++++ drivers/pci/pci.h | 15 ++++ include/uapi/linux/pci_regs.h | 4 + 6 files changed, 172 insertions(+), 5 deletions(-)