[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6d09e337-8bca-4ef7-bbfc-d824829ad211@cogentembedded.com>
Date: Wed, 5 Feb 2025 17:15:05 +0100
From: Nikita Yushchenko <nikita.yoush@...entembedded.com>
To: Geert Uytterhoeven <geert+renesas@...der.be>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>,
Andrew Lunn <andrew+netdev@...n.ch>, "David S . Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Niklas Söderlund <niklas.soderlund+renesas@...natech.se>
Cc: netdev@...r.kernel.org, linux-renesas-soc@...r.kernel.org
Subject: Re: [PATCH net-next] net: renesas: rswitch: Convert to
for_each_available_child_of_node()
Hello Geert.
> Simplify rswitch_get_port_node() by using the
> for_each_available_child_of_node() helper instead of manually ignoring
> unavailable child nodes, and leaking a reference.
FYI, I have a patch in my queue that replaces this code with traversing child nodes (via
for_each_available_child_of_node()) and only creating devices for ports actually defined in the device tree.
Nikita
Powered by blists - more mailing lists