Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3157305pxb; Tue, 13 Apr 2021 21:12:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyruAUcKF1JjxsXFT86BQC+XehKHx9flEzgt9Ay9DtpQ4VbH3WmpaK4kyvCSBsSwYCN2qtI X-Received: by 2002:a50:fa84:: with SMTP id w4mr1554297edr.28.1618373574524; Tue, 13 Apr 2021 21:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618373574; cv=none; d=google.com; s=arc-20160816; b=YOpDQC2uiEAWmqPl3cvmVZXfzcTx39swB1k/P0QVgxCKTZWBseaOvapx9xzXhh7UcN WDaVi66rRLIwVpDkD9LPQRGHJH3klT+q4/xjW/UGaeRFX632Qhx9G0UWM0CrdkQj+Ywy sssgV41DK+JQWUS2d5rDIGKCkbJt1XfuubHTegXSAdvHa0O9+eAJ0HjRzgwPdpzZgzju 7wgaTxvCy2ygEAk5oiJLIG0/aA4+epuV/xBgOuEo4evURr2PUU/+1fMVyZkgrD/mTSLz 1lFmRPnZjyxAgjEsH0JZH3daWo5R6caVR+Gz5723Nn0lpl5pjs5YW0Sm1CVEcEWq29Y1 Kc9g== 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=v2QhzyojWbvybLlPtewmMNO5cATZp5zhGPpcdHGJXGg=; b=wAxjMQHO9Iie0kDooSuQgCDFrZdPlwFpDHZNEyBgVtuq+sxeshIIiRRiqqb5jAWv/i K/qmbxQ8O2Y1MxCev5dZqbDyyM7cTNMIL+iM9HmhZmzDNFzRn7Hc2jF1VxeACmZOAAEs 6Xs1WKVOhnHnMRs9coHOz7E8E+ER9m964gs0DG2qMMQF779EM9FF6RxqhNcHsqpgiHag P93JTWvTT9BkTnFCU5+fNSSAAQbxWJCz+qXECnngPO4Jke44VzhcDD9/h4A+Njz/6E12 5rTiNvqIX9WrUbRl17Z340NhR1pdp3FLDvoHguN0yAJWRkV/dHWUZQkcyqnYqKv3jfhz o5jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BKlDaTeH; 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 m10si11495302edd.22.2021.04.13.21.12.31; Tue, 13 Apr 2021 21:12:54 -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=BKlDaTeH; 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 S1347173AbhDMR3k (ORCPT + 99 others); Tue, 13 Apr 2021 13:29:40 -0400 Received: from mail-pj1-f46.google.com ([209.85.216.46]:42951 "EHLO mail-pj1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347168AbhDMR3j (ORCPT ); Tue, 13 Apr 2021 13:29:39 -0400 Received: by mail-pj1-f46.google.com with SMTP id j6-20020a17090adc86b02900cbfe6f2c96so9369034pjv.1 for ; Tue, 13 Apr 2021 10:29:20 -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=v2QhzyojWbvybLlPtewmMNO5cATZp5zhGPpcdHGJXGg=; b=BKlDaTeHzuJv+GEQuFg1n4srYnuQrdQZmp5Fdc4/vh9SPNKr6d0mCK8+K/n363EDR4 GfiqaR+iULjCzNK1G+mIwSzUbnujjFaVCnL3PWPY4UUGcBLL3+fKpxppIhqT1at8qII4 w86hiSsfwaiVoV/14NHwhE12RAmg0vGLJ8elj2dzlcR9gEv4hz7+j6fjHHVdxKU3rX98 Z6n7pCAC3gSgO7s66c1I/UoIwNzsSQrOAXXHn/YAnqn2k9ZrrMOkWObGYRTiA0CDDtbu FGoXs223kiZ7/iv1MQsr3DT+S0tUPYp2i3iOJ7+RUATTJsDh72ct0zYnPMKZGd9rcfuR QAKQ== 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=v2QhzyojWbvybLlPtewmMNO5cATZp5zhGPpcdHGJXGg=; b=EK5ADHl4HBpCbcuoPYstCZ2ShQ4qq0nV2Bdy7bpQyTG1mnqQb7c+jW3uiJJTzoP6CW SQ9mmMATtyVo/C/YJd+q3WrOSz9CfpVAijPJJX7mEbsdXkFnMcXPXl2sV2XUhQ0smX5/ iROlk5lGh9Hs6nabv8x8vCuvxDicPelWE5UHQj6nIyvq4wdtA4ZC0//uHgbL9OPGXcUu 7XIDlSZCCVfuf3JVHSlmK1Ukfrcer8GWQgOMQAXf/WO8jBfurdKPhXQCaRPtuYfKsxHG aWRwySrgGX5z+ChZo7Y+f39adi7f9MkZo9f8Nja3o/qf1Pxgqs6VEAGdSu1dTEkkEi7h WWbg== X-Gm-Message-State: AOAM530getUCDRxRIDs4wUa2uThQo7rsnbFtl1DMcGRGToAG3TK94Hlq mcp2mivu3ZSxWDvLy+GItT2Xew== X-Received: by 2002:a17:90a:5217:: with SMTP id v23mr1092282pjh.161.1618334900010; Tue, 13 Apr 2021 10:28:20 -0700 (PDT) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id w1sm15075490pgh.26.2021.04.13.10.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 10:28:19 -0700 (PDT) Date: Tue, 13 Apr 2021 11:28:17 -0600 From: Mathieu Poirier To: peng.fan@oss.nxp.com Cc: ohad@wizery.com, bjorn.andersson@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: Re: [PATCH V3 4/8] remoteproc: imx_rproc: make clk optional Message-ID: <20210413172817.GB750651@xps15> References: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> <1617846898-13662-5-git-send-email-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1617846898-13662-5-git-send-email-peng.fan@oss.nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 09:54:54AM +0800, peng.fan@oss.nxp.com wrote: > From: Peng Fan > > To i.MX7ULP, M4 is the master to control everything, so it not need > clk from A7. > > Reviewed-by: Richard Zhu > Signed-off-by: Peng Fan > --- > drivers/remoteproc/imx_rproc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c > index d6338872c6db..ca17f520d904 100644 > --- a/drivers/remoteproc/imx_rproc.c > +++ b/drivers/remoteproc/imx_rproc.c > @@ -635,7 +635,7 @@ static int imx_rproc_probe(struct platform_device *pdev) > if (ret) > goto err_put_mbox; > > - priv->clk = devm_clk_get(dev, NULL); > + priv->clk = devm_clk_get_optional(dev, NULL); Overnight the clock becomes optional for all remote processors? Why not call devm_clk_get() or devm_clk_get_optional() based on the remote processor type in a new function called imx_rproc_clk_get()? > if (IS_ERR(priv->clk)) { > dev_err(dev, "Failed to get clock\n"); > ret = PTR_ERR(priv->clk); > -- > 2.30.0 >