sfc: Move PHY software state initialisation from init() into probe()
This prevents efx->link_advertising from being blatted during a reset. The phy_short_reach sysfs node is now destroyed later in the port shutdown process, so check for STATE_RUNNING after acquiring the rtnl_lock (just like in set_phy_flash_cfg). Signed-off-by:Ben Hutchings <bhutchings@solarflare.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/sfc/efx.c 3 additions, 3 deletionsdrivers/net/sfc/efx.c
- drivers/net/sfc/falcon.c 1 addition, 0 deletionsdrivers/net/sfc/falcon.c
- drivers/net/sfc/mcdi_phy.c 35 additions, 58 deletionsdrivers/net/sfc/mcdi_phy.c
- drivers/net/sfc/net_driver.h 1 addition, 0 deletionsdrivers/net/sfc/net_driver.h
- drivers/net/sfc/qt202x_phy.c 11 additions, 9 deletionsdrivers/net/sfc/qt202x_phy.c
- drivers/net/sfc/siena.c 1 addition, 0 deletionsdrivers/net/sfc/siena.c
- drivers/net/sfc/tenxpress.c 77 additions, 61 deletionsdrivers/net/sfc/tenxpress.c
Loading
Please register or sign in to comment