[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c3a018e5-01f9-4150-817d-ac37ed09a06f@lunn.ch>
Date: Fri, 29 Nov 2024 15:54:33 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Jesse Van Gavere <jesseevg@...il.com>
Cc: netdev@...r.kernel.org, woojung.huh@...rochip.com,
UNGLinuxDriver@...rochip.com, olteanv@...il.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, Jesse Van Gavere <jesse.vangavere@...oteq.com>
Subject: Re: [PATCH net-next v2] net: dsa: microchip: Make MDIO bus name
unique
On Thu, Nov 28, 2024 at 10:25:09PM +0100, Jesse Van Gavere wrote:
> In configurations with 2 or more DSA clusters it will fail to allocate
> unique MDIO bus names as only the switch ID is used, fix this by using
> a combination of the tree ID and switch ID
>
> Signed-off-by: Jesse Van Gavere <jesse.vangavere@...oteq.com>
> ---
> Changes v2: target net-next, probably an improvement rather than a true bug
net-next is closed at the moment due to the merge window. Please
repost once it opens.
This change is probably O.K, but we have to be a little bit careful
with the ABI. This name is visible in /sys/bus and udev events. In
theory somebody could have scripts which depend on this name. I doubt
such scripts actually exist, and if somebody reports a regression we
will need to revert this change, and do something different. You could
for example look at dst->index and use the two part name when it is
not zero, one part name when it is zero.
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Andrew
Powered by blists - more mailing lists