]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: fec_mxc: add unique bus and device names for DM_MDIO
authorMarkus Niebel <Markus.Niebel@ew.tq-group.com>
Fri, 21 Nov 2025 17:34:47 +0000 (18:34 +0100)
committerFabio Estevam <festevam@nabladev.com>
Sat, 29 Nov 2025 20:06:34 +0000 (17:06 -0300)
commitc5d3f7ac8e78d199cd961bee2c3f63726a1c4c69
tree1396b7305c21ec781e3c9682e7c23bcc99858473
parentf4434ae02d5f96016cdad5e69862bf5139745e30
net: fec_mxc: add unique bus and device names for DM_MDIO

When using DM_MDIO on SOC with more than one FEC and not sharing the MDIO
bus the name of the driver and the bus needs to be unique. Since name
used in device_bind_driver_to_node needs to be a static string, add the
string to the fec_priv struct and reuse fec_set_dev_name to generate the
name with the device sequence number.

Fixes: 3b8f99a3e762 ("net: fec: add support for DM_MDIO")
Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Alexander Feilke <alexander.feilke@ew.tq-group.com>
drivers/net/fec_mxc.c
drivers/net/fec_mxc.h