Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7139350rwr; Wed, 10 May 2023 04:35:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Oe6zcxQktA3bM6PEOcordeJQPc0/cMu8yLlfnqCT9aXZC16ONQhsGD0vpNX2a0rmYinRk X-Received: by 2002:a17:90a:bb05:b0:250:af6d:bd7b with SMTP id u5-20020a17090abb0500b00250af6dbd7bmr5577472pjr.24.1683718552115; Wed, 10 May 2023 04:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683718552; cv=none; d=google.com; s=arc-20160816; b=Z12tWHjhuO0+b+rEk5cW565DyxBYfpSWtj3bcHP8Kb1dRUE140C7j0f6slOD0fvp3a 2I0Ugof62SByzX+F/oLAY+xvpZ4QCgoG/G07HLSZP/G91ly95TZ9JznpEYLVeE6c6iJL aM6yOsS7/WL5084ql9v8R3y6hzQF3Ja6eg5KRRaFQY6qrDaXqAlB/7LQBjBiXMRNf9gJ 3os56HrITPzd/zM/E1VwAl/JPARoVq2VSSbYNAQncL448/H3/5wyR2tUJdQ/soy+4fXv v/JILn7Elr3Kdw9IRg6sOqDaUsP5IvURcxijbbaEO1RsqWrPOC2MC2RYDMRfEA4kO5kt 4Fqw== 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:cc:to:from:subject :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=pNpH9churWtVNXY067utTn5iZTHhfSH7PNSyN7PmDpo=; b=zOQhfUuBjj97o+X7nMkIyYax7OCQLx0+Vqx6KV84Qzfi19NVNliPz5czEp4DjLCJwJ g9+LXoRCEHO57nXC6BXBR3ornPeeYhwJEk22joj4/QcLU37QyMZWtlN9+wR29UgzB6j4 G15hOnNK4FrF+lQhe14rvjtQ2fPQwtlax0BrY4GFmXBisb5qGhey+e4/kc3ddAKVk4gL jtgyl48wNpHTUwqmKOhYARDZrlrD9cM7NkvX6BHn9Fb0nkXNiHPpJLxgQbYB3RbXwnmZ vflT8FVxrbwHJkLSf5Zf6pQOLNro5Tz5RbCFzokvrCwVubaD6BsV+KmtqrKtDzlyTCGJ gmZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=5F5GRep5; 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 z18-20020a63b912000000b00517aa9db92dsi3629014pge.396.2023.05.10.04.35.39; Wed, 10 May 2023 04:35:52 -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=5F5GRep5; 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 S236600AbjEJL1x (ORCPT + 99 others); Wed, 10 May 2023 07:27:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236019AbjEJL1v (ORCPT ); Wed, 10 May 2023 07:27:51 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B37D55B8A for ; Wed, 10 May 2023 04:27:26 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-50bd37ca954so67998180a12.0 for ; Wed, 10 May 2023 04:27:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1683718045; x=1686310045; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pNpH9churWtVNXY067utTn5iZTHhfSH7PNSyN7PmDpo=; b=5F5GRep5g811KAguGtS93rVSUgRHqVtSaY9ywuzMtfzQAQFzM9O2V1CdiwqK5/APC8 X5erFFpavgIcTEc8AYANnTCtLQCx+RngQ8uRvC1pIOAfb4cxK79NgyN8eT9tiyhRtkQv GTDz+CKk86o3oGNNgNAoO7vsVMS45C7TPYG/KMcTKNSDewe5SW6DOLXWDvUSaYFkAmYg N4Kp5nVhEfMYz3svQsnxGNAK4k/0PXLqiG1tHhKig7elBHB63DkRzPxP0xY+d8pX5bM3 QtvvrAZx8VjUTVo5CgJIQUuf+6gqBwFMOVILvfJLUK7ZwwxE/VW9KMTCssntb4HeWeMv Ehdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683718045; x=1686310045; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=pNpH9churWtVNXY067utTn5iZTHhfSH7PNSyN7PmDpo=; b=Xiowzu2cU/jkBWi2xNrmw6NgpV+APVLq4qeGAo55ovbYKNENeXuZN1I4zFnnuRYdwS 9mTpOysMTcy46XJxszWNfgzknRTtzzXHTQ1bLhLEDobt1biBjwDBKmV3qIfCSbi0Ghq0 lvwmZmlINdc9DSlpcUj6jyMEGe5yoMgoZLJarsH7ftTuDShGBXK/HpFgG8J/l+4+mxg8 Qij40zbBXt+Nt3RP/VOrlRsSQ35n1ph+3Nxyyw2YnhlH++L7EJwhstNX+HMltST1uGoK 7xrtqahbZQZG8wnMZ2VTiWtvrtWzo3eqLaukf5s9Wiq0uREhQ74Nbc7l1cEKZhcurytS cqHg== X-Gm-Message-State: AC+VfDyB3jH2z6+C7iCvAeyfycjPDO5aHiQGEJa4B6QA0fUl9VLK1VBk nyVkibvKCshVLxPLT42BNX00+A== X-Received: by 2002:a05:6402:27d2:b0:506:71bd:3931 with SMTP id c18-20020a05640227d200b0050671bd3931mr16236880ede.2.1683718045201; Wed, 10 May 2023 04:27:25 -0700 (PDT) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id bc15-20020a056402204f00b0050b2f588db6sm1742156edb.16.2023.05.10.04.27.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 May 2023 04:27:24 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 10 May 2023 13:27:23 +0200 Message-Id: Subject: Re: [PATCH 2/2] arm64: dts: qcom: pm7250b: make SID configurable From: "Luca Weiss" To: "Krzysztof Kozlowski" , "Dmitry Baryshkov" Cc: "Andy Gross" , "Bjorn Andersson" , "Konrad Dybcio" , "Rob Herring" , "Krzysztof Kozlowski" , "Konrad Dybcio" , <~postmarketos/upstreaming@lists.sr.ht>, , , , X-Mailer: aerc 0.15.1 References: <20230407-pm7250b-sid-v1-0-fc648478cc25@fairphone.com> <20230407-pm7250b-sid-v1-2-fc648478cc25@fairphone.com> <9040e9bb-a16c-0186-edba-da986350340c@linaro.org> In-Reply-To: <9040e9bb-a16c-0186-edba-da986350340c@linaro.org> 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 12:05 PM CEST, Krzysztof Kozlowski wrote: > On 10/05/2023 10:34, Luca Weiss wrote: > > 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 add= resses > >>>>>> 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/bo= ot/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 b= ring > >>>>> new patterns of this at least till we settle previous discussion. > >>>>> > >>>>> https://lore.kernel.org/linux-arm-msm/46658cbb-fff5-e98b-fdad-88fa6= 83a9c75@linaro.org/ > >>>> > >>>> What's the outcome of the discussion? For this PMIC it's totally eno= ugh > >>>> to have the SID configurable like in this patch, I don't think this = PMIC > >>>> 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 o= r > >>> 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. > >=20 > > 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 numbe= r > > being replaced in a few places. > > Are you talking about the macro to which I responded: "or macros > depending on order of inclusion." or something else? I thought you mean with .. > >>> We did not reach consensus and I still disagree with complex macros o= r > >>> macros depending on order of inclusion. .. the macros proprosed in the patch you linked (that version that also adjusts the labels based on the SID). I was asking if the patch I sent (with #define PM7250B_SID) would be okay to take in at least until the bigger discussion has come to a conclusion, since we already have upstream occurances of such a macro so it's not a new concept. Otherwise I'll just carry this patch in my local tree until this situation has cleared up. Regards Luca > > Best regards, > Krzysztof