mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 23:51:46 +00:00
0680e20af5
Renaming interfaces using udevd depends on the interface being registered
before its netdev is registered. Otherwise, udevd reads an empty
phys_port_name value, resulting in the interface not being renamed.
Fix this by registering the interface before registering its netdev
by invoking am65_cpsw_nuss_register_devlink() before invoking
register_netdev() for the interface.
Move the function call to devlink_port_type_eth_set(), invoking it after
register_netdev() is invoked, to ensure that netlink notification for the
port state change is generated after the netdev is completely initialized.
Fixes:
|
||
---|---|---|
.. | ||
am65-cpsw-ethtool.c | ||
am65-cpsw-nuss.c | ||
am65-cpsw-nuss.h | ||
am65-cpsw-qos.c | ||
am65-cpsw-qos.h | ||
am65-cpsw-switchdev.c | ||
am65-cpsw-switchdev.h | ||
am65-cpts.c | ||
am65-cpts.h | ||
cpmac.c | ||
cpsw_ale.c | ||
cpsw_ale.h | ||
cpsw_ethtool.c | ||
cpsw_new.c | ||
cpsw_priv.c | ||
cpsw_priv.h | ||
cpsw_sl.c | ||
cpsw_sl.h | ||
cpsw_switchdev.c | ||
cpsw_switchdev.h | ||
cpsw-common.c | ||
cpsw-phy-sel.c | ||
cpsw.c | ||
cpsw.h | ||
cpts.c | ||
cpts.h | ||
davinci_cpdma.c | ||
davinci_cpdma.h | ||
davinci_emac.c | ||
davinci_mdio.c | ||
k3-cppi-desc-pool.c | ||
k3-cppi-desc-pool.h | ||
Kconfig | ||
Makefile | ||
netcp_core.c | ||
netcp_ethss.c | ||
netcp_sgmii.c | ||
netcp_xgbepcsr.c | ||
netcp.h | ||
tlan.c | ||
tlan.h |