]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: dsa: microchip: Make MDIO bus name unique
authorJesse Van Gavere <jesseevg@gmail.com>
Fri, 6 Dec 2024 20:42:02 +0000 (21:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 Dec 2024 22:32:00 +0000 (14:32 -0800)
commitca7858880590d4f1dfe73b2cbf372b8ed80a6d81
treeda14cde685dade669ae41aef1bb86380d234d8e8
parent2d20773aec14996b6cc4db92d885028319be683d
net: dsa: microchip: Make MDIO bus name unique

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 when needed

Signed-off-by: Jesse Van Gavere <jesse.vangavere@scioteq.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241206204202.649912-1-jesse.vangavere@scioteq.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz_common.c