Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6578499pxu; Thu, 24 Dec 2020 06:15:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJz91hfQkWkJtaJNVZhvFSjxW8WypjiSsLTDdGAdshBkF5Dzrsmu89clCQA5QUSZxCNqpFuK X-Received: by 2002:aa7:d75a:: with SMTP id a26mr28057533eds.230.1608819310226; Thu, 24 Dec 2020 06:15:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608819310; cv=none; d=google.com; s=arc-20160816; b=IaJNbrIiRO1VWGSHpF5XJLaddg9BnJl1bTHGbr3ivshd8jNV+O8RLnL8Njq4EshcW6 8FxfC2EwpUkhr178kQITauloqbqIM6iGkdGFRHvLdS65a2g8XyCp+l/UakY2bHttXx/x pFiB03oeNgYFozu9lp0MdV2jYMlxU4LbzfSC0J0S58jcIpuka5MKS5EaQf+ylBvGzcRN 5EqLh6esUhTHdYEPVsimQtvVCl1bpJXnDjFZevXln1Q/QrPyuBLXVAgqKTst6WJCFzhA MRXn2U6C4lwkfG01IazwXiLbT5nrOwuC3/8qHxU4IKP3171GGa8n/CM7mQ9uX7E6i9Z/ LV0g== 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=SyPbtlk9TvZ8wXRc8WjmzSpmQJoyLh7+BtUnWFRUKOY=; b=nQadYvm69qhZ4bdNey5OSvIbsG3QiVOZb//8pU1cwZkOPHv+CGiOD0IfW0t5QNLHjy xra4vKINbKnUHCQX08y/XAnYy12HD0AB0yRtZvNegcfvXqa1wiEfuSX3PnKm4GuRTxvT YiGT4Jo0gO1MQXq23gAnkgtmZpwDYfpluTDLsxz7UM2XbLPwZ+akEE3m8+joi6j7xC8S 9vMnXDy++eyr3DamBGPVRM85jkGbN1ulcgyw0fDeUQl2mdvCcd+yyaKh+TOIugHPOB/r n8CyPXHpfiArAHpRs2IOvHwxNlSjmNYqwi7xdP73+8WAeBA8nCyj5GpGqDW3ogAwAafu okGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Vv2Jg/rS"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d27si13217980ejc.384.2020.12.24.06.14.44; Thu, 24 Dec 2020 06:15:10 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Vv2Jg/rS"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727883AbgLXONS (ORCPT + 99 others); Thu, 24 Dec 2020 09:13:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726609AbgLXONR (ORCPT ); Thu, 24 Dec 2020 09:13:17 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B1FCC061794; Thu, 24 Dec 2020 06:12:37 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id b5so1239158pjl.0; Thu, 24 Dec 2020 06:12:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SyPbtlk9TvZ8wXRc8WjmzSpmQJoyLh7+BtUnWFRUKOY=; b=Vv2Jg/rS+lyAVr9MqO3QquOplXTJE9iaeVSbUISyBQrx29Nk1tkF6q5D3r+WDG8vjg 9FxmYx405/I97A8UVartQUnPETdQwiTCKYvIh24PLTWfcaFLGssnDt6tumHRLal0hskY myzItrP2leShibgY5N7Ebte7LM+rOf8YmclPEVSqgcyLurAqn2aINtFSbrrWqphjKSya WYStg7PkOmpP1clUIgvTPjXeQ0Yt61Ib82ihwMiA8PcGqHnsZbIczK1Edwni6qzKjG0W Say17Xh1AysuN/55mVAHC4XMuq0Z4EYGT6hxGbiBZuxzc6PuJLJ2tufoPs4HlCgyU/2e Avgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SyPbtlk9TvZ8wXRc8WjmzSpmQJoyLh7+BtUnWFRUKOY=; b=KO5LwyaFjpUOqhuk0DkZ3GRh6gnuh8rycIvQHwWOHyDTkB9EYdVch1YzKiPNDRQNIF pM47jd0IO1VPii/XC0D2mZNStSJjot9YV/1HabjhpWXSRzcDM3KCDa/SYv3VHAP6fTTA GUCASbl255gB7LYz/eAquAE2bedI4s+i6HCP2D5bhnfveHzoHkYYIvLfHAmg70YX1wuL fjc5C3NBsqWqJeEyCXWS6h4MC3sM5YNAp0edmV/B9aK4/Ye//ib9+eSBankF+4HcQst0 3imlLCphttReoo1/HeyL6znlFph3Sao/f1U2sdB6Afrsow96saH+x3EE9BcE0Zk8EOSe rJGw== X-Gm-Message-State: AOAM533xAHw38HI9MrjZXk6GF98f+g3b/orNqGyN8Fn+j2idTg/+gxDg M9vdS48Ug1/ZvsPLZ5u2zx/W/Ss6EE2dPhOx0Vc= X-Received: by 2002:a17:90a:c592:: with SMTP id l18mr4636764pjt.228.1608819157024; Thu, 24 Dec 2020 06:12:37 -0800 (PST) MIME-Version: 1.0 References: <20201224010907.263125-1-djrscally@gmail.com> <20201224010907.263125-6-djrscally@gmail.com> In-Reply-To: From: Andy Shevchenko Date: Thu, 24 Dec 2020 16:12:20 +0200 Message-ID: Subject: Re: [PATCH v3 05/14] software_node: unregister software_nodes in reverse order To: Daniel Scally Cc: Linux Kernel Mailing List , ACPI Devel Maling List , Linux Media Mailing List , devel@acpica.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Yong Zhi , Sakari Ailus , Bingbu Cao , Tian Shu Qiu , Mauro Carvalho Chehab , Robert Moore , Erik Kaneda , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , Laurent Pinchart , Jacopo Mondi , kieran.bingham+renesas@ideasonboard.com, Hans Verkuil , Marco Felsch , niklas.soderlund+renesas@ragnatech.se, Steve Longerbeam , "Krogerus, Heikki" , Linus Walleij , kernel test robot , Dan Carpenter , Laurent Pinchart Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 24, 2020 at 4:00 PM Daniel Scally wrote: > On 24/12/2020 12:13, Andy Shevchenko wrote: > > On Thu, Dec 24, 2020 at 3:12 AM Daniel Scally wrote: ... > >> + * 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 > >> + * has its .parent member set then they should appear later in the array such > >> + * that they are unregistered first. > > > > I'm, as being not a native speaker, a bit confused by this comment. > > The idea is that children are unregistered first. Can you try to make > > it more clear maybe? > > Sure, how about: > > The array will be unwound in reverse order (i.e. last entry first). If > any member of the array is a child of another member then the child must children ? > appear later in the array than their parent, so that they are > unregistered first. I think with the above change it will be better, yes. -- With Best Regards, Andy Shevchenko