Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2127288pxb; Fri, 25 Mar 2022 11:33:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhFPPmSZHPDEL3Eu5ZZEVK/Z2TUTQV/mOVl+vD7kj+BVTe/ahy8o4QPos6tQbMokRziud0 X-Received: by 2002:aa7:90d5:0:b0:4e1:307c:d94a with SMTP id k21-20020aa790d5000000b004e1307cd94amr11336301pfk.38.1648233223125; Fri, 25 Mar 2022 11:33:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648233223; cv=none; d=google.com; s=arc-20160816; b=plkUnDKI8Iv5CTg1GwzE31QOplBrCTvjwqWmMsZHFF6+poNYmvDqdW2DyZlBcA62YQ MTGSSAfqbNiugzNlltAnI5TPPcpa5SXzE6sIDwOQ5IFhEf2m6rzd+9Ikj02KiKcvDO/2 zPDRHe3dt6+mra1+saVELv42IVh89PVhfy7ko/sYHMv34raWS5HBRmD+zOkrkJuPGlsJ a+hjwPr9Bs+6Ho54tMq2JcJDvcv3j6YvNvzNUmXia+ycfBlmEMxGX29DXH97fyav63Hx m5ZmaMYpfkDvBV+w9G0XeMYSATeoZy+16m/1UBk63vJ4Hw1e32MFrgeprePMGzGxo2h+ LpFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kT18hQ0qUgvwsPrJ+y8XROBC3+T9vZQQezhw/vfNsVw=; b=SHLD8QkwtzcTt3sUGB5lY1kQ8rzuc0WDdpTbMM55w64SqY4wO154oaw4CzV/3hSKRd e9vyeyAG3d+emE+xaRXJvDlyugzNxQsdbDCaiIM9MztMcGQV3ySsfUIHBssvA6kyXyq8 jg+SzprHwLz4V9ttU7auz9F+8JTnxiVVD1SasxxApje9F09yTMA8utilOSHx5An+KKZT Unkcs0zzexEGhAoxLtEImJ06tMA4auBYKtGeR/Ih8IBgpsHGiSI7xODvpJlpn4GENVjg dAc9gYota8cJng4dIGuDbfZifWfoCpm+57JHq5jQpDQ0eTOLTabhjmworWDwnhlHcXsp 9ZHA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 y28-20020a63495c000000b003816043f00bsi3083256pgk.512.2022.03.25.11.33.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:33:43 -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; 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=fail (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 185763F30B; Fri, 25 Mar 2022 10:53:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353644AbiCXUt3 (ORCPT + 99 others); Thu, 24 Mar 2022 16:49:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354881AbiCXUs6 (ORCPT ); Thu, 24 Mar 2022 16:48:58 -0400 Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD5477EB0D; Thu, 24 Mar 2022 13:47:25 -0700 (PDT) Received: by mail-oo1-f41.google.com with SMTP id p34-20020a4a95e5000000b003248d73d460so984551ooi.1; Thu, 24 Mar 2022 13:47:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=kT18hQ0qUgvwsPrJ+y8XROBC3+T9vZQQezhw/vfNsVw=; b=Sswe00zdLSW58ZFNXIdFVTGgEbb/mCCcMiORiOjrc6lKaV0k7HSGdIdOm5FQc287Xw 9iC/qWdmEBRSlka3RlsyQw9iAi7YIfGbmA2TnVGV4qzBzMghpmua6QXa5jgNSa2Mgyoa 1rxEEgpBDo3mF395EJDGl0oozcM2spOLndglKPfC3D1Jjwqy3sgvk+VkQQgHXjkH34ME HkWHJN/+Ddkrxjd04RcCvBFNw4oNHnPZs9aUapEQE8/geRKGCXrJxRZ2cxj5CqM5jc2p zPn19ACiSpNbxC9TqzOg2OTepHdHDdWpmrtK5wJ3MLqJHzPBrsTZD7b7B/kGp1KddN7z 8XrA== X-Gm-Message-State: AOAM533ubTrgxbeh6njE3UfVHtmdPWJCesz1oBV1HLrg2V3A4zoSU0VZ 1KITdYPAF2q25xQc2id1vbYWD+eOgg== X-Received: by 2002:a4a:e1fb:0:b0:324:6bad:8d1a with SMTP id u27-20020a4ae1fb000000b003246bad8d1amr2722663ood.84.1648154845136; Thu, 24 Mar 2022 13:47:25 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id w36-20020a05687033a400b000d75f1d9b82sm1768369oae.47.2022.03.24.13.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Mar 2022 13:47:24 -0700 (PDT) Received: (nullmailer pid 2546966 invoked by uid 1000); Thu, 24 Mar 2022 20:47:23 -0000 Date: Thu, 24 Mar 2022 15:47:23 -0500 From: Rob Herring To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Lorenzo Pieralisi , Bjorn Helgaas , Andrew Lunn , Thomas Petazzoni , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Marek =?iso-8859-1?Q?Beh=FAn?= , Russell King , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/4] dt-bindings: Add 'slot-power-limit-milliwatt' PCIe port property Message-ID: References: <20220302145733.12606-1-pali@kernel.org> <20220302145733.12606-3-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220302145733.12606-3-pali@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Wed, Mar 02, 2022 at 03:57:31PM +0100, Pali Roh?r wrote: > This property specifies slot power limit in mW unit. It is a form-factor > and board specific value and must be initialized by hardware. > > Some PCIe controllers delegate this work to software to allow hardware > flexibility and therefore this property basically specifies what should > host bridge program into PCIe Slot Capabilities registers. > > The property needs to be specified in mW unit instead of the special format > defined by Slot Capabilities (which encodes scaling factor or different > unit). Host drivers should convert the value from mW to needed format. > > Signed-off-by: Pali Roh?r > Signed-off-by: Marek Beh?n > > --- > This change was already accepted into dt-schema repo by Rob Herring: > https://github.com/devicetree-org/dt-schema/pull/66 Which is the definitive source for it. pci.txt should shrink or be removed, not added to. > --- > Documentation/devicetree/bindings/pci/pci.txt | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentation/devicetree/bindings/pci/pci.txt > index 6a8f2874a24d..b0cc133ed00d 100644 > --- a/Documentation/devicetree/bindings/pci/pci.txt > +++ b/Documentation/devicetree/bindings/pci/pci.txt > @@ -32,6 +32,12 @@ driver implementation may support the following properties: > root port to downstream device and host bridge drivers can do programming > which depends on CLKREQ signal existence. For example, programming root port > not to advertise ASPM L1 Sub-States support if there is no CLKREQ signal. > +- slot-power-limit-milliwatt: > + If present, this property specifies slot power limit in milliwatts. Host > + drivers can parse this property and use it for programming Root Port or host > + bridge, or for composing and sending PCIe Set_Slot_Power_Limit messages > + through the Root Port or host bridge when transitioning PCIe link from a > + non-DL_Up Status to a DL_Up Status. > > PCI-PCI Bridge properties > ------------------------- > -- > 2.20.1 >