Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2112315pxb; Fri, 25 Mar 2022 11:17:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxF9QbpseF+XZlDIzEdHnA1bRwNxrDQ5l435bBQwP0+PeW/hKPm9lvI3Oi2bDzMF4SWuYLA X-Received: by 2002:a17:90a:aa8c:b0:1bf:5273:ba28 with SMTP id l12-20020a17090aaa8c00b001bf5273ba28mr14335799pjq.226.1648232278180; Fri, 25 Mar 2022 11:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648232278; cv=none; d=google.com; s=arc-20160816; b=to7F83YdTa0kScZtrzXKQixrHhB6tJ/5OyLW+bpkf3dY9PX5o203sduLIAP8m5iRRt 5YaQ1qa9s2z9Y7yWykVPT0UQO2Tuge4o/b1MgKQyI8Uy11J9pZtZ7AlCh9XK485UNXHg jbneLCBRLBd62qGQ+awaPZQ04Xa2WsYFHBme8fApPbFqxOdU7KD8ZqBSAkrMnVj4B1cU RDGPvtnXjOWSvcWpL4uRqiF1AziBY0kgObx0tgA03AGRTNGFVxlGfBuyRNrciE+R3kH4 PtHWBo2++yasTr3ZJAcrO+pmAVtfzy1gCXXQhvoY5xtu/YG4NTs7Yg2xMjm4R3PD/3ri keUg== 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=aMS6335SQI/URdoYS7TpxuixjYUE0v97T78zDKBvNNU=; b=NpquBCAqESGzXNecpSVaQMpZgOcAf35ZmjA+NB9It7SU69vh6KghTqAwyVWsJ28nnj 32JSdyb05a93jJCne9Fhe1WElf4t0/MfUbrGAyt69Bfw5cie/DnETjcPzLZlX+SmcXmg TxfBGeAcCc9PZGS3DitssmxByW/iUvM4tjhCRR8Z6ASmSKSn8CXWe5MlGqRPvKcpGVSo O8EkZi2uSN03hTF5FYV6O7L8tWB8q2gO885rbbDbzVyTU99za85MGLpAIEJHRSHX3ARD TJfl7xqUJ4/E4r6hofZOeR2d0Kl8TtHQeg4zXgFzirTDYoZQvl/6uJYcRQNLVS8mfFnO 5tMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gjL6Mxws; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q5-20020a63ae05000000b003816043f141si2734488pgf.822.2022.03.25.11.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:17:58 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gjL6Mxws; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A6CB01207C0; Fri, 25 Mar 2022 10:46:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357605AbiCYJk1 (ORCPT + 99 others); Fri, 25 Mar 2022 05:40:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356718AbiCYJk0 (ORCPT ); Fri, 25 Mar 2022 05:40:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BBF0117D; Fri, 25 Mar 2022 02:38:52 -0700 (PDT) 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 47967B824E8; Fri, 25 Mar 2022 09:38:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA112C340E9; Fri, 25 Mar 2022 09:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648201129; bh=zNqewQWdGWqQ/uwlakUo9ehQGDWTaBy5w6WBU6XmIEU=; h=From:To:Cc:Subject:Date:From; b=gjL6MxwsDRR4nXlG4HIh04laHyGrN88mXBMJuv8M6Uud7PFynQgOzCp4I4CGT6hKU RW44SOupMI6vRp+2gDDuB7qVVY1tD1pj4/SpaLWHKcz/wjuFLfOkuDAeqxwKjt8ki7 vsnFY+BCBNjLJnpg51pUk8ffcwVVekklQZum9DU6xfbwhuB3CSjeYHkYebnYgJhBXw 4pUJfV7DCV0CkBb09wcriXz/kgXN2G/GQRwsv1LtxsOE3ffR0S87ueLklOLBlHDDfh OWd8XEQiblv9HUvqdxK4QfmIIULWkVq00m5IX/x6F7ezRQQXETyxvkQ698hRBnojN9 Qyw88DR/MWuSg== Received: by pali.im (Postfix) id 17BC97DD; Fri, 25 Mar 2022 10:38:47 +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 v3 0/4] PCI: mvebu: Slot support Date: Fri, 25 Mar 2022 10:38:23 +0100 Message-Id: <20220325093827.4983-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=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 v3: * Set 600 W when DT slot-power-limit-milliwatt > 600 W 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