Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5426499rwj; Wed, 21 Dec 2022 02:28:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXsPr4BZbhK3S/FejcQIK8orG7zVc1GhytpNyUugu7HI/nbv+2fP3n8is/kBNpdwgLebMCut X-Received: by 2002:a17:906:3707:b0:828:76a3:e6bf with SMTP id d7-20020a170906370700b0082876a3e6bfmr969710ejc.50.1671618515913; Wed, 21 Dec 2022 02:28:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671618515; cv=none; d=google.com; s=arc-20160816; b=WyouFsX3Ddo5n3blA3/vfQm6zo3XBs0ACeE1x3jid7iFCANiXxHWqHSkw7chN58np7 n7HC/FZ+2+epm1rQCnk46dk6PiPvzm+28eJvcUXL8x6D91OdT8PubueO3wEiYEBvefC7 yyPWFRVcIjAmw1Z5D0MVhuLmgqXd80r1icQ9IsLKtIK/nt01Oh3dGa6KqRxU6+B1JZBR 9C3qF3JKy0aLqbyOfaUbC7URFWAmWkl71tWPYX49LX+LrXq3kM2iOzMnmz24kism1xaj E1rFW9JgP3k+uW1iPkorCLB7A3bAcuidy8jt2GqN0+BDd1yF/MVJ7f7oUL0lzl4H4Bag gKHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xCg4ewcZtUMK1IVsshtWQ8Dto6+9EqSdTyozNP+tggY=; b=a31/RenK+M9ANJ3LPlke49v+6JwpoyL6h9+u66WTpwJBg68MB3RT8DzXhbrhS5bK0/ v2ECPHFlNPHvgeayny5FVWRmgmw6dZHUWIkhKFb3EFr6g2+khoGHWeMp2q+om95P3QL9 3TVTXP0FaLA8sHHPCbjiVYZtwrW/0WCql6b3cOAQn3kHekFeoAK8PqDo5mdl+cfu1U7Q gyWkoHxRybeOwgvDxn1HWQOx2DvLs89nry56zSpDXcDP2De16rPCUNVkENBGFmSPjEO9 Xb6FOEJO481hY70XhbzBNx0GKlLAebtrue7dp5HNp0QbmKHqjIMHeBPeoFbbFPx+7en3 oAHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=L824nQQw; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa8-20020a170906fd8800b007c0a7bc2854si15176534ejb.410.2022.12.21.02.28.19; Wed, 21 Dec 2022 02:28:35 -0800 (PST) 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=@collabora.com header.s=mail header.b=L824nQQw; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234670AbiLUKVL (ORCPT + 69 others); Wed, 21 Dec 2022 05:21:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234519AbiLUKVB (ORCPT ); Wed, 21 Dec 2022 05:21:01 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA399B7D9; Wed, 21 Dec 2022 02:20:58 -0800 (PST) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 9EB446602CBE; Wed, 21 Dec 2022 10:20:56 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671618057; bh=4XAFAvREPt9mELPunubuWmSA1SRawFig707S7i4tp50=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=L824nQQwaWZop8xOF/IUB0BVf5zE6Osn1O5fsLXd+eOrIxOAZBMuv/jfXG0fPJQQ0 4uXxLaodRCsn/RQWdbdI97iIHvIC+ndpro0wiEe56Tea7uTQuR2qwpqsWH0z1GbcZR 5QDxV0H1+rUA1D7LLlW55spD9A9EbCqbvycdJ1hHfdU3xqq3sHzVohhwHCuX9J7UF5 Zea1OkPR/j6GuwFIXggmWKMrL0zASp7BAqsGfylBIy62LQiyUBUttD8iSRp5+n9boV 6/P7NFLmB3pEIc+4WL00G8FNI/+y8E4PtfkSo6I16eGJvmzGCliE8PAcvHeD48auzm imZqL9D8bu7Sw== Message-ID: <7cba92b5-b0fe-cb26-cdec-463a00657d29@collabora.com> Date: Wed, 21 Dec 2022 11:20:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v2 2/6] soc: mediatek: pm-domains: Add buck isolation setting in power domain Content-Language: en-US To: Allen-KH Cheng , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Chun-Jie Chen , Stephen Boyd , Ikjoon Jang Cc: Project_Global_Chrome_Upstream_Group@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Chen-Yu Tsai References: <20221221034407.19605-1-allen-kh.cheng@mediatek.com> <20221221034407.19605-3-allen-kh.cheng@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20221221034407.19605-3-allen-kh.cheng@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 Il 21/12/22 04:44, Allen-KH Cheng ha scritto: > In MT8192, we need to disable EXT_BUCK_ISO before turning on the ADSP > power pm-domains (mtcmos). > > Add the MTK_SCPD_EXT_BUCK_ISO flag to control the buck isolation > setting in the mediatek power domain driver. > > Fixes: 59b644b01cf4 ("soc: mediatek: Add MediaTek SCPSYS power domains") > Signed-off-by: Allen-KH Cheng > --- > drivers/soc/mediatek/mtk-pm-domains.c | 8 ++++++++ > drivers/soc/mediatek/mtk-pm-domains.h | 1 + > 2 files changed, 9 insertions(+) > > diff --git a/drivers/soc/mediatek/mtk-pm-domains.c b/drivers/soc/mediatek/mtk-pm-domains.c > index 09e3c38b8466..63f1e183f645 100644 > --- a/drivers/soc/mediatek/mtk-pm-domains.c > +++ b/drivers/soc/mediatek/mtk-pm-domains.c > @@ -218,6 +218,10 @@ static int scpsys_power_on(struct generic_pm_domain *genpd) > if (ret) > goto err_reg; > > + if (MTK_SCPD_CAPS(pd, MTK_SCPD_EXT_BUCK_ISO)) if (pd->data->ext_buck_iso_offs && MTK_SCPD_CAPS(pd, MTK_SCPD_EXT_BUCK_ISO)) regmap_[...etc] ...so that we validate that ext_buck_iso_offs is actually present (as I suppose that this is supposed to *never* be 0x0). Regards, Angelo