Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp389690rdb; Tue, 19 Dec 2023 23:07:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8ytWycqQn6BhhJZ7eNrzMETsrxu9LvnAdOYWyCUoYtrGBnZcub3O1ZkQpsceuHO9DQpCg X-Received: by 2002:a17:906:4893:b0:a23:762c:7f61 with SMTP id v19-20020a170906489300b00a23762c7f61mr1093813ejq.38.1703056020330; Tue, 19 Dec 2023 23:07:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703056020; cv=none; d=google.com; s=arc-20160816; b=gwdBJZUyV/g4HqnIkCjEwJ61XenkAXqNWZ6Bk36tQnpUhhLRur+Oy6Axvly4fgDO5X BxtYip9gr6ZGILWEgWJ+h4D6OOC1J/y4/W/pX1OXO6u8LUAPxd42O2wNiTMpWcKaFQ62 NHzxpnnY3NR1wc/myT2iMs+lkTkGxInsAawqPUlI35rzgw0KfBgq7i5EVtxDzVOIAlAR EP9Zqs1ChCSXSvseeCXLM0nyBPSHXk2n0t2xmmqvUxzHT5qn35kc1edqN0+EJb+4hvWb YrjZajDA6WjJRcvq4VsOPYzB+71ujt0qm2oS+Lm24GmAk/plBp4HfrSqfATgJcizjKiv 06WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=PDWrKqsTiKF62ylXC5/B7bhK2bQor5BoNL0HPFCdigI=; fh=pLFmaSg4FJQW+x7WTlNqAfZg9NOlviGwI4pSShhQgVs=; b=Dply1omHzHEjqzvjCrSVZR885r+fbSWLoiqTt3ymE3EHeaGuIi/KiO3Dgxbx3hVWJc g2eh8xWpASx6PX0j4M2Zwx7tMlGgqTlEpnUFRA5XUISzUnlbHLDDS9xEb2BO2ptrLXGk 1APJDgrF6Dq42AxZ4YMi0rvPl04arhShK7GwqBJMAzJDj9Ek0jGMlW04gmZ/4gAwDK7k vCeqhbh0yqBNvgC4exDZlAR+R6MLVlzsEC2u+Bf/DyYMk+svhfD/gi77ZwWhMccdX4Jf qaMJ7iru+6jcg5viDhy8V889nqUsLCF4vVT5/qwdCOE5psDRARv2Zib/H9uxt7SigzSO p/hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PgBkAR6B; spf=pass (google.com: domain of linux-kernel+bounces-6450-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6450-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h7-20020a170906590700b00a235c7b8dbbsi2152726ejq.14.2023.12.19.23.07.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 23:07:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6450-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PgBkAR6B; spf=pass (google.com: domain of linux-kernel+bounces-6450-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6450-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E65E21F2482F for ; Wed, 20 Dec 2023 07:06:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4EF316406; Wed, 20 Dec 2023 07:06:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PgBkAR6B" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FCA6134BE for ; Wed, 20 Dec 2023 07:06:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-5d3758fdd2eso43469447b3.0 for ; Tue, 19 Dec 2023 23:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703055991; x=1703660791; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PDWrKqsTiKF62ylXC5/B7bhK2bQor5BoNL0HPFCdigI=; b=PgBkAR6BCSG8V8Qouyg1TGXdzlFpj2BpN9rCwTnJEjia06lrU1MrBL9ULOh36cQgO4 ATZTtGCJ3cLeb8Yj3AKaGUJNDOKhv7gH5wB6DY84a1wWqmtE0ZIDBD2vH07odubKsIRz kEILYq6XnGQK8wijky6Ca1b7Za4tyzR/niFJ4pNPcu8ap3PcmMBnA+SGDfYdZWJPGjvE w5ZaKNM9GFMQeXhZofAzybLbuBcTTNHhuwOuClK4wJb+SqkB4bJM04DBY27mHbNQhkJf BvEGo47hFuWVYcN2idhW9SfjgYOm/8CfM4AUyBexWyvTUnkUOZZf5/4g4GyCxHe1dyWZ 3w1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703055991; x=1703660791; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PDWrKqsTiKF62ylXC5/B7bhK2bQor5BoNL0HPFCdigI=; b=Y7dz908v818uWVIEs/zaYECTHf52jMvAdybD2ejW452k7ztislM9Doxcj+PFmjDlWy Wmukn14RbQm4JZO6V1JGu8mT+q+aafw3h/6EZUUgTWtO24Oo2riJkX62+QoASXxxO9pK U1MAxqSpyQEH6YJ6Rdm+HmIprjEjVEq8qoJQzBBxmxJcSGv0gEfNAtuMxacerR4t59nv xsXArqqoErU+zqjvR+Rbl98h1BNPCzxtI47FxySd0+xI+hy2/Wz+n3uJlF1jihP3OJXM ACqoFTxSA0ZS7yW4vvAxeGgiUVyJS+vc7WH0vL5jhNHx+blTkQuzKWL4jnLkX2zyTnK2 iSlQ== X-Gm-Message-State: AOJu0YxgxTg9zuJQEh3vLU0sJuBB5SdXQIkrXAshZgmPC94aHdLBpudT Yikv73w+cusIQd8oPXHg+1AyA/P9GD8Yk2sWe7JU7g== X-Received: by 2002:a0d:dac3:0:b0:5d7:90da:ce13 with SMTP id c186-20020a0ddac3000000b005d790dace13mr14576836ywe.18.1703055991470; Tue, 19 Dec 2023 23:06:31 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231219003106.8663-1-quic_tengfan@quicinc.com> <20231219003106.8663-2-quic_tengfan@quicinc.com> <457e336e-004c-4721-b58d-e9ada16dc04b@linaro.org> <13b61d41-6045-499e-864b-51c6cb6eacf9@linaro.org> <38604415-b410-4995-9c4f-525536435699@quicinc.com> In-Reply-To: From: Dmitry Baryshkov Date: Wed, 20 Dec 2023 09:06:20 +0200 Message-ID: Subject: Re: [PATCH v3 1/1] arm64: dts: qcom: sm8550: remove address/size-cells from mdss_dsi1 To: "Aiqun Yu (Maria)" Cc: Krzysztof Kozlowski , Tengfei Fan , andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@quicinc.com Content-Type: text/plain; charset="UTF-8" On Wed, 20 Dec 2023 at 02:54, Aiqun Yu (Maria) wrote: > > > > On 12/19/2023 6:21 PM, Dmitry Baryshkov wrote: > > On Tue, 19 Dec 2023 at 12:09, Aiqun Yu (Maria) wrote: > >> > >> > >> > >> On 12/19/2023 5:41 PM, Krzysztof Kozlowski wrote: > >>> On 19/12/2023 10:36, Aiqun Yu (Maria) wrote: > >>>> > >>>> > >>>> On 12/19/2023 3:17 PM, Krzysztof Kozlowski wrote: > >>>>> On 19/12/2023 01:31, Tengfei Fan wrote: > >>>>>> The address/size-cells in mdss_dsi1 node have not ranges and child also > >>>>>> have not reg, then this leads to dtc W=1 warnings: > >>>>> > >>>> Comments can be more readable: > >>>> "mdss_dsi1" node don't have "ranges" or child "reg" property, while it > >>>> have address/size-cells properties. This caused > >>>> "avoid_unnecessary_addr_size" warning from dtb check. > >>>> Remove address/size-cells properties for "mdss_dsi1" node. > >>>> > >>>>> I cannot parse it. Address/size cells never have ranges or children. > >>>>> They cannot have. These are uint32 properties. > >>>> Pls help to comment on the revised commit message. Every time I write a > >>>> commit message, also takes a while for me to double confirm whether > >>>> others can understand me correctly as well. Feel free to let us know if > >>>> it is not readable to you. It will help us as non-English native developers. > >>>>> > >>>>>> > >>>>>> sm8550.dtsi:2937.27-2992.6: Warning (avoid_unnecessary_addr_size): /soc@0/display-subsystem@ae00000/dsi@ae96000: > >>>>>> unnecessary #address-cells/#size-cells without "ranges" or child "reg" property > >>>>>> > >>>>>> > >>>>>> Reviewed-by: Dmitry Baryshkov > >>>>>> Signed-off-by: Tengfei Fan > >>>>>> --- > >>>>> > >>>>> I disagreed with the patch before. You resubmit it without really > >>>>> addressing my concerns. > >>>>> > >>>>> I am not sure if this is correct fix and I want to fix all of such > >>>>> errors (there are multiple of them) in the same way. Feel free to > >>>>> propose common solution based on arguments. > >>>> Per my understanding, "qcom,mdss-dsi-ctrl" driver node like "mdss_dsi1" > >>>> don't need to have address/size-cells properties. > >>> > >>> Just because dtc says so? And what about bindings? > >> I don't find any reason why "qcom,mdss-dsi-ctrl" driver node need to > >> have address/size-cells properties. Document Bindings should also be fixed. > >>> > >>>> Feel free to let us know whether there is different idea of > >>>> "address/size-cells" needed for the "qcom,mdss-dsi-ctrl" driver node. > >>> > >>> The bindings expressed that idea. If the binding is incorrect, fix the > >>> binding and the DTS. If the binding is correct, provide rationale why it > >>> somehow does not apply here etc. > >> Our plan is to fix the bindings as well. > >> > >> In case you have missed the question, I just re-place it here: > >> While there are about 22 different soc dtsi and it's document binding > >> files needed to be fixed. Shall we fix it for all qcom related soc usage > >> in one patch, or we'd better to split into different patches according > >> to soc specifically? > > > > Don't touch the bindings unless you understand what you are doing. > > Your patch will be NAKed. There can be a DSI panel attached to the DSI > > host, which means there is a need for #address-cells / #size-cells. > > > Could you please help to elaborate more on details? Like what's the > right example here for the "qcom,mdss-dsi-ctrl" driver node needed to > have "#address-cells"/"#size-cells". As I wrote, the attached DSI panels make use of #address-cells / #size-cells. Please take a look at the sdm845-mtp.dts, which provides a complex enough example (a panel which is attached to both DSI0 and DSI1 hosts). > Thx to chime in that we have put a good amount of time here. Can't quite catch you here. > > Please stop wasting the time on dtc warning. The bindings (and the > > file) are correct. > I don't agree here. > Either it is a wrong usage of "#address-cells"/"#size-cells", or dtc > warning should be fixed with this usage take into account. > "dtb check" will be a good guideline for developers to follow, I don't > think it is wasting time here. It is a guideline, but not a rule. No warnings by default is more of the rule. W=1 enables warnings that developers have to classify and cope with. E.g. I don't think dtc correctly handles the case when there are both with-address and no-address nodes (e.g. 'panel@0' and 'ports'). Note, I might be mistaken there. > > > > -- > Thx and BRs, > Aiqun(Maria) Yu -- With best wishes Dmitry