Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp7055017pxv; Fri, 30 Jul 2021 09:00:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIPz2IdIdyBlZz8VNLPX9WIcvpfjid9yu3ZQSEwi3vhgcHBwJcSdfKeYqbY/33QEwVaTh7 X-Received: by 2002:a17:906:1701:: with SMTP id c1mr3197505eje.425.1627660803355; Fri, 30 Jul 2021 09:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627660803; cv=none; d=google.com; s=arc-20160816; b=lqQbGKe+YRqo9mDrnddbaD8/rDZIa2FAvEuRxl2LsKbd4gzQOyLC7OwJ0DnqVGP7yg q9TbyRakkZWozw/myKO23Nxl22Xqde2/m54id1rdaENkMIypqQH5FxfrahyRUFk6q9iX Hp9Ty2j1eWoA9zT5H14eG8W2nfnd1Qen633P9JUieoAqzSv97FngRnXo3KdTgto7ha/y sA7UKhAYbmBPvm+pBDyMUmQ9Rd3ucMXz7ka3GPQavR+2o8txtkdV/dnro/8/u5zzrS6l DlZYlLYb1/7or1ePCa8LVNGsNhMaVy1Lm69o7JUXDD0zvPvBaQpba5SyIObOBXoDq9+M LLng== 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:dkim-signature; bh=xXNqWSr/rOC4EQDcPG5tueBmU/blNavYsUX/3Rklcr8=; b=qUnUuYT5Q3Tyc0kG2GWE5AmT7ICL3MbvgV3DYl+Sz3Uco91tZPlVOflMeBKJmUO0to rIjkGz2+pSn1GoAXywatUwued1XAuLdqtcGi3glE5x4NVdWwLLISZwZx+okeSyjMjHeh s+ukLGS9DQjT58+6daj6VMz8BPoiuJSc+ajsQZW+JmtCKD6EE44eJyc2wL7lBcxnquLN G0hH1fa3OzXy+aUxaYc6b2movy74BEmdRV5wHaXafJuDyyhKwwWHJRzsErxKF03hfv30 F0ToxXF2MNESg/3ku6qrduEsudwWQiibyr/Vq/7+qDzh0mFWmfM++Q3In5hDsKZlyMM/ UOVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TDxHet75; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si1069985ejg.214.2021.07.30.08.59.40; Fri, 30 Jul 2021 09:00:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TDxHet75; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229635AbhG3P6R (ORCPT + 99 others); Fri, 30 Jul 2021 11:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231163AbhG3P6P (ORCPT ); Fri, 30 Jul 2021 11:58:15 -0400 Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A235C0613C1 for ; Fri, 30 Jul 2021 08:58:10 -0700 (PDT) Received: by mail-oo1-xc29.google.com with SMTP id n1-20020a4ac7010000b0290262f3c22a63so2564347ooq.9 for ; Fri, 30 Jul 2021 08:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xXNqWSr/rOC4EQDcPG5tueBmU/blNavYsUX/3Rklcr8=; b=TDxHet75+KJYPXBOyj4Qpsipf04ggYz4gNIiL7z5WeCaNCEbDWbw1ludfUUdIAwnWl QELftxDKswIa8A3hXuESnq0jCFZVthL2BR0JI6HaeD3lRv42W+9LVTO//VJ4T1NM853T ORYy1yyDaJHLj0a20bBy2HOXSkLPGzewxTAU7JEbvpQzabOxTg7cDCNVVXV6kiXVtewj d0m2Aax3ksfa5nt2bjLkkU6+oWaj8MC0vGZMHyB3cVsUbh8mrvU0HV8YRVBkXsOamJ6Q sm5hNuAcWgRt99OxxHE6bWTzukgLVRxjqOLPgz+9zzWfR3s3s9V0XZOn9GTY+p4uAM/D OhiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xXNqWSr/rOC4EQDcPG5tueBmU/blNavYsUX/3Rklcr8=; b=ZyXvS5IiAPjm6JVqXVAFoVpaOiyIRaRyoa84geDWvLzQm5hVHuxKHhWE9GKYhw9L3O XfQgvnEEImrj9b2Cic+Br774deKq5+6uKKgEHYXozI/Y0GvZUj/2rc8Yi9AQLogOydOp Ikqv5XxgzZ8+1slgkOTSf7cl1RXXHIv0PD5KrWCsRfZmiCSXWcUolVbssASfolvZK/+f AC+x0A7SDxZBtrUcbu7nIJS8Qld2cQjojY9uB41bcdnRs1ErbUUW0FuKx14fRgPnpbYp sC/f6PO//7/fFNVHkBV17tkiHxSouvyhzxcgbGQCZ9peyxjiU7KvihMOB3xgFN0bfR2N vxhQ== X-Gm-Message-State: AOAM533/H7qPI+nwc4/rQQoomcgOKnCi988QUiYCwyHhWrQ6Rl8SH8gP tCwOKJZtG1e1/1ok+5d61xX2Hw== X-Received: by 2002:a4a:6042:: with SMTP id t2mr2154509oof.31.1627660688308; Fri, 30 Jul 2021 08:58:08 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id z22sm282294ooz.20.2021.07.30.08.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 08:58:07 -0700 (PDT) Date: Fri, 30 Jul 2021 10:58:06 -0500 From: Bjorn Andersson To: Tinghan Shen Cc: ohad@wizery.com, mathieu.poirier@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, srv_heupstream@mediatek.com, tzungbi@google.com, Project_Global_Chrome_Upstream_Group@mediatek.com Subject: Re: [PATCH v4 4/4] remoteproc: mediatek: Support mt8195 scp Message-ID: References: <20210728035859.5405-1-tinghan.shen@mediatek.com> <20210728035859.5405-5-tinghan.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210728035859.5405-5-tinghan.shen@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 27 Jul 22:58 CDT 2021, Tinghan Shen wrote: > The SCP clock design is changed on mt8195 that doesn't need to control > SCP clock on kernel side. > > Signed-off-by: Tinghan Shen > --- > drivers/remoteproc/mtk_scp.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c > index 9679cc26895e..250cb946ea37 100644 > --- a/drivers/remoteproc/mtk_scp.c > +++ b/drivers/remoteproc/mtk_scp.c > @@ -785,7 +785,7 @@ static int scp_probe(struct platform_device *pdev) > if (ret) > goto destroy_mutex; > > - scp->clk = devm_clk_get(dev, "main"); > + scp->clk = devm_clk_get_optional(dev, "main"); This makes the clock optional for mt8183 and mt8192 as well. How about using mtk_scp_of_data to denote if the clock should be acquired? Regards, Bjorn > if (IS_ERR(scp->clk)) { > dev_err(dev, "Failed to get clock\n"); > ret = PTR_ERR(scp->clk); > @@ -877,6 +877,7 @@ static const struct mtk_scp_of_data mt8192_of_data = { > static const struct of_device_id mtk_scp_of_match[] = { > { .compatible = "mediatek,mt8183-scp", .data = &mt8183_of_data }, > { .compatible = "mediatek,mt8192-scp", .data = &mt8192_of_data }, > + { .compatible = "mediatek,mt8195-scp", .data = &mt8192_of_data }, > {}, > }; > MODULE_DEVICE_TABLE(of, mtk_scp_of_match); > -- > 2.18.0 >