Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2422357pxu; Fri, 18 Dec 2020 12:54:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJweUoYSZsCcy9PCKUUzh21sHg2O7VBTa3fB9+1egEnHDuS1P+sD09DvXgbYEROYKV2Lz+fF X-Received: by 2002:a17:906:cc9c:: with SMTP id oq28mr5861137ejb.224.1608324864438; Fri, 18 Dec 2020 12:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608324864; cv=none; d=google.com; s=arc-20160816; b=Stw5614lyanqiejBAOtquGV5COIbfb9zGu4zmf+WztoMbHIlcyiVfxLzWnYFFJYfoM NIkADULLJaKxipZs75tuO7VEyraIIf7PVG7xX+JXW1eZJ+2Z6QXW6/GyfplauofEKXGx 4tojVUe3QqR+2gxmuUFMun8FwMp+/+UuhObHfS6x5Y5lHsDCs80W0F6IHWHNAL9Dgcr+ XWwYmShc0MpOGdf06S5VQUByO1QPUBZV77JnIdSNeMn0d8uP6tqZESq5MkvdEH40zlvn 5+ZwxSOJfxVYvMoP4LCAEXriFtkVaNXOk4I5DKF16CXD1FUTdjCPD2Ult5E62I8slh5P HJkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=Nxcipxwll+1R6jsCWOEAm1D8c6VzvcVD2mHEpxkFsio=; b=Nyum/tbuUaE+DCSzxrup/GzHdzxrCskPBT7FMVPB/gxZlrmXq2olHIo89ziTugL30D DAsq/v67tnOGIR0U5XJPS3nzCCFSvpc+H/ScdM4OCEU4EX69qNGWpdHqkQuAfK2PAvb2 ZjSfrabEjHCk7DIIUW7DIGefySV1RAXBTSUKFhL+rtkJziImmOZMk13JbEnTsIj4ZJkT Oz4iIRohTKQyYLyR4zakU3qoPfCQ0yQlJJk6vlH4WfXe2y6384HV2Z3Wu4iquiFTf/b9 u4+RHAS6Xsg253245Uv8hz854GQEBT7y79bfbevJ1HnCQeUy6jzS9GYFvNqE1FZmYv3h eiew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr15si4827502ejb.657.2020.12.18.12.54.02; Fri, 18 Dec 2020 12:54:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387445AbgLRUcV (ORCPT + 99 others); Fri, 18 Dec 2020 15:32:21 -0500 Received: from mga09.intel.com ([134.134.136.24]:8108 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730516AbgLRUcV (ORCPT ); Fri, 18 Dec 2020 15:32:21 -0500 IronPort-SDR: +okqeT26HYK9ZFwbsm8suRO7yEKc5dpqbbbmE5nVr8wCY+ia89uNJxloTNhNZxh7YKD7fTRgAk jB8vUomRdJTg== X-IronPort-AV: E=McAfee;i="6000,8403,9839"; a="175641034" X-IronPort-AV: E=Sophos;i="5.78,431,1599548400"; d="scan'208";a="175641034" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2020 12:30:35 -0800 IronPort-SDR: jjVW8+smz0Jbyf0h/t8vIiq3SWfcgl3TWJArEHrhmzaJh2JIy9Omxd7s8v+xYFr8lMo0OXVQXR fAXDSTA/v+Yw== X-IronPort-AV: E=Sophos;i="5.78,431,1599548400"; d="scan'208";a="340676941" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2020 12:30:29 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kqMPS-00FgHl-53; Fri, 18 Dec 2020 22:31:30 +0200 Date: Fri, 18 Dec 2020 22:31:30 +0200 From: Andy Shevchenko To: Daniel Scally Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-media@vger.kernel.org, devel@acpica.org, rjw@rjwysocki.net, lenb@kernel.org, gregkh@linuxfoundation.org, yong.zhi@intel.com, sakari.ailus@linux.intel.com, bingbu.cao@intel.com, tian.shu.qiu@intel.com, mchehab@kernel.org, robert.moore@intel.com, erik.kaneda@intel.com, pmladek@suse.com, rostedt@goodmis.org, sergey.senozhatsky@gmail.com, linux@rasmusvillemoes.dk, laurent.pinchart+renesas@ideasonboard.com, jacopo+renesas@jmondi.org, kieran.bingham+renesas@ideasonboard.com, linus.walleij@linaro.org, heikki.krogerus@linux.intel.com, kitakar@gmail.com, jorhand@linux.microsoft.com, kernel test robot , Dan Carpenter , Laurent Pinchart Subject: Re: [PATCH v2 05/12] software_node: unregister software_nodes in reverse order Message-ID: <20201218203130.GB4077@smile.fi.intel.com> References: <20201217234337.1983732-1-djrscally@gmail.com> <20201217234337.1983732-6-djrscally@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201217234337.1983732-6-djrscally@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 17, 2020 at 11:43:30PM +0000, Daniel Scally wrote: > To maintain consistency with software_node_unregister_nodes(), reverse > the order in which the software_node_unregister_node_group() function > unregisters nodes. ... > + * Unregister multiple software nodes at once. The array will be unwound in > + * reverse order (I.E. last entry first) and thus if any member of the array A nit: I.E. -> i.e. > + * has its .parent member set then they should appear later in the array such > + * that they are unregistered first. -- With Best Regards, Andy Shevchenko