Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6967756rwr; Wed, 10 May 2023 01:47:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7u2yb37MNMyIkO8lpQdd9N2B9mIyRU6zj6XYNS9d3YDYEP4NQQRS3VLO6Wn/PsqMzzaLeo X-Received: by 2002:a05:6a20:1613:b0:100:6a0b:2389 with SMTP id l19-20020a056a20161300b001006a0b2389mr12396325pzj.25.1683708471428; Wed, 10 May 2023 01:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683708471; cv=none; d=google.com; s=arc-20160816; b=czRSOJ/Obcupa+7+cGxkmofw7wUrfvcWtKS453IgXEoef0AeJSUC0dqP3i6KDAfvOA Y1cp8X+oUTY+yYxd0+iK7DL73RUqmILJsNxNJE07rB+V52BzyYlDd+TaozUWDZI5YFVS i7ixQSmUedBURg+ks/MO8OPArxs0qINgIjPFuxgXdruTpNJqU+ShtozxaW+qeHgV3ULF 5NjczjGUGzQ9SQ1+eKGT1FZpa5b6MbvpWg2PSOkNiSNz24xxRSPDHdVHzxdIYfM1xygi 5HXsERrBuinqwE/LQ/b4Cqn8ZNWZB7rSPGwkM/2IHB6U52qtrOOJY1ZyQuvxAmhpa+Vb fx/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=d/oSM3NDo7yCUuuUmfzMkN8De2E+eLR51o10BvRa8Cg=; b=0E6g2xhiiu6AW0i1LfuVFwdnTlf2BOa5TZgnRtl5rzEtWN0ZEfGofhlPrW+XxhJI40 ypRM59D7jaQRYRgXorkuWFUETirIhHX6LVUuj1KnbpIwTYSLNiAweTCWI7C2t2CEfI4z nIS3nPyyiLHQ+fRnLJ2tEVoPCBlHn/wzfSCE/hoJf8CcHYR0DiHwLGZaEQMrZOQv2iXD X+cyY5G48SVE3Fonpz/ir0nQxZZtU/qYpZhlCqwVDITTwXZXerwtMNRmhOjpab7wzfYq Ij6gy9GeptweeJFPG5Y4STrCAYTMUKDFysRfQCXKeOrh1jp6VevN2LdzcRVaI16SEc4n RclA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=iO5VscEj; 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=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a192-20020a6390c9000000b005192614041esi3350689pge.519.2023.05.10.01.47.37; Wed, 10 May 2023 01:47:51 -0700 (PDT) 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=@fairphone.com header.s=fair header.b=iO5VscEj; 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=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236473AbjEJIfu (ORCPT + 99 others); Wed, 10 May 2023 04:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236565AbjEJIfJ (ORCPT ); Wed, 10 May 2023 04:35:09 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45CE47D95 for ; Wed, 10 May 2023 01:34:45 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9619095f479so1103748766b.1 for ; Wed, 10 May 2023 01:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1683707681; x=1686299681; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=d/oSM3NDo7yCUuuUmfzMkN8De2E+eLR51o10BvRa8Cg=; b=iO5VscEjOdvzjd/aAllbGT8Mmj/rT0DclWpe6PYn6QbI3AuBaBPMeeBf2RxZxjKjBx wWjdGt3MyWDWWsatOGNuatv0rvxdT0xotxx6eh4vBxwPosrp8R38lzl0auTwSbD9Yp+5 VlHh2nn4wFqs5bsUrz2BC+oKWmvdcdeqmQLUq9njJnDyEWhPo1ZAg9pwyHP5EpnVPkWR lS0057sYBJiUd68K7pj4L+hCw2YXbJflqFqM+l2ZzCYovzw2ndcPVVcxnG3N1n7SetHe +G+NOJHK2F6kCVMO7ISq8Vb7SxspuLxzBUcvk5wTkFEiBQ4I/LtHrHoJybPjlKdFBVf1 RB9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683707681; x=1686299681; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=d/oSM3NDo7yCUuuUmfzMkN8De2E+eLR51o10BvRa8Cg=; b=HfoX4kzKT/xXkyCodBKDCLn9JEPxb4/21zR9MeyD38lBRi2NbanGcxWskQ/IUJB2ti RioH4lvXupFPEITjoYu3IMTLJYmMqvNMyBwpelNZQDPyANwG5yQNtbSFkadt3mK0xgX7 jXFz8yndTwjvyfSShJKBCBQcoQBBxjzB8Y/JCJ5tW0Pir5rUM9TtUicWSmVIrUwbiGNh th5Op0LOEzMxc8BYlem+713qjLkE574GubgkBx/AzL7SL2+GO7dOUa5Z8n244Knfz1ky BwexPqs2q3RH7cV04SynnQ6WxJPNmAunizSeLz4FG6TCdlc0ZTxALpf02RKXXwis9xZV zf3A== X-Gm-Message-State: AC+VfDydQtx8Q6Ss0JS2ToH3MqSoNo8wZqBUljxEHZz/GE7hgju6jfoP jhRmSvQBwQsHyoROM5Wx8sovsQ== X-Received: by 2002:a17:907:928b:b0:966:2123:e0c3 with SMTP id bw11-20020a170907928b00b009662123e0c3mr10553473ejc.15.1683707680984; Wed, 10 May 2023 01:34:40 -0700 (PDT) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id jy17-20020a170907763100b00969dc13d0b1sm2063951ejc.43.2023.05.10.01.34.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 May 2023 01:34:40 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 10 May 2023 10:34:39 +0200 Message-Id: Cc: "Andy Gross" , "Bjorn Andersson" , "Konrad Dybcio" , "Rob Herring" , "Krzysztof Kozlowski" , "Konrad Dybcio" , <~postmarketos/upstreaming@lists.sr.ht>, , , , Subject: Re: [PATCH 2/2] arm64: dts: qcom: pm7250b: make SID configurable From: "Luca Weiss" To: "Dmitry Baryshkov" , "Krzysztof Kozlowski" X-Mailer: aerc 0.15.1 References: <20230407-pm7250b-sid-v1-0-fc648478cc25@fairphone.com> <20230407-pm7250b-sid-v1-2-fc648478cc25@fairphone.com> In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Wed May 10, 2023 at 10:07 AM CEST, Dmitry Baryshkov wrote: > On Wed, 10 May 2023 at 09:55, Krzysztof Kozlowski > wrote: > > > > On 10/05/2023 08:47, Luca Weiss wrote: > > > Hi Krzysztof, > > > > > > On Fri Apr 7, 2023 at 10:27 AM CEST, Krzysztof Kozlowski wrote: > > >> On 07/04/2023 09:45, Luca Weiss wrote: > > >>> Like other Qualcomm PMICs the PM7250B can be used on different addr= esses > > >>> on the SPMI bus. Use similar defines like the PMK8350 to make this > > >>> possible. > > >>> > > >>> Signed-off-by: Luca Weiss > > >>> --- > > >>> arch/arm64/boot/dts/qcom/pm7250b.dtsi | 23 ++++++++++++++++------- > > >>> 1 file changed, 16 insertions(+), 7 deletions(-) > > >>> > > >>> diff --git a/arch/arm64/boot/dts/qcom/pm7250b.dtsi b/arch/arm64/boo= t/dts/qcom/pm7250b.dtsi > > >>> index daa6f1d30efa..eeb476edc79a 100644 > > >>> --- a/arch/arm64/boot/dts/qcom/pm7250b.dtsi > > >>> +++ b/arch/arm64/boot/dts/qcom/pm7250b.dtsi > > >>> @@ -7,6 +7,15 @@ > > >>> #include > > >>> #include > > >>> > > >>> +/* This PMIC can be configured to be at different SIDs */ > > >>> +#ifndef PM7250B_SID > > >>> + #define PM7250B_SID 2 > > >> > > >> Drop indentation, although anyway I am against this. Please don't br= ing > > >> new patterns of this at least till we settle previous discussion. > > >> > > >> https://lore.kernel.org/linux-arm-msm/46658cbb-fff5-e98b-fdad-88fa68= 3a9c75@linaro.org/ > > > > > > What's the outcome of the discussion? For this PMIC it's totally enou= gh > > > to have the SID configurable like in this patch, I don't think this P= MIC > > > will be included twice in a board - at least I'm not aware of such a > > > configuration. > > > > We did not reach consensus and I still disagree with complex macros or > > macros depending on order of inclusion. > > I still think we should find a way to parametrise PMIC dtsi, however I > agree with Krzysztof that complex CPP is not a way to go. What about the macro already used in-tree and proposed with this patch? I wouldn't say this is a "complex macro" since it's just a single number being replaced in a few places. Could we get this in now, and if we find a new & better way in the future we can adjust all the dtsi upstream?