Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp625203rwb; Fri, 23 Sep 2022 01:43:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66nYHWBRmMv4KFyOtnFCU1y7EuE1G8pBjcGMb0luYT+S9/RwiagftUSBCpV1TE/tTEVzm9 X-Received: by 2002:a17:907:849:b0:77a:34b6:a23 with SMTP id ww9-20020a170907084900b0077a34b60a23mr5974260ejb.458.1663922582019; Fri, 23 Sep 2022 01:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663922582; cv=none; d=google.com; s=arc-20160816; b=q2wswL8Tr/yZmOT+p9x8IAbrvU+gUTj5I01UdBNOVh3S193ayC2480BmKLQwUsrALK lvmNzKB90hFEQvsYgwBQwLD3TOMcld5HrQJJ8l9jNqKylOh43XZEH9wmTmxKfbNwxK8c BJBDfrXAFipDCh1SS183K9jWWAjItECBs159rlzv+EY03k3Q8X6U6m/pSDpu7fZRQ4OX Z1YWGlV7AMJixio3+inhgk16/tSvFd/+z9+9kJWt68GIGCd8Es/LN1yQ4vHyRd6cMg9G CltMw4ifzfOQofltC/7IMHCFRHxDjDX+cTioxxfj8BgHPb6Pbw8AwnsMcWV9ScjyPFrl XXWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ke09TjycQ0LINpMRhSyB/jx12xEQs5rDcMmrlCsezKA=; b=blH1nW/G7k4PbtARnd9cARnSdNyW0JbYA5J+ENcqC03OyULybv7jgTW+XPbJ+PyzZ6 xvy2JjgtZ+EKHmxdJtEYJLfga5L5uLiMRKU0A+KKavZ377jtLnQYBDI+TlhUYrF7Eq73 p38jwNj2y+pUlBad5XhvT3bFdpBf2X/qgzwHQfj3ETIIlY7X9SA3p8igAMzAWy4BT96N Dtbd5qFxEvGdKx4w2mVQJ/bD5h72USb432VelKK95jZKajv3vy9PpdOzy3J9UTsZKrOW yrp6cVEmS+Bv6Iy/95L73sCFVehHTDA0IreeP/ZdnM7YScBdEWjeuE/2JVOXmpWT7fYl dpBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZmFhiTFV; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a056402268100b00448d387c327si8252035edd.181.2022.09.23.01.42.37; Fri, 23 Sep 2022 01:43:02 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ZmFhiTFV; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230138AbiIWIZN (ORCPT + 99 others); Fri, 23 Sep 2022 04:25:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbiIWIZJ (ORCPT ); Fri, 23 Sep 2022 04:25:09 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6329FFA42 for ; Fri, 23 Sep 2022 01:25:07 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id t4so4319081wmj.5 for ; Fri, 23 Sep 2022 01:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=ke09TjycQ0LINpMRhSyB/jx12xEQs5rDcMmrlCsezKA=; b=ZmFhiTFV585Hf9AhTdWzZQnGaLPHIGDz9k60x/LzqDMttxUXfFxC/ce+x5z8AVl5lm v7A6PYU09n3KQPe8XYIpUgbif2bkvnxVrMPWiL5u0bzA8xV3Ko/MF5Z9yqp4peitktgJ kYHlT+FQd9a6oa7vaGtxsfUnvp/6mwzV2DI8hzhczdXOISZN7vRCH3BwqR7G0BREmEEo pIt6AYadCT4G8pvctbwbR+70O4gtvCoW+LA96Hj5qeAzs4cQn0BAkHQDzg9B8zVWYdKJ U3sOm4H7HmviYywDRcjwcmjMHFr4rG21bKYL6SdSFdpfyWQVpbTdwyFbtGg0ierX8d/s pQWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=ke09TjycQ0LINpMRhSyB/jx12xEQs5rDcMmrlCsezKA=; b=XbLIlR27vo4UK3qrCjPVKSMUawlKtHbqtWzFs6798ADA66CizMOl5uN7TG5x+cRJM2 xBwQTneQVjNQFmOu44YMj8ydCetOa6MzT6m4uiFFtSN1sNnG5pBdaGoPlgZ2HNItDoke bVjYSYOnPPB+/0gcZBHDPzfYdPcU8HfDxH7facOumJ1YJnoFcxDaeRMEXPWimnMWNhv1 AhRsWmTox5jYC1fqZHHdoQSWrDOJEWZ/yDbVLKytem190SNAvzwrTk0o0NxssAx60Rps NHuNR8rTMiNgNuu81d3OPZdKmvwUXExb6j88GMmcRO3iMCC0SRHZLwSlR5bIg2E10iHy tg3g== X-Gm-Message-State: ACrzQf0bbkTmymUq+EbCGXdLP5FhYve7kNKAZsbWFf+KjFjyY9ORzaps ZrbWl6iD/9juBn0Eg1oePVulSW1Z6Blf6f3fRfM03g== X-Received: by 2002:a7b:ca54:0:b0:3b4:fb06:9b1 with SMTP id m20-20020a7bca54000000b003b4fb0609b1mr4945582wml.67.1663921506179; Fri, 23 Sep 2022 01:25:06 -0700 (PDT) MIME-Version: 1.0 References: <20220919122033.86126-1-ulf.hansson@linaro.org> <20220921155634.owr5lncydsfpo7ua@bogus> <20220922110406.cuovmxtw2jkn4f4h@bogus> In-Reply-To: <20220922110406.cuovmxtw2jkn4f4h@bogus> From: Ulf Hansson Date: Fri, 23 Sep 2022 10:24:29 +0200 Message-ID: Subject: Re: [PATCH] Revert "firmware: arm_scmi: Add clock management to the SCMI power domain" To: Sudeep Holla Cc: Dien Pham , Gaku Inami , Cristian Marussi , linux-arm-kernel@lists.infradead.org, Peng Fan , Geert Uytterhoeven , Nicolas Pitre , linux-kernel@vger.kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On Thu, 22 Sept 2022 at 13:04, Sudeep Holla wrote: > > On Wed, Sep 21, 2022 at 08:46:21PM +0200, Ulf Hansson wrote: > > On Wed, 21 Sept 2022 at 17:56, Sudeep Holla wrote: > > > > > > 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. > > > > I have a slew of fixes for mmc that I intend to send next week, I can > > funnel them through that pull request. > > > > Assuming, Renesas folkz are okay, I consider that as an ack from you, right? > > > > Yes for official reasons, here is the formal :) > > Acked-by: Sudeep Holla > Thanks! > in case you manage to get this in via your tree. I have now queued up the patch through git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git fixes Let's see how it goes when it gets tested in linux-next. > > -- > Regards, > Sudeep Kind regards Uffe