From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A322FC6FD1D for ; Tue, 4 Apr 2023 16:59:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PdystXaIK+vXvU0hEhOK75WI2g6v8mrOEL+m2OcEVsU=; b=TcUC2mEd9Fnxiz MHPdEgXkPGqqrrLOmV3oNoKbGkm308WFIzoYwVdFrYqg8EF1cfkGzx5u5EXHPoXerrDAV1QsC4/hX ueyNC7ZtEwJSb3adWCbKq1BP6EXemlpsWNZTMxa99UdkUE0S301bu76q0CcX/SXL5o5BHUbq9uvZ3 mlavXMaLEG3SfAiEEY4kZk1A/iD83ifqBDB9WPHmlrl9mfzg0IpxpAvxnddLDRqK1if4Vda/7LPz2 vO2g6IDRN5xgj9jIXWLWXitxWxIztQyFe4jaksbKfZ+xw0yY/jAWTw1AK1/lqCyMDnbV9hFLNPDHg qcNOcUUEhhULIhLlxoCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjjzf-002Iwm-18; Tue, 04 Apr 2023 16:58:51 +0000 Received: from mail-oa1-f45.google.com ([209.85.160.45]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjjzc-002Ivw-38 for linux-arm-kernel@lists.infradead.org; Tue, 04 Apr 2023 16:58:50 +0000 Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-17aaa51a911so35323938fac.5 for ; 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=v3br5zS+1pRaXkO1t3T+VBSK69pd6GRmWwRTQB2qx6WF+IGPbPim+F7hme5mmn8esy T9vP7xEpHlpkhChM4ijilwiHOSTsPm8gH2JrzHR8RQCcjgLQO2PYbZ5UNzRE48Jrc+2b qBM5rrQd0C9eUgMUkWqWSxA+pEJpnPKV0Us6rgHAOAcSH6O1oeU5PykUBFnBTjOiu0gl Pk1+XI5ShUST5wiiYQlBx/+scH3dqHT5uuLi3C/10JDKiBxB7wpprc0wZiASh1cEZU/G VdrAULx/YQ/ohQqjH81veD2mKMPSkec7DmHIycddMTq6gHXNgXKYyfMLcxRUgkhtL6if LxHA== X-Gm-Message-State: AAQBX9fUQHWBlZffUUfwWKlUwPg82hRK3Lt6L0YFXLaABFg7PoeCwe9U cW0xacjyRSna0v/s/LRSLQ== X-Google-Smtp-Source: AKy350ZCXusNb0GY54vqNjcB+19rcJ0QVPtVsjXBfRiKkGVSG03QFymysoMWHm6BrxE9RNOeVe2vOA== 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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230404_095849_004576_3D797B17 X-CRM114-Status: GOOD ( 18.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel