Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1214840ybs; Mon, 25 May 2020 09:57:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFLH1pqXn1MeJBzJEEqfMOJ4sEK8AmGmcsBIy9WeNJ6lWyoBwPZBncVHEqhigZoXkmwhby X-Received: by 2002:a50:b2e1:: with SMTP id p88mr7698913edd.198.1590425822682; Mon, 25 May 2020 09:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590425822; cv=none; d=google.com; s=arc-20160816; b=maBj4fnxkshBJmGkyzw48epb6U7f419beFlaRe3gZkZ6h4EQVF3KL2OFm6TA9sSxLN m5YsYSZBmtrlYptldU4fIu3DI9WqaIT0fpCUny9qyej+DL5IFJmqgEnyXcYu/P0gYzIv NcsldxfQgLebisnIX6Ys7DSttZfOl+HwIStkRs3SynHM9+n+HRopVsD1qbukFnnjN3cg 1rd6zonPsTRK2vhr/DAYZ6/Tb6escYVTM7xtNCPUtRban79RoksBfZIQ5hLdNxbWHEEW 6ytoN3IQopAZg6RjPhPBMVeyzl9Zf3jdZU5BxBdgIH1DCE7lNR0ZHVUnObGtYp2Ss55g IdyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JClvzHKCEvCdAX0RxkeyUeTHunW1A8lDifOEmKFCATw=; b=yO115FQpoWLjykphz3WbjflX0JbszjiRf3hifgaHREPEc0Z2n+rO2xoUQ4GItOrgcd yCUuc0ZE6BH3wmJaeVdyISubYh/qJUMaoyaCIRQaJ4Fooiz0LxJfdpdzfWff3P+vB/HW SnByfDqtmAlefHIAvpU7VY8xd8Foey8uFqDTOd/eRpeMdO0gu29APU9vER/Q9ut8g2Ys Cmvoe4whOL3Avv4pu4I5xRKSTW8QOYzHpm6g0Nk49X9woYeTz560MrQLQJICmi1MvcM+ HoZi5j5/0W8SEHWKaZk3M+EwXIwjf3A15qT6NttZcF28Np5Vxv0uiLRv55h4BWZqwQL9 +gOA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si9449993edq.421.2020.05.25.09.56.40; Mon, 25 May 2020 09:57:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728959AbgEYH7m (ORCPT + 99 others); Mon, 25 May 2020 03:59:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:43520 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725809AbgEYH7m (ORCPT ); Mon, 25 May 2020 03:59:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 86059B1B4; Mon, 25 May 2020 07:59:42 +0000 (UTC) Date: Mon, 25 May 2020 09:59:38 +0200 From: Petr Mladek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux@roeck-us.net, Naresh Kamboju , kernel test robot , stable , Andy Shevchenko , Brendan Higgins , Dmitry Torokhov , Heikki Krogerus , "Rafael J . Wysocki" , Randy Dunlap , Rasmus Villemoes , Sakari Ailus , Sergey Senozhatsky , Steven Rostedt Subject: Re: [PATCH 1/2] software node: implement software_node_unregister() Message-ID: <20200525075937.GA5300@linux-b0ei> References: <20200524153041.2361-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200524153041.2361-1-gregkh@linuxfoundation.org> 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 Sun 2020-05-24 17:30:40, 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 I could confirm that this fixed lib/test_printf.c. The patch looks reasonable. Tested-by: Petr Mladek Best Regards, Petr