Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp722474ybm; Thu, 28 May 2020 13:28:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJcw+KcVj5f5h7wrvD19pX3Ol1tD4ZCCGu8+ynq8diAlNp8SQW+2HAaXMvIBb4uMxYiz81 X-Received: by 2002:a17:906:868f:: with SMTP id g15mr4643595ejx.208.1590697683109; Thu, 28 May 2020 13:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590697683; cv=none; d=google.com; s=arc-20160816; b=Vr//KTNC1CDSmefo/9A4RZw6qqTKsq4xGKN8ajJXWRifnTVHzkbnNH+SUrZYCjzJcE SYukHIktAM9akQlPcZgbrIyrS7z4FOfDSBQd68vF06umR6LKmwksOAyeO6Hb/1DZ2QnQ XISlDulUvS8EEu4qDqTSXsaYhG/SALJOFYxWE+IRKLp7otGbWIeqz5a9QPfjoT2eyWc0 m1AMy1e1kUju68ZnLpcaSYN+LJqsKxGte36q4uClcQl0k94WcxlT6ZEkGJ4vNMxho1Rq ARg1UjZawONXZ7NPZ2b+RO9eB0uoCiH1A7FZX2fXIP5wz4CEsmCP5W4+LiCd1Gyl7gre y5qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3jEHb7o98C7LTydu7uW3451vfLZG6eEw40N/JKdaSjg=; b=PBPC0IfddtsMnX8y7uc7co8+XAfdAZbb0yWafZygs6PWGQynyjfxCS5XlZqZ0KA+7w 0VskYPbXyfwLZPv+n9g60Yq0lcgA8j28ybE0MyCsLvbHPaizyM/2sQAoSMzFbC51x9MK GCQDKoFqIk0b3ljwKjJbDNh/v6jcwwJObU3MFswZBMKPIrFD/xOjeaeuuPq1EDLnjs7D dPJ+Jk1YN09fg9kE1PT4Dj096hZ1TlrO4FaTeA5LJNX/6V6dZxfLOshw86QdWrEKf6jM PzWb2u5faRmyC4NOFqGOn/XpeKJXS1XKKzJ8ffAvqpI6wnc6kA5SC+jK22TpsRJidX2m KANw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="hFQtq2Z/"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kq23si4335404ejb.104.2020.05.28.13.27.39; Thu, 28 May 2020 13:28:03 -0700 (PDT) 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=@google.com header.s=20161025 header.b="hFQtq2Z/"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407176AbgE1UZ3 (ORCPT + 99 others); Thu, 28 May 2020 16:25:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407173AbgE1UZW (ORCPT ); Thu, 28 May 2020 16:25:22 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BC1EC08C5C8 for ; Thu, 28 May 2020 13:25:22 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id p21so107014pgm.13 for ; Thu, 28 May 2020 13:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3jEHb7o98C7LTydu7uW3451vfLZG6eEw40N/JKdaSjg=; b=hFQtq2Z/UkexUJS87ZXMK5dd/I/61tAxxU1YqXREhFrJ6CQLI+Oiq2KvJWPM4AcVga pq/Xzk2fGahlqcUQTUmZPtMsZtxMZtbXNBqs4I/bmIcdGW/kplEMxsqqV8jZpUkL3LPQ vxe8xlt4/lDvYm9ucASaaP1IfnlIToCEXzKtbDae0BuzgI1b6NHVNOUCNBaP4Jiwqwnq J0i1CzReH3lwCpwSDq8xygbEzj4VlzMTTLL8/EbnZPBaz3bI6cjYs2mzwiZP/1ZwaD3d tgIAJ1JGTX0PfSLd/pF9uqp3cRFa4EYFHPfqLB/ZViDskZBrjzNEzh7A9SVYcQmoMPjN 7Nuw== 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=3jEHb7o98C7LTydu7uW3451vfLZG6eEw40N/JKdaSjg=; b=n5JFlud0LcNOztLeNFOrjKmsdXxYtIPKlOEh5CjKlg4ln7mNEQu+8R99yYpghjnsik 4nzMO0pdm38bMt5PA2caXYXMqcEOcXUf+ILZM9aeP7l5pkRl++XJYgzxgGWa20XEOdGg JIDRe8AEWRfkyMxunh5kGir2EVUvea8W4tJ1vhqhCIbE32ZpObGlo3e9TA4FBLwxAyYH noILNnaEm6u+KEWveMUpW9d1I9GTs3TpMrEEuhXpIp9DKaiueq4z3fMjKNihf7AVTcjW cFY9N6kKMdf+NNlBAqlF0HVVDkBiXeccaLnVIdQc0m3dQlCxmB7ZcuBU3JjwY5jHDo5o dqNw== X-Gm-Message-State: AOAM532fOq1G7tCCqvK1LHy35wUcJVZCXMylizLTm0/Idki/WSfO5+v7 0/lHxD6T6HYJkraDeZmdbHs/XdSZwvOXDXhaCQKOegLRDlE= X-Received: by 2002:a63:d04b:: with SMTP id s11mr4561837pgi.384.1590697521912; Thu, 28 May 2020 13:25:21 -0700 (PDT) MIME-Version: 1.0 References: <20200524153041.2361-1-gregkh@linuxfoundation.org> In-Reply-To: <20200524153041.2361-1-gregkh@linuxfoundation.org> From: Brendan Higgins Date: Thu, 28 May 2020 13:25:10 -0700 Message-ID: Subject: Re: [PATCH 1/2] software node: implement software_node_unregister() To: Greg Kroah-Hartman Cc: Linux Kernel Mailing List , Guenter Roeck , Naresh Kamboju , kernel test robot , stable , Andy Shevchenko , Dmitry Torokhov , Heikki Krogerus , Petr Mladek , "Rafael J . Wysocki" , Randy Dunlap , Rasmus Villemoes , Sakari Ailus , Sergey Senozhatsky , Steven Rostedt Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 24, 2020 at 8:31 AM Greg Kroah-Hartman wrote: > > Sometimes it is better to unregister individual nodes instead of trying > to do them all at once with software_node_unregister_nodes(), so create > software_node_unregister() so that you can unregister them one at a > time. > > This is especially important when creating nodes in a hierarchy, with > parent -> children representations. Children always need to be removed > before a parent is, as the swnode logic assumes this is going to be the > case. > > Fix up the lib/test_printf.c fwnode_pointer() test which to use this new > function as it had the problem of tearing things down in the backwards > order. > > Fixes: f1ce39df508d ("lib/test_printf: Add tests for %pfw printk modifier") > Reported-by: Naresh Kamboju > Reported-by: kernel test robot > Cc: stable > Cc: Andy Shevchenko > Cc: Brendan Higgins > Cc: Dmitry Torokhov > Cc: Heikki Krogerus > Cc: Petr Mladek > Cc: Rafael J. Wysocki > Cc: Randy Dunlap > Cc: Rasmus Villemoes > Cc: Sakari Ailus > Cc: Sergey Senozhatsky > Cc: Steven Rostedt > Signed-off-by: Greg Kroah-Hartman Sorry, I was on vacation. Seems like this has already been sufficiently reviewed and applied. Nevertheless, Tested-by: Brendan Higgins