Hi Florian, > OK, so here is what is happening: macb_mii_init() calls macb_mii_probe() > and so by the time we call phy_connect_direct(), we have not called > register_netdevice() yet, netdev_register_kobject() has not been called > either, and so sysfs_create_link() fails.... I just found same thing. Yes, register_netdev() was not called at phy_connect_direct() time.
> Let me think about a way to solve that, even though I am leaning towards > ignoring the errors from sysfs_create_link() rather than fixing each and > every Ethernet driver to make it probe its MII bus *after* calling > register_netdevice().... Agree. > > > > What is driver you are testing? I can check the file. > > Drivers involved are the following: > > drivers/net/ethernet/broadcom/bcmsysport.c, > drivers/net/dsa/bcm_sf2.c > drivers/net/ethernet/broadcom/genet/ > drivers/net/phy/bcm7xxx.c Thanks for list of files. - Woojung