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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 939A5C433EF for ; Fri, 15 Jul 2022 08:42:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbiGOImw (ORCPT ); Fri, 15 Jul 2022 04:42:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiGOImv (ORCPT ); Fri, 15 Jul 2022 04:42:51 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE058814A2; Fri, 15 Jul 2022 01:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/PMhtnjGHpxVks/D0IckRnUPFsjzXDkP0oWJ4YCBhjU=; b=u0DEprWn4REKDNOgrrfUHbBAlT QbKMmsx1lYnPU/7uko/8HJ+NtIpxVSjLg8fMnk0Jy6V8EdA4krtmECqOSUEBSWfycxi1MDyLt6Kc/ WwWwvA9Zy2kksqx1xidrEyHtEFElEfyhGbZBQyieONclVL2eFK0LpY7O5ehaT87Jd+31P8evOFQXS oo3dk0CLCO+yVcnTl5vmH0IC3KCALkRapK71u8I/BzACTHOwng6yD/mSeabP6seMDohCwg8L4JHpK IhPixAYh945XOwXWaqoBa7QW1W+qykNAf9zNtYil8ryRbMRpZ8n77aO80GsFN4gohy1jqcb1mt8g+ dhptguRg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33352) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oCGu3-0006nZ-CC; Fri, 15 Jul 2022 09:42:27 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oCGtw-0007QG-6S; Fri, 15 Jul 2022 09:42:20 +0100 Date: Fri, 15 Jul 2022 09:42:20 +0100 From: "Russell King (Oracle)" To: Andy Shevchenko Cc: Andrew Lunn , Heiner Kallweit , Alexandre Belloni , Alvin __ipraga , Andy Shevchenko , Claudiu Manoil , Daniel Scally , "David S. Miller" , DENG Qingfang , Eric Dumazet , Florian Fainelli , George McCollister , Greg Kroah-Hartman , Hauke Mehrtens , Heikki Krogerus , Jakub Kicinski , Kurt Kanzenbach , Landen Chao , Linus Walleij , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger , netdev@vger.kernel.org, Paolo Abeni , "Rafael J. Wysocki" , Sakari Ailus , Sean Wang , UNGLinuxDriver@microchip.com, Vivien Didelot , Vladimir Oltean , Woojung Huh , Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH RFC net-next v2 2/6] software node: allow named software node to be created Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi Andy, Please can you let me know whether you happy with this patch? I would like to send this series to net-next today. Thanks. On Wed, Jul 13, 2022 at 03:07:47PM +0100, Russell King wrote: > From: Vladimir Oltean > > Allow a named software node to be created, which is needed for software > nodes for a fixed-link specification for DSA. > > Signed-off-by: Vladimir Oltean > Signed-off-by: Russell King (Oracle) > --- > drivers/base/swnode.c | 14 ++++++++++++-- > include/linux/property.h | 4 ++++ > 2 files changed, 16 insertions(+), 2 deletions(-) > > diff --git a/drivers/base/swnode.c b/drivers/base/swnode.c > index 0a482212c7e8..b2ea08f0e898 100644 > --- a/drivers/base/swnode.c > +++ b/drivers/base/swnode.c > @@ -972,8 +972,9 @@ void software_node_unregister(const struct software_node *node) > EXPORT_SYMBOL_GPL(software_node_unregister); > > struct fwnode_handle * > -fwnode_create_software_node(const struct property_entry *properties, > - const struct fwnode_handle *parent) > +fwnode_create_named_software_node(const struct property_entry *properties, > + const struct fwnode_handle *parent, > + const char *name) > { > struct fwnode_handle *fwnode; > struct software_node *node; > @@ -991,6 +992,7 @@ fwnode_create_software_node(const struct property_entry *properties, > return ERR_CAST(node); > > node->parent = p ? p->node : NULL; > + node->name = name; > > fwnode = swnode_register(node, p, 1); > if (IS_ERR(fwnode)) > @@ -998,6 +1000,14 @@ fwnode_create_software_node(const struct property_entry *properties, > > return fwnode; > } > +EXPORT_SYMBOL_GPL(fwnode_create_named_software_node); > + > +struct fwnode_handle * > +fwnode_create_software_node(const struct property_entry *properties, > + const struct fwnode_handle *parent) > +{ > + return fwnode_create_named_software_node(properties, parent, NULL); > +} > EXPORT_SYMBOL_GPL(fwnode_create_software_node); > > void fwnode_remove_software_node(struct fwnode_handle *fwnode) > diff --git a/include/linux/property.h b/include/linux/property.h > index a5b429d623f6..23330ae2b1fa 100644 > --- a/include/linux/property.h > +++ b/include/linux/property.h > @@ -492,6 +492,10 @@ void software_node_unregister(const struct software_node *node); > struct fwnode_handle * > fwnode_create_software_node(const struct property_entry *properties, > const struct fwnode_handle *parent); > +struct fwnode_handle * > +fwnode_create_named_software_node(const struct property_entry *properties, > + const struct fwnode_handle *parent, > + const char *name); > void fwnode_remove_software_node(struct fwnode_handle *fwnode); > > int device_add_software_node(struct device *dev, const struct software_node *node); > -- > 2.30.2 > > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!