summaryrefslogtreecommitdiff
path: root/include/linux/node.h
diff options
context:
space:
mode:
authorSiddharth Vadapalli <s-vadapalli@ti.com>2022-07-08 10:23:12 +0530
committerVignesh Raghavendra <vigneshr@ti.com>2022-07-10 10:49:52 +0530
commit3e8e73d12e01358a487c7a866e12a30081ca341c (patch)
treeb61ee1fd2b8d1fe252ec7689ea69cb432554dc67 /include/linux/node.h
parentb56b1fd4a1c0e331114d15f7030bc8397a7e7b9b (diff)
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: 4c3e6208d031 ("net: ti: am65-cpsw-nuss: Add devlink support") Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Diffstat (limited to 'include/linux/node.h')
0 files changed, 0 insertions, 0 deletions