Received: by 2002:a05:7412:d002:b0:f9:9049:d2ea with SMTP id bd2csp38351rdb; Wed, 20 Dec 2023 03:20:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHd7hZtIUZQkFF47VUmxGYSnf3xBPo5AvfALvSoyTigyBcNlfN580BJbEqFmp7h/KpDNiqg X-Received: by 2002:a05:622a:1990:b0:425:8868:54ee with SMTP id u16-20020a05622a199000b00425886854eemr27395621qtc.97.1703071233437; Wed, 20 Dec 2023 03:20:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703071233; cv=none; d=google.com; s=arc-20160816; b=VJ6rRHeXaHeT4+AwbAiScFVjOys43te0WhCPmrjM2LNJhI1RwtoXXSNhvENQrcQcHY NncNY0jl+phGdQzS4G/Poir1bm+Exw8FOI7lHBcCVdN+OZ/ixhTkAV0n9lC66QE0G+DV E/EDygFhrcuCoYhUkWP7Pzzu5BYS0LauwC2Ga5rpnRyCN63bkdeo2AOTaDPC0723JxuW mJIF3Y859fRxoH8ga0rUMoRE61tiPakaMsg8B4wYvdg9QJdQomhrmmmsoVfm4unsaHJT ILrbU/g7+Z1S1PX19DH/9pYDlHetc195/odo2XUNiPTXelDBl7OS4mRfTa4UTC7okYTL S/CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=IAmlDlInxuQrZ1cE1pP47ocBQk8ES4XUkRZRFq3xVa4=; fh=EaeN2kDiNt0uAyzBy6fh6+AgkKkKIFfVjy08r7WC8eY=; b=gG1paDNEi2ecKASzDHYcdnYKUR3Gzo4VJiXjLYyHtIja0zVkxWu0dWz2LOFZ8Nf2ue kaSnjIrU774CdVwZOW9CAXSPESr5UTxl0qtgjQMalBor0y0IANZXXI1xCGDOyBCLpDgK Lf+GwW1ofqQfDtZy/8WH6GpYzuajuKRp8Gc5olQiQQyj+4l5SEWV3MBq1oIGlzzWMAj1 y/B2sY/x8YfxNXWpqiPfX0ja148rVLydy2KR6BS1KooDK9xppWRy6C8lJB2epFpeQ2Xy t/SFXwHpMmDc/4i6jMLdotGrYtzvD8sAbU8ULRLYfbmjB1+XJS9ctjDBeVuVLTDis56V OlEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oKP0PgpJ; spf=pass (google.com: domain of linux-kernel+bounces-6809-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6809-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id cc13-20020a05622a410d00b0042588ffc3c9si32003065qtb.362.2023.12.20.03.20.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 03:20:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6809-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oKP0PgpJ; spf=pass (google.com: domain of linux-kernel+bounces-6809-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6809-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 268291C22950 for ; Wed, 20 Dec 2023 11:20:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A3CE219F3; Wed, 20 Dec 2023 11:20:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oKP0PgpJ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 F2CF721356 for ; Wed, 20 Dec 2023 11:20:05 +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-wm1-f46.google.com with SMTP id 5b1f17b1804b1-40c39e936b4so62614335e9.1 for ; Wed, 20 Dec 2023 03:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703071204; x=1703676004; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IAmlDlInxuQrZ1cE1pP47ocBQk8ES4XUkRZRFq3xVa4=; b=oKP0PgpJizdPjrHFvhWxiY0djhRZoc8PfWYJV6MBJDzig7X5s+YHpXVNy8fiVJvXjg W/D7EG7+3wKhzfuAw+8JpKfKYlQnmKsTSail4+wFUxUw7lCogSo/mPOSdWxhNKa1JJmw ZIw2yL49Gyyr18evnb/1os4y6HjQ1+4220OdYtJ8XExZ4OETz7aX4obwfai71BRPo99f 7Ju+31363wtA4bL7e9ek+iuH4CT7gbyq9TO9VkU39r6/NyblM64g7NmFZJUMZF7JckxW 9TU4BdccptMP07pIr7Urc/5dgbXhi8tAkkhTFZKk9hGwnjFQV5UPae0RtEOzKRMGFfly bPMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703071204; x=1703676004; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IAmlDlInxuQrZ1cE1pP47ocBQk8ES4XUkRZRFq3xVa4=; b=YemfKXBrT5gFQq4p3/cQ/EkaQFeFPUUdi6J9AEmJHlN6jMauGkoowinlWSJWtsMLil ooW2yWzkl8MlIBlkUTU6ggBO4Ypi6gsn9OhsdxTrb393zbcvVYwqKCQ0jjvKzj5DdPRR jPsGHAcQoIxUsad9uxdqg/IpG5hCP6cnXKL7FKj4MAXCJO/1dPn+GK/7FD7SK7D9gtoP egSmGar88y5+YqvFpwIzclECu+c5hheLGStbvoQ3ijInPuN7GCri4TGjvl2KUnklArHo 4+4LZs8aa7E62omAQRsTBl5i/C8ClbOqGRS5zuBbu/Pc6EVHaYzae/A6YhMSJE302BdW smFA== X-Gm-Message-State: AOJu0YyRv29P0Yd6AXF0ctO1Q7mTX9LwI2lU1XmWxU6s5zg65b0BWTbJ r1OKF6xXPce2rXbN1SxllhJcjAnM9q2zQ7pL87s= X-Received: by 2002:a05:600c:8512:b0:40d:38c6:7cec with SMTP id gw18-20020a05600c851200b0040d38c67cecmr114039wmb.299.1703071204012; Wed, 20 Dec 2023 03:20:04 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id q15-20020a05600c46cf00b0040b349c91acsm6912026wmo.16.2023.12.20.03.20.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Dec 2023 03:20:03 -0800 (PST) Message-ID: <596c4ed6-bf3d-4406-8b28-2b34548520d1@linaro.org> Date: Wed, 20 Dec 2023 12:20:01 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/1] arm64: dts: qcom: sm8550: remove address/size-cells from mdss_dsi1 Content-Language: en-US To: "Aiqun Yu (Maria)" , Dmitry Baryshkov Cc: 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 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> <72305a35-02e6-4ff6-8251-01f986530c5d@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfG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6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <72305a35-02e6-4ff6-8251-01f986530c5d@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/12/2023 11:33, Aiqun Yu (Maria) wrote: >>>> >>>> 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). > I can see the panel example now. > While panel@0 likely node is not at in the binding that I've checked. "Likely not" is not the same as "cannot". > There are quite a few of binding document about the same driver. I You keep mixing drivers, bindings and devices which does not help this discussion. I really do not understand above sentence. > checked 5 of the bindings document and moste of them are alike, and > don't have the panel example.:( Example like the example DTS in the binding? What does it have to do with anything here? What are we talking here about? >> >>> 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. > Now I understand the issue, here is some thinking from my end, and > welcome others to chime in with more ideas: > 1. Only put "#address-cells" "#size-cells" right before node of panel@0. > 2. Align current binding document with "panel@0" examples. Examples? Again, about what examples are you talking? Mixing terminology does not help this discussion, so let's be specific: Touching examples just because you want, without valid reason: no > 3. Too many bindings files for driver "qcom,mdss-dsi-ctrl", shall we > align them into 1 binding files. You are joking right? First of all, there is no driver "qcom,mdss-dsi-ctrl". Don't mix the terms, because it does not help the discussion. Second, please read previous discussions related to these bindings. > 4. enhance the dtc warning check if we still want to have > "#address-cells" "#size-cells" even if there is no "panel@0" attached. > > @krzy here I try to answer your comments here as well. > I am disagree on leave the warning as it is. And want to do something to > improve this. Ideas above. > Let me know if any comments is not right addressed from your comments. You want to do something without understanding the problem which results in random band-aids over some warning. Instead, please dig deeper to understand the problem and then propose solution. Best regards, Krzysztof