Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2211442pxb; Fri, 25 Mar 2022 13:08:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi1i71xelUU2tYxr9oDsgGDVk9wVwvx4Lyjxh4avRu7lLpb8JEABQgpSOOklLFsev+6oJg X-Received: by 2002:a63:2259:0:b0:382:294c:5bee with SMTP id t25-20020a632259000000b00382294c5beemr952858pgm.387.1648238881434; Fri, 25 Mar 2022 13:08:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648238881; cv=none; d=google.com; s=arc-20160816; b=ADf7phzPSTgy9DSDUJdEcbsG0xExf0CYrJ9lKabRbyQ5xmmMjYfgBCASO3z33YQAxM Py6/Qxr50A+5tSsVALubOCePKktuARs79dyomF82jEtPTh1d4My/CxsSNqBRMOuEIYXd 8tYp6siw4SVX93gQtbV0rVy66a4uHoKDa+glIBrOWpyUiDG5x0JQrKakktX4iLrRETqk fU2L6N9T92ss5yInRdc4pAMuBBOvrbvfE0zTa6ld4lnP3bqMzQ48LjL53WNrCGdGTXjq rLquJpEqyUGIDM9SkwuJOJ7wS6dHqPxwMReEmSYn4fqFuNtb0n6HniORKdygHJ9ZLh/h ibvg== 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=N7X1Jph+spbx81bExVVBZgrp6RsoYRF8yIwNInaVhtw=; b=T8PgGDhRIQy965g83jqF03tKVeL6B4iRfmByNYfb29co+lOveSk1vMo4JuMId6+M7u tdSI+WI9m6+N8d0F/5HOQkeBv8y563xkBYM4hXwL7xNDtlKvHKHSUGB7KBKvpF4YfTkI hxKHWN2bc9YBWaowA85QNKRbGa0N13t5jnpS3f6klJTTbAQo74OZCpuGONI5gZxaLfOH V2wmc9t9vOHXnBgcIGnb3J3627tXM8WllOAwLJHAuzw3uM6fc72yL3MerHc5U6KOaIg4 XrJtJ9wd4cdkQ/JBoDxpDwQwuFKtXdv3QvZAV+AOJ/TCBbQd0Xap1yqwplH92o5D3Xk0 HD+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b8-20020a170902d88800b00153b2d164a0si1525633plz.168.2022.03.25.13.08.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 13:08:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 A1E2138ECDA; Fri, 25 Mar 2022 11:51:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355318AbiCXUwb (ORCPT + 99 others); Thu, 24 Mar 2022 16:52:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353691AbiCXUwE (ORCPT ); Thu, 24 Mar 2022 16:52:04 -0400 Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F103C36683; Thu, 24 Mar 2022 13:50:30 -0700 (PDT) Received: by mail-oi1-f178.google.com with SMTP id o64so6144229oib.7; 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=h2D/S/AKEQZEsiCsckqyEIwjZ9yYQwu30T8Iv8XvPaiNN6+vJ+ZEch/p2075ITJ+Eh EBbqSpIjPp+55CZrF7bmVwN6V850HeHtd5NUpcdbrxMtQhanJHzmbQaq2tz4b7Lxzzvk Cb2rvHPTDE/SDWaLnVMGnBIOMFInbHpWOO3r224nCIlRrr1rLe8TrqnqbPyh/ljOM+Ff v09K8nvDoSKwVhBgaoVEqPY5HtYfoskBGc/vNiQky7566PXr2W3tOsEqNcmCRbgcfBrL a74SeKRDG8+V9MEaho++SorbA4a8hpT0Y2oqpPJ81iBIMkNm0n+hDmX5SmNB8q3AJQ5R K6rA== X-Gm-Message-State: AOAM531Pq20uGzFGMxhVgbDafrfduqZCfjoQxMH5gU0h/gAEqhrOdnfD tRrdZw0Rh5fuA/r2bevTOw== 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-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220302145733.12606-5-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:33PM +0100, Pali Roh?r 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?r > --- > 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