Re: [PATCH net-next] net: ethernet: ti: cpsw_new: populate netdev of_node

From: Andrew Lunn
Date: Thu Feb 27 2025 - 08:29:02 EST


On Thu, Feb 27, 2025 at 08:46:46AM +0100, A. Sverdlin wrote:
> From: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxxxx>
>
> So that of_find_net_device_by_node() can find cpsw-nuss ports and other DSA
> switches can be stacked downstream. Tested in conjunction with KSZ8873.
>
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxxxx>

Consistent with other TI drivers. But it looks like only TI drivers
need this, which suggests they are all doing something wrong, maybe
for legacy reasons.

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew