Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2943468rwb; Mon, 7 Nov 2022 21:22:06 -0800 (PST) X-Google-Smtp-Source: AMsMyM5LpQIKgXX0moO1BYQ91IyBiNGS88HYl4PpBnX3MRpAqpmbJ8H41umTEHPggz0g+5ys2Gx5 X-Received: by 2002:a17:902:ab45:b0:186:7b95:f767 with SMTP id ij5-20020a170902ab4500b001867b95f767mr55308309plb.107.1667884926454; Mon, 07 Nov 2022 21:22:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667884926; cv=none; d=google.com; s=arc-20160816; b=OX4yjjmBP6RztVj/juUABnh1Mtkb5yAthG606W5rNYyymTCfcFAwp4gkUK0s4FQHlZ w+PDV5FbXlKAu3l7Ok1STLxFaUxe7qYhieU5njbet6lLUGKWXrmVLU+AYAZueztaGSLE dRnPeKT7B50yBGa+wXoXIAk9CnB32iPVYLUSvQwoYpU1MY7h4Z63kAQ7B6VktZnF79rk Om+O0whLCY9B4Of5Ii82N+WLHksEbOQqGdvZHnKHLzbssdHPrI/uJtqfwg3QsfoNmCgn Fgnci1yo46K72oDQqAh2jpMXMdPlxtsuoG1dQL8o9CvwgQ4D1GgElgzBJYZdEbbrOT1A HkOQ== 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=m42LQJuPDQMwO0iGD4agIAERPudmmeT2NvnTT0vW4/o=; b=G+/s7J1XPgIdAg+5/K/8CFM/EsV+8huBL2vmeckPJ5v4Lf3vHnhzsNS90mbF7zlS40 sqA74TYfPoRGp6glC4c3jo+KQquIUoLeVAXdJ47nPPz6CI5gMq16C3zkCA8xfTZo1EI+ 1bNOSkc5p+ClZETi0FNvaneFWVU9z7rJ8Bfe+4DTf4/9NOoHD2cgnVBPlUNo41wHdsul vgywT2bi1LufU+hzrCJpXkMcUXjRsu8yyensiZqfKMKos8SxkghWyrt9g7vkpus3shL1 dQQQve9jALPMKAoTP+Pem2e1ha5LC7bgpcqegH0d1dUBqobXU1G6HNgj2lQ7HR3imld3 +r1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IWRfF3kl; 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 b11-20020a056a00114b00b0054307ac90f1si13932614pfm.319.2022.11.07.21.21.55; Mon, 07 Nov 2022 21:22:06 -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=@kernel.org header.s=k20201202 header.b=IWRfF3kl; 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 S232366AbiKHElQ (ORCPT + 91 others); Mon, 7 Nov 2022 23:41:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232125AbiKHElN (ORCPT ); Mon, 7 Nov 2022 23:41:13 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A035E0C5; Mon, 7 Nov 2022 20:41:12 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 2400B61466; Tue, 8 Nov 2022 04:41:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A17A9C433C1; Tue, 8 Nov 2022 04:41:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667882471; bh=u+aMSC7NtK/eF/XnaxPejrZT3LQ1++Bwr4IovOzzV24=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IWRfF3klqBvKduJp26siphyeNq3/RNm+nQkelqIna629PgV8dlx2m5+L7iJ/t2Isl CEBTukWsBpBnf8uLp9k3v3BvT8dovqFTIaIlF0vSt2euKYlIZFQe4PgFSYulFmmAEr Zk3KiHQMNF8skaoacDySPbl2cYzMTSuoVikmI66kLBdfqMXz/6XmabefgHk22meK1A vxhHNPSX0nLU0airdnO+Jm4QT2lPKkvK/t2lB1yTAnXy2kyVCn9FOAaA6BsWm6gK55 4h3E+//4Ae+v3izNeGulcQpVBmWZGbcS7yZmWPjAlzrUH8r8693DBVsYaS7OkSwnLR QpYkHuETB4zRg== Date: Mon, 7 Nov 2022 22:41:08 -0600 From: Bjorn Andersson To: Yassine Oudjana Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Dmitry Baryshkov , Stephen Boyd , phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yassine Oudjana Subject: Re: [PATCH] arm64: dts: qcom: msm8996pro-xiaomi-scorpio: Remove DSI PHY clocks from MMCC Message-ID: <20221108044108.se3et4do5q2dspsb@builder.lan> References: <20221107114016.356112-1-y.oudjana@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221107114016.356112-1-y.oudjana@protonmail.com> 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 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 Mon, Nov 07, 2022 at 02:40:17PM +0300, Yassine Oudjana wrote: > From: Yassine Oudjana > > Having DSI PHY clocks listed in the MMCC node while MDSS is disabled makes > it defer probe indefinitely, resulting in simplefb and other blocks that > depend on its clocks to defer probe as well. Remove DSI PHY clocks from > MMCC to let it probe with MDSS disabled. > Isn't this a generic problem that we will have all over the place, where we describe incoming clocks from all PHYs and then only enable the ones actually available on each platform? Am I missing something special with this case? I think the kernel need to handle this. Regards, Bjorn > Fixes: 48aa636285ad ("arm64: dts: qcom: msm8996: add clocks to the MMCC device node") > Signed-off-by: Yassine Oudjana > --- > .../boot/dts/qcom/msm8996pro-xiaomi-scorpio.dts | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8996pro-xiaomi-scorpio.dts b/arch/arm64/boot/dts/qcom/msm8996pro-xiaomi-scorpio.dts > index 7bf6ad1a214b..c68c2dadd7b4 100644 > --- a/arch/arm64/boot/dts/qcom/msm8996pro-xiaomi-scorpio.dts > +++ b/arch/arm64/boot/dts/qcom/msm8996pro-xiaomi-scorpio.dts > @@ -113,6 +113,19 @@ &mdss { > status = "disabled"; > }; > > +&mmcc { > + /* > + * Remove non-essential DSI PHY clocks to allow MMCC to probe > + * with MDSS disabled. > + */ > + clocks = <&xo_board>, > + <&gcc GCC_MMSS_NOC_CFG_AHB_CLK>, > + <&gcc GPLL0>; > + clock-names = "xo", > + "gcc_mmss_noc_cfg_ahb_clk", > + "gpll0"; > +}; > + > &mss_pil { > firmware-name = "qcom/msm8996/scorpio/mba.mbn", > "qcom/msm8996/scorpio/modem.mbn"; > -- > 2.38.1 >