Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2944716pxb; Thu, 3 Feb 2022 19:34:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxq4Cs4Kf4IFhB0wDa7wLvpMqpSuD8ojS8D8b7dKIi1K6Y6JW4HgRyeOBt1QBTH/4o0DYcm X-Received: by 2002:a17:907:3ea9:: with SMTP id hs41mr803627ejc.727.1643945640828; Thu, 03 Feb 2022 19:34:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643945640; cv=none; d=google.com; s=arc-20160816; b=ThoIR/1FgvSWVuboqeOigEYMNrOV4EST7C3t+dW0fmlhhqp13drYI8dmEy8YLMATJe 6KDUvYSn6gAO014Svbbd08R8Hj5lUWZIvtG3fpU5xwaRAz9xYmBfHtJAkIppYfGL9awB +pTCQX2IWEjB7EuUhWkIEn1ykELT7J2hzPyyuNtvOdiZF29a+bPP0+H2B/IfhynApwoi toKceNzi7NUwMoL9KoS/zxyzALOGS2Zi4+UL1xlkLZRImQglfuQA+gIPjitSwb40jZ7a yucXrMoF2ukP5ukvz83xpvvXBVpvl/S7rd7wIE6hJCwBxLbR3KKwX2qLQkQL5LtBPp8M Orcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7el1iFQDw4bHHjq5GbbbknZQamZCeqFF7QzUeFeozJ0=; b=WulH4zFWE3Z4dgk7JNxfMpDC/ZrzajpkOkG40kuCf6kw+fcpbvA50MgXLH92dm9cCQ TBUiXLdQpkkAldfmkmCDnrW0A0fIe2lG9hcffbheqxCyJ3t/yf+H7fNEI9t1jjiYrChP kZfPWFkcVBtjKc0J+2gF7BpGs2irK8AE+pSUPkF68XDlkQKt1IxAk0ew7oUqkVxBPaYP SD8iCKTV1EkeUpnyhgiNaaBCGj0f+45x666Zm9uFXJW0UQyqWxXxYD4tqhalJuAcB61k 4fehlXjS+2GweeXcZiD0Ltup2NEfM++olKctYdyHsu70Wj3Ti0J1d4qPM8WoyxonTsty h7fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dxb0q5nk; 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 hg4si396733ejc.594.2022.02.03.19.33.26; Thu, 03 Feb 2022 19:34:00 -0800 (PST) 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=dxb0q5nk; 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 S1353962AbiBCULx (ORCPT + 99 others); Thu, 3 Feb 2022 15:11:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353955AbiBCULv (ORCPT ); Thu, 3 Feb 2022 15:11:51 -0500 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69B76C06173B for ; Thu, 3 Feb 2022 12:11:51 -0800 (PST) Received: by mail-ot1-x332.google.com with SMTP id d18-20020a9d51d2000000b005a09728a8c2so3541586oth.3 for ; Thu, 03 Feb 2022 12:11:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7el1iFQDw4bHHjq5GbbbknZQamZCeqFF7QzUeFeozJ0=; b=dxb0q5nkfXvISVc9sPcKq2w/gk1eSvVgCJc1YOjrTgiYh8lBGVZ8thOYRegARgW3I6 NO7rhGSMTy+P7UIUJHIHdySpPuj9fMKknuNZUJs40YQU0Kj4m+ktNKmtu5c+DQky6ap+ KkDM/w0J7XaC82zVm7czGssiNXvXrkvUdD4Y1dZaSj9FAl2fJ78A3ds0fPxev+qhoXFI 8CtfiEMlvsnHuEV97IrqL8882YdNb4oDpp1lsNTQLdRUQ6t0xhwfaIR7k1mUJmwY4l8u n7/HD/34mSMweYM6ftG5FzUVzUBk/Hhnc3RvUz7WE74gl6a4+dKmqNZZyxbilnWmO8sM v5Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7el1iFQDw4bHHjq5GbbbknZQamZCeqFF7QzUeFeozJ0=; b=FMCfPIGeDQjjJycWBaQKV5fw87IQEOPFErvk3lYqyj/kUa+2EKVJnvBCu0DNnnzqOl uL21wHuY9+/OyUGbTQLUNXPogezwE8GpqWluusj9KBo3Ed3v+9ReYQ5YOPvuSXdxsB30 PByW2ihcBRq12SVgoh7kwjtQaDx2QVogTMIYp3ZmcxqVnVXnO61WMcULSrD5+JZ/slIC 1gpKcOIffIQXbx5gS6C9YYaEIBHYLnV63sBvv2SBzLha+Q+6B7yoPbkBDWsRfZa1P604 lvUe2r3nmQENI93zSO+TnZ0aYPL8CwzlZ24+HgTKoq5PojYLxGwo5z2mHDQ1pUZikrtX YY+Q== X-Gm-Message-State: AOAM531NsUZqx1xlYJQZ9oB+gl/m6gySEWJ5YGcoGvaE0tLx8+q5jS2B q2QdWYOtp/a6SMo9tK5E1avMpQ== X-Received: by 2002:a9d:68cb:: with SMTP id i11mr19654712oto.256.1643919110741; Thu, 03 Feb 2022 12:11:50 -0800 (PST) Received: from builder.lan ([2600:1700:a0:3dc8:3697:f6ff:fe85:aac9]) by smtp.gmail.com with ESMTPSA id a8sm11458735otj.47.2022.02.03.12.11.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Feb 2022 12:11:50 -0800 (PST) Date: Thu, 3 Feb 2022 14:11:48 -0600 From: Bjorn Andersson To: Rob Herring Cc: Alex Elder , Jakub Kicinski , "Gross, Andy" , David Miller , Matthias Kaehlcke , Evan Green , cpratapa@codeaurora.org, avuyyuru@codeaurora.org, jponduru@codeaurora.org, subashab@codeaurora.org, Alex Elder , linux-arm-msm , netdev , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] arm64: dts: qcom: add IPA qcom,qmp property Message-ID: References: <20220201140723.467431-1-elder@linaro.org> <20220202210638.07b83d41@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 03 Feb 08:44 CST 2022, Rob Herring wrote: > On Thu, Feb 3, 2022 at 5:27 AM Alex Elder wrote: > > > > On 2/2/22 11:06 PM, Jakub Kicinski wrote: > > > On Tue, 1 Feb 2022 08:07:23 -0600 Alex Elder wrote: > > >> At least three platforms require the "qcom,qmp" property to be > > >> specified, so the IPA driver can request register retention across > > >> power collapse. Update DTS files accordingly. > > >> > > >> Signed-off-by: Alex Elder > > >> --- > > >> > > >> Dave, Jakub, please let Bjorn take this through the Qualcomm tree. > > > > > > I don't know much about DT but the patch defining the property is > > > targeting net - will it not cause validation errors? Or Bjorn knows > > > to wait for the fixes to propagate? Or it doesn't matter? :) > > > > It might matter sometimes, but in this case it does not. > > > > If the DT property is present but never referenced by the > > code, it doesn't matter. > > > > The code in this patch looks up the DT property, and its > > behavior is affected by whether the property is there > > or not. If it's not there, it's treated as an error > > that can be safely ignored. > > > > In the case this fix is actually needed, we'll need > > both the code present and DT property defined. If > > the code is there but not the property, it's OK, but > > the bug won't be fixed quite yet. > > If there's only one possible node that qcom,qmp points to, you can > just get the node by its compatible (of_find_compatible_node()). Then > you don't need a DT update to make things work. Of course, this > doesn't work too well if there are 10 possible compatibles without a > common fallback compatible. > In one of the latest platforms there's two QMP instances, so we decided to make the reference explicit to prepare for the introduction of that. So I intend to pick this patch through the qcom tree. And we don't need to synchronize it with the net-changes; the two changes can go independently and only when they are both in place will the change take effect and the issue resolved. Regards, Bjorn