Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3106494pxb; Fri, 4 Feb 2022 01:10:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJygbny5XH4LBh7bpDm04n+nXKOq9hGCUx7zQdnbzDinIuB0LQXUabKVEJESUFp2Quk8qa3G X-Received: by 2002:a05:6a00:1382:: with SMTP id t2mr2052306pfg.31.1643965812696; Fri, 04 Feb 2022 01:10:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643965812; cv=none; d=google.com; s=arc-20160816; b=aXrGuipR5ak7O/PEAiezfv9eLjV/BI2gzt/7BuBa2OFdInAJjjMu6c0MnJoDBa8JtO AA/BHnn103/zv1O9uA0NU92VteP59WG+LVagNArm1CE7mjDfkMjJwRoChF5hZOtwcMHH WZmseB3iYirOBtwX5llAhxqL/ff2aAc4CO4NCbJT9qgjfbZF62UPcV+3Z0mSbFUKksNa WU1aN8qSZK9jPj6qMNPXH9aUQtTd2i42Qpw4ZNY5BwbaEzBfPz+EUNZtsxSOKzTtE799 zUNdexXa6gDcW3RJ0wRAuLmo1Sl4I52nuTe168Fy4pb3aLjEv2QSNi8xcnUFdBYozrga GguQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3uObFRbYUePVLU7PSnJL6WQP3EJ6SrNwZIZFv1nEEas=; b=jM/EhkzOUjUy+9xF0A8vdxcKg0mwqrDbh7aYsNYlisfwwZN7CHgD3qwpiptww9WbkC j+lZWUgrMsjW6lj8NGj45JNM02VDbk3gJ3vu3v23iAvV+3+IzbkjFgmCveLeXWOGt4E8 lHUdKoOHuDryQbLdhMF+aX2mUGONh6SUnSsHpvit8YIacMGpCTGYin0S1muENK2m0dr1 nX8SkEsnAsz4+0ZnQbs9ITjWrXlQAHYgWDHkM3aqFLBVWwbBhR8psK5CW95CtP3uex5Z xrJHHpo+z4yf7u9/LSdwXvTbfuZ+M8JyYpHowSsNIf3Zr7cZ+iUVou0Eg57bx/qYlBd7 eM3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jf2ap6sV; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r200si1288564pgr.813.2022.02.04.01.10.01; Fri, 04 Feb 2022 01:10:12 -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=@kernel.org header.s=k20201202 header.b=jf2ap6sV; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351236AbiBCOpF (ORCPT + 99 others); Thu, 3 Feb 2022 09:45:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347434AbiBCOpB (ORCPT ); Thu, 3 Feb 2022 09:45:01 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B060C061714; Thu, 3 Feb 2022 06:45:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 31193619C5; Thu, 3 Feb 2022 14:45:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94370C340F0; Thu, 3 Feb 2022 14:45:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643899500; bh=4X60c9J7dyhyGgFLDNX3tftCODVhTZ8aDgMpH70B4D0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jf2ap6sVW+iM13htQpVRMj6v0TsX63zQhDH0Iid4nvYy+4jUC6LZAF9/hV/9pFvIb 57nDKwma+uVjiZTN7uWg1QiG1JxbMlNVHWFm4e+CpZPOvRPOmuai9iIfYlU+kfoInz r/lml87oTUn0Ofm/RSzrn9RAYc2eMEFL3x7n285JgcmN9KOOzwHQt8fif3Of9jso2p dePyU1cfQsnPZdsMiAiCt2O1RWn3diVmPeIvspC90rMUG11zbLJrwGJR4CHB9rE8Hy VCiHl74aBCfKVyeDqFbEL1fpWRDSixT3FjCZDKBeTCNkR3wJzpNKH2fqXw5C6strdF cUzerl3+PNJ5g== Received: by mail-ed1-f52.google.com with SMTP id b13so6540367edn.0; Thu, 03 Feb 2022 06:45:00 -0800 (PST) X-Gm-Message-State: AOAM532YG8WKpw47io7J9a7lucr76OZaStXkNRoNXt8y3q0Z5IRPXECp zSzcqvVxjN8s4c3ndb1MHNBd8+VB7XS3b5LOOg== X-Received: by 2002:aa7:d6d4:: with SMTP id x20mr35580598edr.307.1643899498934; Thu, 03 Feb 2022 06:44:58 -0800 (PST) MIME-Version: 1.0 References: <20220201140723.467431-1-elder@linaro.org> <20220202210638.07b83d41@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: From: Rob Herring Date: Thu, 3 Feb 2022 08:44:47 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: add IPA qcom,qmp property To: Alex Elder Cc: Jakub Kicinski , Bjorn Andersson , "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" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Rob