From mboxrd@z Thu Jan 1 00:00:00 1970 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 73909C433F5 for ; Thu, 24 Mar 2022 20:51:53 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JMsULCY/QsjUGzP4rn9Z11v1aC5lCW/THt7Qr94nCak=; b=BEkRPv7u6XcwUP nvzznG72y2oXqMd6t/RDe/qjkvpxLbFyLtXuQdhuOXuLeWQPOXleNZK4blmsMaV5Eb3fyTmAu3nIZ ug6q7suszLFK19g7OqGN9BQIXOh8prWnBo0Hp2VAYvIf3xQuvZr4god0HMnkPVq0ACCMQFwESqOXQ Ys+fuv1JCd1WwC8PUuFmq3a/IlMB4bDYS0POfAmgVXBs33wxV6SddqkwuECSUnOm8Y0Fr5EejAK6u dNTF/vlDCNmLODZWmJPvWENTM6LJ5M/pP+u288fKEm7ki1ifUBIfsF4J8PjCbavjYCTd2ggciL6i3 FJBn4U92zwRVwgJdKxPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXUPj-000BSP-Pd; Thu, 24 Mar 2022 20:50:35 +0000 Received: from mail-oi1-f182.google.com ([209.85.167.182]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXUPf-000BRL-Ly for linux-arm-kernel@lists.infradead.org; Thu, 24 Mar 2022 20:50:32 +0000 Received: by mail-oi1-f182.google.com with SMTP id j83so6148225oih.6 for ; Thu, 24 Mar 2022 13:50:30 -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=N7X1Jph+spbx81bExVVBZgrp6RsoYRF8yIwNInaVhtw=; b=3j/Xi4XXHORzEB0Eryytsxkeuaa7AkLd+Etc1HhzWYzNdJyVoyrBLzbCMuv3fyYMHJ wWdG40mSHDVpeguR/nSReIWvs36ZgU0bJ6IORsf+TFQW6Wfn4+uVG8SHjLm5ckjv7W6m ZJRrPwtpBR8B1MBU6KqehkBxpW4ETOGUvklgU44z5HkSSV4vw3WnFLrBHGw//jxBKn7l IBmqUzaUEvkQ/1jLV8tkhcINPZ05GW2blp0DZYS76igzaDbSo22Tk/QXVvqK2BtGZLCl fQf3ZFoFRZC87aoKnnPhW7jHgakBZcmeKInIXXwscBOjW3ZNzplerWSQ6Xhm1t7G8RNO Eagg== X-Gm-Message-State: AOAM532JnYMYJCwm03efRR3RVZ/u6fgKjKJYzgY9WS9q5/yHr7XhLqhU oNg2DIa4Kot7U5Y15Yg1wQ== X-Google-Smtp-Source: ABdhPJzkOrf3EbmXElP4l2eDGcS4BjQd5k4rYdMQJoqQaojX1X6UYuXfwsQHxSrooAqhCwpcNKSz8g== X-Received: by 2002:aca:1c0f:0:b0:2ed:22b4:9205 with SMTP id c15-20020aca1c0f000000b002ed22b49205mr3498488oic.118.1648155030333; Thu, 24 Mar 2022 13:50:30 -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 m21-20020a056820035500b0032121ce8beesm1707401ooe.28.2022.03.24.13.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Mar 2022 13:50:29 -0700 (PDT) Received: (nullmailer pid 2551160 invoked by uid 1000); Thu, 24 Mar 2022 20:50:28 -0000 Date: Thu, 24 Mar 2022 15:50:28 -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 4/4] PCI: mvebu: Add support for sending Set_Slot_Power_Limit message Message-ID: References: <20220302145733.12606-1-pali@kernel.org> <20220302145733.12606-5-pali@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220302145733.12606-5-pali@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220324_135031_738456_A8F77B33 X-CRM114-Status: GOOD ( 13.72 ) 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: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Mar 02, 2022 at 03:57:33PM +0100, Pali Roh=E1r wrote: > If DT supplies the 'slot-power-limit-milliwatt' property, program > the value in the Slot Power Limit in the Slot Capabilities register > and program the Root Port to send a Set_Slot_Power_Limit Message > when the Link transitions to DL_Up. > = > Signed-off-by: Pali Roh=E1r > --- > Changes in v2: > * 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 > --- > drivers/pci/controller/pci-mvebu.c | 96 ++++++++++++++++++++++++++++-- > 1 file changed, 91 insertions(+), 5 deletions(-) Reviewed-by: Rob Herring _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel