Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5636450rwb; Wed, 21 Sep 2022 10:16:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7dAYYcMPfeXnx3rPFVplLZTdsy0CIUT380isSUnAwcL+aD1zC3pOsWgxWt/S+UWR4gt1W8 X-Received: by 2002:a17:906:9bf4:b0:76f:73d2:be40 with SMTP id de52-20020a1709069bf400b0076f73d2be40mr20973942ejc.90.1663780586711; Wed, 21 Sep 2022 10:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663780586; cv=none; d=google.com; s=arc-20160816; b=kSxyJHD5o47272aFzeSwiz47VS6KUfEp+V/eLraglnRvkM2AZojUei2hBcndqFL0VR z3uC4ZS932EnZ6GZKQVR5NmgOBA8RZ47JGTciSuWw9N1euS5Gc2EmTouxr7aTZudyiUQ KJG/qGuRLe64Bl4sMnDO0OkxAjt4v4UKHD1SZ5MyjlFMaRSHHchOC/Rarelcq2aGEFrm uvXsxLpr7uVbjewf9DCabh+bxev7YKWDzWKZGzeUdAk8n1+UinOvNKLQNz9sq/M05m96 7jJHJ19H4auTT4Jostgr8oBCsbD1PfsOzqtUEQYmqUQfuJhtQIMRxv9PEM5kTx1sKVUX Ptig== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bQjLw3QhdWa5VE1X66kZmV7oJ8DfMAXwXnQ78aaljqU=; b=UEukmucB+fGwjwclZE79HtquGlwQG7IXOCDBkoFx5NoX18R9M5YsP+bxm6iDNy8hNh q22sCbSKMhvkbafT9rL3xfYbPumLNGFrIhEjojgz2i+R/14WXSw9LrBa1md0twqd1Mfi 4QgbBO0Z89/QNsiJ+NQyQl08y47A19SR3fgSzNhJlQg+lGZgEmbIvIFab91WZhYF1TR+ BoDWdgk9CXXnOXe+bUWkr8AQjyLZXTfZkSyxO7fTUJXFCYxqIFRRC6YtedkCJhfrctMv gIn4/ZS4MKcHMoYF8xOGH0247zAVNX1Yb67wN/Wfz9c/QxQAKwkhK8xJGNjHy59r6JGf EcZA== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020aa7c408000000b0044ec439e9b0si2707243edq.346.2022.09.21.10.16.00; Wed, 21 Sep 2022 10:16:26 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232416AbiIUQWA (ORCPT + 99 others); Wed, 21 Sep 2022 12:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbiIUQVj (ORCPT ); Wed, 21 Sep 2022 12:21:39 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C7B5598CB4; Wed, 21 Sep 2022 09:04:59 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4279013D5; Wed, 21 Sep 2022 08:56:45 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 635593F5A1; Wed, 21 Sep 2022 08:56:37 -0700 (PDT) Date: Wed, 21 Sep 2022 16:56:34 +0100 From: Sudeep Holla To: Ulf Hansson , Dien Pham , Gaku Inami Cc: Cristian Marussi , linux-arm-kernel@lists.infradead.org, Peng Fan , Geert Uytterhoeven , Nicolas Pitre , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] Revert "firmware: arm_scmi: Add clock management to the SCMI power domain" Message-ID: <20220921155634.owr5lncydsfpo7ua@bogus> References: <20220919122033.86126-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220919122033.86126-1-ulf.hansson@linaro.org> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 Hi Dien, Gaku, On Mon, Sep 19, 2022 at 02:20:33PM +0200, Ulf Hansson wrote: > This reverts commit a3b884cef873 ("firmware: arm_scmi: Add clock management > to the SCMI power domain"). > > Using the GENPD_FLAG_PM_CLK tells genpd to gate/ungate the consumer > device's clock(s) during runtime suspend/resume through the PM clock API. > More precisely, in genpd_runtime_resume() the clock(s) for the consumer > device would become ungated prior to the driver-level ->runtime_resume() > callbacks gets invoked. > > This behaviour isn't a good fit for all platforms/drivers. For example, a > driver may need to make some preparations of its device in its > ->runtime_resume() callback, like calling clk_set_rate() before the > clock(s) should be ungated. In these cases, it's easier to let the clock(s) > to be managed solely by the driver, rather than at the PM domain level. > > For these reasons, let's drop the use GENPD_FLAG_PM_CLK for the SCMI PM > domain, as to enable it to be more easily adopted across ARM platforms. > > Fixes: a3b884cef873 ("firmware: arm_scmi: Add clock management to the SCMI power domain") > Cc: Nicolas Pitre > Cc: stable@vger.kernel.org > Signed-off-by: Ulf Hansson > --- > > To get some more background to $subject patch, please have a look at the > lore-link below. > > https://lore.kernel.org/all/DU0PR04MB94173B45A2CFEE3BF1BD313A88409@DU0PR04MB9417.eurprd04.prod.outlook.com/ > If you have any objections, this is your last chance to speak up before the original change gets reverted in the mainline with this patch. Hi Ulf, I don't have any other SCMI changes for v6.0 fixes or v6.1 I am fine if you are happy to take this via your tree or I can send it to SoC team. Let me know. I will give final one or 2 days for Renesas to get back if they really care much. -- Regards, Sudeep