linux/drivers/net/ethernet/ti
Siddharth Vadapalli 0680e20af5 net: ethernet: ti: am65-cpsw: Fix devlink port register sequence
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: 58356eb31d ("net: ti: am65-cpsw-nuss: Add devlink support")
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Link: https://lore.kernel.org/r/20220706070208.12207-1-s-vadapalli@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-07-07 17:21:44 -07:00
..
am65-cpsw-ethtool.c net: ethernet: ti: am65-cpsw-ethtool: use pm_runtime_resume_and_get 2022-04-22 10:53:17 +01:00
am65-cpsw-nuss.c net: ethernet: ti: am65-cpsw: Fix devlink port register sequence 2022-07-07 17:21:44 -07:00
am65-cpsw-nuss.h net: ethernet: ti: am65-cpsw: Convert to PHYLINK 2022-03-11 11:00:03 +00:00
am65-cpsw-qos.c ethernet/ti: delete if NULL check befort devm_kfree 2022-05-17 11:19:15 +02:00
am65-cpsw-qos.h net: ethernet: ti: am65-cpsw: enable bc/mc storm prevention support 2022-04-13 12:42:39 +01:00
am65-cpsw-switchdev.c net: ti: am65-cpsw-nuss: remove guards against !BRIDGE_VLAN_INFO_BRENTRY 2022-02-17 14:17:10 +00:00
am65-cpsw-switchdev.h
am65-cpts.c
am65-cpts.h
cpmac.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
cpsw_ale.c drivers: net: cpsw: ale: add broadcast/multicast rate limit support 2022-04-13 12:42:39 +01:00
cpsw_ale.h drivers: net: cpsw: ale: add broadcast/multicast rate limit support 2022-04-13 12:42:39 +01:00
cpsw_ethtool.c drivers: ethernet: cpsw: fix panic when interrupt coaleceing is set via ethtool 2022-03-23 10:46:42 -07:00
cpsw_new.c net: switch to netif_napi_add_tx() 2022-05-05 15:54:12 -07:00
cpsw_priv.c eth: cpsw: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
cpsw_priv.h eth: cpsw: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
cpsw_sl.c
cpsw_sl.h
cpsw_switchdev.c net: ti: cpsw: remove guards against !BRIDGE_VLAN_INFO_BRENTRY 2022-02-17 14:17:10 +00:00
cpsw_switchdev.h
cpsw-common.c
cpsw-phy-sel.c
cpsw.c net: switch to netif_napi_add_tx() 2022-05-05 15:54:12 -07:00
cpsw.h
cpts.c net: ethernet: ti: cpts: Handle error for clk_enable 2022-03-09 12:12:46 +00:00
cpts.h
davinci_cpdma.c
davinci_cpdma.h
davinci_emac.c eth: remove copies of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
davinci_mdio.c drivers: net: davinci_mdio: using pm_runtime_resume_and_get instead of pm_runtime_get_sync 2022-04-21 14:28:38 +02:00
k3-cppi-desc-pool.c
k3-cppi-desc-pool.h
Kconfig net: ethernet: ti: am65-cpsw: Fix build error without PHYLINK 2022-04-11 20:49:10 -07:00
Makefile
netcp_core.c net: switch to netif_napi_add_tx() 2022-05-05 15:54:12 -07:00
netcp_ethss.c net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX 2021-12-14 12:28:24 +00:00
netcp_sgmii.c
netcp_xgbepcsr.c
netcp.h
tlan.c
tlan.h