Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp161854pxm; Wed, 2 Mar 2022 12:31:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEsu+LySu/oMTIbUGwuD8pMULaU1eQf6vKh15spBxWWLkz2nXIzsQyjEvXAlFGKfxTGZ6X X-Received: by 2002:a17:907:c012:b0:6d8:ec50:ef9b with SMTP id ss18-20020a170907c01200b006d8ec50ef9bmr4394594ejc.284.1646253107160; Wed, 02 Mar 2022 12:31:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646253107; cv=none; d=google.com; s=arc-20160816; b=LyThA2n2kM89XO5p+1DGMoomzu+j+pLKW6obeWXAhuil7diY4f6A5m4qUvC4Y5qpOG IkpadyvO/RWBN//aYY1/pDgafdgAt3jM1nAnCL38flZytwFlb5p860VdbwtuQZpZcMAe +mkqVcjVIctCxE8aTjXrGTXZKDlmX46wvSD3N/0Exgp2ZaLf1w1bUs9fGpFLPLF0z2RA FNruGuClyXT2zBCC/wYvui7o8LwfY8Xp7hbY0Yx9UOMyvaNKZlNnmF8QUEubPaB/bnlI gCA/hSoOJaWpNzQiFrVOEZvpp8On1tkP5gS0h8RWBT4V0eym++AiroFGX/EgOV4nYrjX I25w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8VTuCz3R/rAc16gR6mISBvbeDHDbE0ir6KHxxOHOxM0=; b=mrLbsJ6f/N7tVK+xiCcx7T7S8Sbs2MPj6qi8k8geDDMwyOZnhnmO888KYvRGk0j9FV IdKpGdYlHY5Te23gTSWqhuRt+ufUNYA4KxtSnEx3Pyd0wTBswXBmYA2oXMT2/u6fGoAx d4M/ivNyZZ9WlDVRVNmV9LgZBPO/XcHsQ76/tcQW8fyScwZ3LBee1OxXTyBunpVSTRNK 8O8YyrZ+iz+Sq7/B0481uyzVhR8SemOGVZ8++r/pnMpTXxbsrfw/VNP2vWe02aHBuOwN 9Y+H1IOSUn1KrogMxDJJnDsXWxpBVa94xmwylDpbzNN5Gvrqn72wytebOuHn97h/M0W5 oCsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JDFNBYKm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji19-20020a170907981300b006da84283998si40637ejc.681.2022.03.02.12.31.22; Wed, 02 Mar 2022 12:31:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JDFNBYKm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243312AbiCBO6f (ORCPT + 99 others); Wed, 2 Mar 2022 09:58:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237870AbiCBO6d (ORCPT ); Wed, 2 Mar 2022 09:58:33 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC0062AC5C; Wed, 2 Mar 2022 06:57:50 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 8ACF161681; Wed, 2 Mar 2022 14:57:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CABA7C004E1; Wed, 2 Mar 2022 14:57:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646233070; bh=HJ9UOZ8Pda2J5esQVLz0rDdDpMg6S97CEjZqU1QUEgg=; h=From:To:Cc:Subject:Date:From; b=JDFNBYKm5iyiz514HuoZO8pnX5BtyJdM4oKs88W7tr/Ouxqnx2+s3tUCfp9pyekig UVlEDj67L5MtnhLnVL55rJArrulfZNrpryXR7NFxhzGFCfSgqh84euSnRao1f2mo/5 gVhDDHsUH91OnVc2j931CSRbzs6ecVrNQxlnXzJxv2AvEj6+u6CFmJUr2cvGSXWl+6 uJ0yI9sECkULgPdK9SuMbJxEFH9ye1hEsXc+TuaMyVKFEYrJW25INCCwvnbRfLg+OM g/lp20w2jr+QNfrCekejtWyhr2t1ieMtGv/Yq/8oTJbReXPcFG4sY/uU0h/ioJnge3 odEUKzT3DyHRw== Received: by pali.im (Postfix) id EE8DB677; Wed, 2 Mar 2022 15:57:46 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Lorenzo Pieralisi , Bjorn Helgaas , Rob Herring , Andrew Lunn , Thomas Petazzoni , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Russell King Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] PCI: mvebu: Slot support Date: Wed, 2 Mar 2022 15:57:29 +0100 Message-Id: <20220302145733.12606-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 Changes in v2: * Dropped patch with PCI_EXP_SLTCAP_*_SHIFT macros as it is not needed anymore * Dropped patch "ARM: dts: turris-omnia: Set PCIe slot-power-limit-milliwatt properties" which was applied * Added support for PCIe 6.0 slot power limit encodings * Round down slot power limit value * Fix handling of slot power limit with scale x1.0 (0x00 value) * Use FIELD_PREP instead of _SHIFT macros * Changed commit message to Bjorn's suggestion * Changed comments in the code to match PCIe spec * Preserve user settings of PCI_EXP_SLTCTL_ASPL_DISABLE bit Pali Rohár (4): PCI: Add PCI_EXP_SLTCTL_ASPL_DISABLE macro 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 Documentation/devicetree/bindings/pci/pci.txt | 6 ++ drivers/pci/controller/pci-mvebu.c | 96 ++++++++++++++++++- drivers/pci/of.c | 64 +++++++++++++ drivers/pci/pci.h | 15 +++ include/uapi/linux/pci_regs.h | 1 + 5 files changed, 177 insertions(+), 5 deletions(-) -- 2.20.1