Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6282434rwl; Tue, 4 Apr 2023 10:10:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ZGDpNn5id9L6ZqI8cedhKVbEcTmJDMHmgU42AP2jS+MI3N0/sQy18NpYqKoH3o5RIo2mNq X-Received: by 2002:a05:6402:1859:b0:501:c839:cf91 with SMTP id v25-20020a056402185900b00501c839cf91mr204948edy.6.1680628227465; Tue, 04 Apr 2023 10:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680628227; cv=none; d=google.com; s=arc-20160816; b=C+tLz//EE4F2Skv/e2cn1gVYtOUZQbk1NlDI+9EKpGvqJkifphUdYugTekkms3M/HH rcgUtBY3mrVLyjfu5969NHwz4XZsONCFF2a+rPNx4Pp2mvwE0Eqd8i6RSygzTylU9Z3D GF6IPtGJY9UuhPLBGlzepGSzCGdxCC3RlazifJoP9jYl0rn81oP4gCLv1v2fe0XMv2S8 RvbqeSbl359uj5kw1Rw4gILTSY4gfjQp/7xGSIlqb46QEQTD0230YJ1z4I6W5Kw5wPZj yMjETW6RfbYkhQ9lIKYG++kEzs8TY7zq2gNFX0GFzAoB6A2WHqmhaeqwcMQS6S4hALkl 3O7Q== 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; bh=DiNu1ACRu56K9bloHouaXrNZa/JCLgtThvUYRqbnw58=; b=DGyYrzMEwgH6dtCuneNGsp1f0XE8q/eUiOoDr9oeWND9a4YWtDNNqw5+VYTshbBUGd 162nCYA1+ikj91GY6la3AyIx2XtvQE006PRPlkTlWEiPn146op867AJEKHJE8N8HTjoM t2UQwDStQwxAXdQbjKS5LkqWWJYas796vIUc+SvI9IGFRJhH1BiPC8znIlYalghvfAPE fXHwp9kx6UtdGtQss9uwHfvoHj42HuJX9g8wAEX08E99D1oxoYD3RBOzpDZzCWkYJHJT wYgxmnu4ee+Np6iHNaWWInPbDcOQk3BhdC8vATtlSUU4tNx/eZeIDstUGiibIML50l7n PsyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 bf11-20020a0564021a4b00b004fb16259824si982348edb.339.2023.04.04.10.10.02; Tue, 04 Apr 2023 10:10:27 -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; 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 S235694AbjDDQ6y (ORCPT + 99 others); Tue, 4 Apr 2023 12:58:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232964AbjDDQ6x (ORCPT ); Tue, 4 Apr 2023 12:58:53 -0400 Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6262B3ABC; Tue, 4 Apr 2023 09:58:48 -0700 (PDT) Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-17997ccf711so35354917fac.0; Tue, 04 Apr 2023 09:58:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680627527; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DiNu1ACRu56K9bloHouaXrNZa/JCLgtThvUYRqbnw58=; b=lBHrmI4hrpjrBIiwUvV4fdcb0NK+SWBAm8vKjpdq1GzZ8tu73w0QQt501Ewa9gSRDM T4KCeGLojE4znvigwgn7TOjTODpJ/vAFeYkOe2muYymoCaKJAJzaMmUszCc20mKyqLMv vJ26nzOTsEfZoWJPVuqevMQOsbCzqHVBnDItRGJNwEGIn9lm/KwvZG1zFXi7SF4/xq2f NMh4GOgEv3pGFCa6wffFoajlua1NK0/AUUN07B1tsREpiG+eCMLCy2i/InliCxeVfTyS t1XVui8jggLUksoCs1/XgE++IpzhaG7lrWjcWEJGfD4nHILkbCdR3XIObSIIF053hxK3 QrbA== X-Gm-Message-State: AAQBX9fmaJXq2/u/EG4YXZ7PEaZu6H+bRtObFD2pvK/C75OBUSTBRczD u3wZrg+JzfEcvagJo0anJQ== X-Received: by 2002:a05:6870:638a:b0:17d:1f3:3016 with SMTP id t10-20020a056870638a00b0017d01f33016mr52065oap.5.1680627527584; Tue, 04 Apr 2023 09:58:47 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id vc12-20020a0568708f4c00b00172426ebe58sm4883176oab.27.2023.04.04.09.58.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 09:58:47 -0700 (PDT) Received: (nullmailer pid 56057 invoked by uid 1000); Tue, 04 Apr 2023 16:58:46 -0000 Date: Tue, 4 Apr 2023 11:58:46 -0500 From: Rob Herring To: Thierry Reding Cc: Sudeep Holla , Cristian Marussi , Jonathan Hunter , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH] firmware: Use of_property_present() for testing DT property presence Message-ID: <20230404165846.GA49361-robh@kernel.org> References: <20230310144704.1542045-1-robh@kernel.org> <20230323120030.7mk62xk7tco32zw2@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=0.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Tue, Apr 04, 2023 at 03:30:02PM +0200, Thierry Reding wrote: > On Thu, Mar 23, 2023 at 12:00:30PM +0000, Sudeep Holla wrote: > > On Fri, Mar 10, 2023 at 08:47:04AM -0600, Rob Herring wrote: > > > It is preferred to use typed property access functions (i.e. > > > of_property_read_ functions) rather than low-level > > > of_get_property/of_find_property functions for reading properties. As > > > part of this, convert of_get_property/of_find_property calls to the > > > recently added of_property_present() helper when we just want to test > > > for presence of a property and nothing more. > > > > > > Signed-off-by: Rob Herring > > > --- > > > drivers/firmware/arm_scmi/optee.c | 2 +- > > > > Acked-by: Sudeep Holla (for the SCMI part) > > > > I am assuming you will route this as it has other changes as well in the > > patch. > > I can also pick this up along with the Tegra changes if Rob doesn't > want to take it. But also feel free to take this through whatever tree > works best, for the Tegra parts: > > Acked-by: Thierry Reding You can take it. Thanks. Rob