Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7168529rwb; Wed, 23 Nov 2022 03:11:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5YvNc53ZEVgv64eyW2CBJTvQ0hF2iBfroBU/3nIjmhisnx0vnTN4079ZJntC3I6iNh13NR X-Received: by 2002:a17:90b:2392:b0:218:8576:82eb with SMTP id mr18-20020a17090b239200b00218857682ebmr25405549pjb.101.1669201864650; Wed, 23 Nov 2022 03:11:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669201864; cv=none; d=google.com; s=arc-20160816; b=sHpb1Yj9+dJbA6HFU6YVGM6GBYmw9dyQxpk27TFi5cbAl+Md9ZLhqC+t7WKqpYidOR 97JN5XXTYz978geuitSKCNriIwx7chwQyBT6GyW4p9isB9EzQmHizzFjfZXhhSgC+cHR l2vBjP0K6XK6VA4hqVCY4lbQrUKQWAzPuivk6GOJcH/81joPO/rRDRNktG8N63pAZQ5U Iy/0MUiCF+RvXrVIR0j7VWtEoQtkw4EdfScAc/3pFpku172n9hSuO/7INtjQct1hOffW LZ+IwQp0vSx5mL/8pDMV1/SqjPXZYRelsvdXM86wqPKqhRixl4BI3Tu8W+8GqgO0DXuP TKvA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=evmqZal6P0Gh2KtjmqsYtpngHK9nsZsmphCRedKA3xE=; b=Asd5twDCKYzCw+P3gUUTnWeOnTv0zpZ2llmW1ZOXba4pASicfuHzvr74FchvjdAjmp l5gEWD/xu5Co5zSDHi+sPkhHhbPavnaOrbmbDvFPrMOO2qbIkApeDAujK+rTSXl6tAtL ymsk3ZB2Fg+UHFsN50592+ADrZZOwRDhtHxRHYw42VAcLPK6KmAw2rwY2QtPS/6PKwFc 4htq73OleyX1m+yD8SKIlOKSh0HfxfSmhJ6xN999zXVdvqvwOs27ez5j4T8HlJjx8skn xsPJgSwaeKUpkPTMlJ1mwP4pRSUOWBDrltiNf/gwDOAjmBMFCT4BiTkgMGuk6KFJJg40 Zm/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lkh9GncI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a634843000000b004403e01f82asi16292763pgk.230.2022.11.23.03.10.53; Wed, 23 Nov 2022 03:11:04 -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=@gmail.com header.s=20210112 header.b=lkh9GncI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235749AbiKWKgg (ORCPT + 88 others); Wed, 23 Nov 2022 05:36:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237587AbiKWKfK (ORCPT ); Wed, 23 Nov 2022 05:35:10 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1041D125232 for ; Wed, 23 Nov 2022 02:20:06 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id d1so16547456wrs.12 for ; Wed, 23 Nov 2022 02:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=evmqZal6P0Gh2KtjmqsYtpngHK9nsZsmphCRedKA3xE=; b=lkh9GncI+CNngHOJwLpl5TTT0pzTnHj78uPilgOF9t71J+w51UpkVUSfzl0VkzLb4s CTHaQcIifgKEM+P8bw9mPpIT9jIwxu6DcVxVfp7bLcT4YCLo4azv516Cz6/82DsaKDy+ dXimePNiTsxoOLOfTkelN6SaS9fxtyIbB4D3gDJGtwbnGDaPLjKPieoW3+ynnVXErG6I QjLW6PQ1+gUrnjUnVU96UbftOBk4QVupMII4tnGGl42yZ3be69RhlVAoVlmHMd0CFOxA 6DcOvWMUHgVF+5OY7dYnQ4d6OowIf29f2RTVH7kImDDS/5n3tJQPGU/1+sZbaXP4GDgE 5Lew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=evmqZal6P0Gh2KtjmqsYtpngHK9nsZsmphCRedKA3xE=; b=Gt6IGV5sOgYbaRLn6R+24av0hpx0MymKptjKF0vtEdGlp5ql+jfTugZEilanlkKYOV BXHEIsGFXECdzfgXQfUg0aMXU/qjkbiWKqougJP/4ZT37+YBlZVa2xKGsbIw/dUWMMbd CEdcU15YAaozc0TlUvnMHOK+uxdUpdKN4s7ZvobCQTISzs2ELI3AXh2nWRG2PzhdDh4E XDjdL8BBLxhCq1uXcRNKR2//UA7OmP/e3iYdupd1qiyKNDXOhWD+vpP2sFChabzcHbQo ZtrO7izWIcsQsW0vo5/Cw376fSwy1ORijWs/LasUY9YBVGdonDvjEKqXGroECN0rVLOw z7nA== X-Gm-Message-State: ANoB5plzmsFOqtOxsR6tsbRKwNXxYTSj8YtgPRloIuH18/nz7AEAfq6g 4Sx31SR8PRKfC5dcpT/46k3uuRppXpc= X-Received: by 2002:adf:f805:0:b0:236:ef0b:68c5 with SMTP id s5-20020adff805000000b00236ef0b68c5mr17363638wrp.373.1669198804459; Wed, 23 Nov 2022 02:20:04 -0800 (PST) Received: from [192.168.1.131] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id f14-20020a05600c154e00b003c6f3e5ba42sm1898268wmg.46.2022.11.23.02.20.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Nov 2022 02:20:03 -0800 (PST) Message-ID: Date: Wed, 23 Nov 2022 11:20:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v1] soc: mediatek: mtk-pm-domains: Allow mt8186 ADSP default power on To: Tinghan Shen Cc: allen-kh.cheng@mediatek.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20221012075434.30009-1-tinghan.shen@mediatek.com> Content-Language: en-US From: Matthias Brugger In-Reply-To: <20221012075434.30009-1-tinghan.shen@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 On 12/10/2022 09:54, Tinghan Shen wrote: > In the use case of configuring the access permissions of the ADSP core, > the mt8186 SoC ADSP power will be switched on in the bootloader because > the permission control registers are located in the ADSP subsys. > > Signed-off-by: Tinghan Shen Do we need a fixes tag here? My bet is: Fixes: 88590cbc1703 ("soc: mediatek: pm-domains: Add support for mt8186") Or is this not yet a problem but needed to be able to implement access permission configuration in the ADSP driver? Regards, Matthias > --- > drivers/soc/mediatek/mt8186-pm-domains.h | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/soc/mediatek/mt8186-pm-domains.h b/drivers/soc/mediatek/mt8186-pm-domains.h > index 108af61854a3..fce86f79c505 100644 > --- a/drivers/soc/mediatek/mt8186-pm-domains.h > +++ b/drivers/soc/mediatek/mt8186-pm-domains.h > @@ -304,7 +304,6 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8186[] = { > .ctl_offs = 0x9FC, > .pwr_sta_offs = 0x16C, > .pwr_sta2nd_offs = 0x170, > - .caps = MTK_SCPD_KEEP_DEFAULT_OFF, > }, > [MT8186_POWER_DOMAIN_ADSP_INFRA] = { > .name = "adsp_infra", > @@ -312,7 +311,6 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8186[] = { > .ctl_offs = 0x9F8, > .pwr_sta_offs = 0x16C, > .pwr_sta2nd_offs = 0x170, > - .caps = MTK_SCPD_KEEP_DEFAULT_OFF, > }, > [MT8186_POWER_DOMAIN_ADSP_TOP] = { > .name = "adsp_top", > @@ -332,7 +330,7 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8186[] = { > MT8186_TOP_AXI_PROT_EN_3_CLR, > MT8186_TOP_AXI_PROT_EN_3_STA), > }, > - .caps = MTK_SCPD_SRAM_ISO | MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_ACTIVE_WAKEUP, > + .caps = MTK_SCPD_SRAM_ISO | MTK_SCPD_ACTIVE_WAKEUP, > }, > }; >