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 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEED5C10F05 for ; Fri, 29 Mar 2019 14:14:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 813C3206C0 for ; Fri, 29 Mar 2019 14:14:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729402AbfC2OOY (ORCPT ); Fri, 29 Mar 2019 10:14:24 -0400 Received: from mga07.intel.com ([134.134.136.100]:63861 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728973AbfC2OOX (ORCPT ); Fri, 29 Mar 2019 10:14:23 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2019 07:14:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,284,1549958400"; d="scan'208";a="331887781" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by fmsmga006.fm.intel.com with ESMTP; 29 Mar 2019 07:14:21 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1h9sGx-0005oa-Rs; Fri, 29 Mar 2019 16:14:19 +0200 Date: Fri, 29 Mar 2019 16:14:19 +0200 From: Andy Shevchenko To: Sakari Ailus Cc: Petr Mladek , linux-kernel@vger.kernel.org, rafael@kernel.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring Subject: Re: [PATCH v2 1/6] device property: Add functions for accessing node's parents Message-ID: <20190329141419.GY9224@smile.fi.intel.com> References: <20190326124106.27694-1-sakari.ailus@linux.intel.com> <20190326124106.27694-2-sakari.ailus@linux.intel.com> <20190327122625.eaisnw776vqwhhnh@pathway.suse.cz> <20190327142036.jf6puc5uo2mjutbl@paasikivi.fi.intel.com> <20190328141036.mbns3ei4agnginsg@pathway.suse.cz> <20190329130436.4fxzki5kljprhyai@kekkonen.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190329130436.4fxzki5kljprhyai@kekkonen.localdomain> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 29, 2019 at 03:04:36PM +0200, Sakari Ailus wrote: > On Thu, Mar 28, 2019 at 03:10:36PM +0100, Petr Mladek wrote: > You basically have to have a reference to a node until you're done > accessing it. The refcounting in the fwnode framework is based on the OF > API --- otherwise you couldn't access OF nodes using the framework. > ACPI > does not have those (as you can't dynamically remove nodes). What about configfs where we can load / unload tables at run time? > The newly > added swnode does have refcounting of individual nodes as well. -- With Best Regards, Andy Shevchenko