[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230611085826.647536-1-zhaojh329@gmail.com>
Date: Sun, 11 Jun 2023 16:58:26 +0800
From: Jianhui Zhao <zhaojh329@...il.com>
To: zhaojh329@...il.com
Cc: andrew@...n.ch, davem@...emloft.net, edumazet@...gle.com,
hkallweit1@...il.com, kuba@...nel.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
pabeni@...hat.com
Subject: [PATCH] net: mdio: fix duplicate registrations for phy with c45 in __of_mdiobus_register()
__of_mdiobus_register
__mdiobus_register
mdiobus_scan_bus_c45
of_mdiobus_child_is_phy
of_mdiobus_register_phy
fwnode_mdiobus_register_phy
is_c45 = fwnode_device_is_compatible(child, "ethernet-phy-ieee802.3-c45");
get_phy_device
phy_device_create
This is the function call chain. If a phy is already registered in
mdiobus_scan_bus_c45(), and it's compatible "ethernet-phy-ieee802.3-c45",
thus it will duplicated call get_phy_device later.
Powered by blists - more mailing lists