Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp165863rwe; Wed, 31 Aug 2022 18:54:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR4oHjp8FXbWxgj+mGocebHCEUTqGgnmXXrSvQ6eQiaNOODXIU2epZqYJvoQbsb1XuU8xphb X-Received: by 2002:a17:906:9b8b:b0:741:56d3:b8fc with SMTP id dd11-20020a1709069b8b00b0074156d3b8fcmr15125406ejc.337.1661997260178; Wed, 31 Aug 2022 18:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661997260; cv=none; d=google.com; s=arc-20160816; b=D9PGRoTM1wch31HI2ta9sXPPxUInLVoBs65asHObcb0h7Hfk3sa5OZ06Ewi1K7ymfn kPK4ZyEgRXx/InO+1fOZ7o8vhojm+aajo8qzbZiCbL1e6P0bEfO/vgkWVfGyeksyT9LK GPJO6NHgpKtcxQZwlDFCR4ZiWxT4gOSZS1U5lZcteQYAl8MBNxHYjsGGXVhAuY4fsIR3 1Rxu7DgUxj9KmR5aoCUJysbRIA2yazH4WOhog+I1idSq5TQaBmPbhgX+6ch1VCaW/L8g s5hR6+gtosm+2VdkSkK7yTGOC6Fj2dt7b++i9/4+MekfIZize1H74l0TS92FkXDAx6Bd 3Dyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=Bp9MG1Ufb7Tzj1XyXFNI9+qa4E+OkXzO9lRH/DnXEkM=; b=UmHr0CoB5Ns0jwTtZ20WMhdQkfEgyd+QB+ppADf/p/ezkFg3fgWhatVK5ze46AfIds 0HaMXKfDbidRjlQ8wzQ1PXEy4HDgj0ux+QO67fxiAjmPdTi4pNJu8lJHeDDvVWvOY5tq 4T58dhKwv9Srh+zJvupoLtTXAO8P2MeMxjYl+0rQ4J6MBhHxjCxW6RQPPCx68z28Fr7y 3UrcodvX6lZZ4wbe1NxMDpAiJgeQxmQw3WBI65o+jzhleoaeMSmXBo0WdMchmL7oXxr4 EomVQVC63ajBMPi9KLy0tPGYmFnWHbVqkmpimox9PqKrlb/4Drmsz6ql+eEEMqS+jp9S M87Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Eww2IZWY; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc1-20020a1709078a0100b0073d611d4265si11838413ejc.687.2022.08.31.18.53.53; Wed, 31 Aug 2022 18:54:20 -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=@kernel.org header.s=k20201202 header.b=Eww2IZWY; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232007AbiIABQ0 (ORCPT + 99 others); Wed, 31 Aug 2022 21:16:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232406AbiIABQW (ORCPT ); Wed, 31 Aug 2022 21:16:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0D7ADFB7A; Wed, 31 Aug 2022 18:16:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 11F64B823CD; Thu, 1 Sep 2022 01:16:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4E4DC433C1; Thu, 1 Sep 2022 01:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661994972; bh=Bp9MG1Ufb7Tzj1XyXFNI9+qa4E+OkXzO9lRH/DnXEkM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Eww2IZWYJK0KQ89Rl0O4KNo0FuXOCDYQNFCTGaxaQiQ1wYDytuOBRMb51k/jbBOsI +nNx8n9sO2bz6btRBxbQQA10qxOSDfv+olBWPVRtO8gK+wdH+rcM5AuyJvKnkNBgXY n9FPXJxHgSdol014iSwZs1r9x83O0HNZlQ1dUsLV1fjyXrKUCbeuHSRON/tN2Kd7Py NEhd6tpNL/YwCazqi66bl05FH4cgPZX4deDYNGVX5bBZx962dRwsgspsWMW13+S4B4 qZeFntY1S9N2qy3AMjVsBAFVp71qg+RGo39+WUXJzAUoC3H/DCcNzRPL4LAEvHwfGR rFiT6Yt2gV2cg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220719093316.37253-1-angelogioacchino.delregno@collabora.com> References: <20220719093316.37253-1-angelogioacchino.delregno@collabora.com> Subject: Re: [PATCH] clk: mediatek: mt8195-infra_ao: Set pwrmcu clocks as critical From: Stephen Boyd Cc: matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, chun-jie.chen@mediatek.com, miles.chen@mediatek.com, rex-bc.chen@mediatek.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org To: AngeloGioacchino Del Regno , mturquette@baylibre.com Date: Wed, 31 Aug 2022 18:16:10 -0700 User-Agent: alot/0.10 Message-Id: <20220901011612.C4E4DC433C1@smtp.kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Quoting AngeloGioacchino Del Regno (2022-07-19 02:33:16) > The pwrmcu is responsible for power management and idle states in SSPM: > on older SoCs this was managed in Linux drivers like sspm/mcupm/eemgpu > but, at least on MT8195, this functionality was transferred to the ATF > firmware. > For this reason, turning off the pwrmcu related clocks from the kernel > will lead to unability to resume the platform after suspend and other > currently unknown PM related side-effects. >=20 > Set the PWRMCU and PWRMCU_BUS_H clocks as critical to prevent the > kernel from turning them off, fixing the aforementioned issue. >=20 > Fixes: e2edf59dec0b ("clk: mediatek: Add MT8195 infrastructure clock supp= ort") > Signed-off-by: AngeloGioacchino Del Regno > --- Applied to clk-next