Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6883655rwr; Wed, 10 May 2023 00:15:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ffhXio6eXlsz56oGo0J+UEytlxGp7YpN0qlFxu8DorydeguobRIDTKXkdd7VuOLQk6CtU X-Received: by 2002:a17:902:b10e:b0:1a6:84be:a097 with SMTP id q14-20020a170902b10e00b001a684bea097mr16955907plr.63.1683702933072; Wed, 10 May 2023 00:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683702933; cv=none; d=google.com; s=arc-20160816; b=G5+bxX7asSMRnC0xs0cuTPTV4HlCE5nx9lEKw9AM6XNmWwROmcx/hnFfFmjxKMcrCX +coeYNPea3adyC+S2G2tkBHNNjWiFGyEcyCKqyBFcuHLN/kWn5NnUL8TVtA+ux2KdpNX F/4OT5SiB8hauiEIzugy9KdBljjehY0UUeyCZkn12B3cneGKvLuLmXZR5JE1RGUGZ7vg DCh8z+8RLWv74FEaBLD9Oykl+lVS6Co9175lKJUuf0Yr2zEAdSGtQTslGXOj9jWxPp2A lzHuqUMtZCmQjI6tVhdkVhxbnPav/6kab+9aNpLLCP2RHdeCjmBOHG2lVMlu2NWkMCVw mYgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GBw2Sqyvf9cbRwd55kMhKh45cDskQ06myM8oAKc/ol0=; b=RxcdkQUZU2SuXnOscfOzoSn0WxHPTnjWYSHIZIbRn/qIeGboK3rCTiNPk88wO4J5Vz HezMuIGZCwSto5f9xWePD6CNh4WIhIHu3F0GeimSR818nqSsGhafsJPrUXi/BUK8EYPg 6XWK2KioKLuuXcPthx6xwypPcedaS1+ZWItcqzME3HnjA8o+NyHUfgn9JHimaj4WLguC obDJcUIxDkfVUtBptutKaa5Ow0T65aVgUtFs/nsqyoiKHrfDiw1Wgue/fdKg3Jy0RO6u MCUOaOJ73rLs2w5hAfT1dZAAtZZcQkmJxjmCDBVQnJSviHoE8v95gMSZIa8QTUktWLbd j1Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NyOR4oce; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020a170903230a00b001a979141a25si3631718plh.243.2023.05.10.00.15.18; Wed, 10 May 2023 00:15:33 -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=@linaro.org header.s=google header.b=NyOR4oce; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236228AbjEJGz5 (ORCPT + 99 others); Wed, 10 May 2023 02:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236192AbjEJGzw (ORCPT ); Wed, 10 May 2023 02:55:52 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E2763589 for ; Tue, 9 May 2023 23:55:36 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-50b37f3e664so12209125a12.1 for ; Tue, 09 May 2023 23:55:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683701735; x=1686293735; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GBw2Sqyvf9cbRwd55kMhKh45cDskQ06myM8oAKc/ol0=; b=NyOR4oceBOxsHylgbZwmmbiEW0vMLE9kkHphSodX11FpmzRe5u7ApHWP2gm0+NsQQe wNuqhtiteCO3bZOKccBy6ltEeZWkWsKjJCQ8EahyhTrtaQ9jVDJlsTQFWIx516V+oMHq 9CrVIgRhgFNRR+u5rF7SXU3jJ757xUdWbKTxHUcu6dlopFOPDgsRklkTTjMVCxQ3FsSP 34ddTEDpGhwS9RwAuVIREw0BJYNdN4OW92m09D1CjY+pVeV6fAiZnoA4LZ3Cg+1cPTNx g7dSBWSBbLDQ313oFxs9//Cyai517wHnaYBF2VspvtmQca6DQo4dahuAxHB15dHad6mF PoYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683701735; x=1686293735; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GBw2Sqyvf9cbRwd55kMhKh45cDskQ06myM8oAKc/ol0=; b=M28c7zTfgPaqX9IrBKUGJrXD8fcc7R5R28stK+WGY6fhmxiBH1OXISD2A94q0+721p DoF5w8iYmf7HjtiGs8/inp9GuSvPP63hmMIah7Yt1i0BOkIbqZtRZl+8F6gGQFnFI9zr qnpL4p0Quur0N8R2Rbn2nAav+ElGTE2uOR2ByCxh5wSoJ0xmaALV+ZQ3oIB9bQZNPdHW qOluRhQQLp61hXeyDnFg21DF0RdiqoEnuE+5bhrO2071WM8Z/pVfFIUTbuGO7Ix7paAF fzGe6gT+uOqpfT9CwsKLltcRY170XW3bSStrGU3CrnAGdOBIbU/ujgHSxfOVZRn1oYWU f3kA== X-Gm-Message-State: AC+VfDwnsaRJF0RhGuY/Dz6QoHNTHzf8BCqNxoO6U/U42qIhW8HFuk4b VZebiaiPJieeWH0CdzObTIg1jg== X-Received: by 2002:a17:906:9c83:b0:95f:4889:412a with SMTP id fj3-20020a1709069c8300b0095f4889412amr16269448ejc.33.1683701734707; Tue, 09 May 2023 23:55:34 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:c175:a0f9:6928:8c9d? ([2a02:810d:15c0:828:c175:a0f9:6928:8c9d]) by smtp.gmail.com with ESMTPSA id e2-20020a50fb82000000b00509e3053b66sm1513562edq.90.2023.05.09.23.55.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 May 2023 23:55:34 -0700 (PDT) Message-ID: Date: Wed, 10 May 2023 08:55:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 2/2] arm64: dts: qcom: pm7250b: make SID configurable To: Luca Weiss , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230407-pm7250b-sid-v1-0-fc648478cc25@fairphone.com> <20230407-pm7250b-sid-v1-2-fc648478cc25@fairphone.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 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 addresses >>> 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/boot/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 bring >> new patterns of this at least till we settle previous discussion. >> >> https://lore.kernel.org/linux-arm-msm/46658cbb-fff5-e98b-fdad-88fa683a9c75@linaro.org/ > > What's the outcome of the discussion? For this PMIC it's totally enough > 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 or macros depending on order of inclusion. Best regards, Krzysztof