From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754532AbcBWRj5 (ORCPT ); Tue, 23 Feb 2016 12:39:57 -0500 Received: from foss.arm.com ([217.140.101.70]:38844 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754000AbcBWRjz (ORCPT ); Tue, 23 Feb 2016 12:39:55 -0500 Date: Tue, 23 Feb 2016 17:39:45 +0000 From: Mark Rutland To: Georgi Djakov Cc: andy.gross@linaro.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: msm8916: Move smem below hwlock Message-ID: <20160223173944.GA10088@leverpostej> References: <1456248071-30547-1-git-send-email-georgi.djakov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1456248071-30547-1-git-send-email-georgi.djakov@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2016 at 07:21:11PM +0200, Georgi Djakov wrote: > When the SMEM is probed it defers as it depends on the hardware lock, which > is not available yet. But the SMD bus and RPM regulators and clocks depend > on SMEM and they defer too. The problem with this is that the order of > registering the devices is not optimal and also we may end with messed > up serial console as the RPM clocks are not registered yet.. Re-ordering the DT is fragile at best, and not a real solution to this class of problem. Why can the drivers not defer probing in this case? Mark. > Signed-off-by: Georgi Djakov > --- > arch/arm64/boot/dts/qcom/msm8916.dtsi | 19 ++++++++++--------- > 1 file changed, 10 insertions(+), 9 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi > index 7705207872a5..c497c7b1ae70 100644 > --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi > @@ -113,15 +113,6 @@ > }; > }; > > - smem { > - compatible = "qcom,smem"; > - > - memory-region = <&smem_mem>; > - qcom,rpm-msg-ram = <&rpm_msg_ram>; > - > - hwlocks = <&tcsr_mutex 3>; > - }; > - > soc: soc { > #address-cells = <1>; > #size-cells = <1>; > @@ -512,6 +503,16 @@ > }; > }; > > + smem { > + compatible = "qcom,smem"; > + > + memory-region = <&smem_mem>; > + qcom,rpm-msg-ram = <&rpm_msg_ram>; > + > + hwlocks = <&tcsr_mutex 3>; > + }; > + > + > smd { > compatible = "qcom,smd"; > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >