0011-05-nss_dp_main-use-phy_detach-instead-of-disconnect-in-.patch 826 B

1234567891011121314151617181920212223242526
  1. From 655b07b701271bc00952fe64aeb14f993a48a50e Mon Sep 17 00:00:00 2001
  2. From: Christian Marangi <[email protected]>
  3. Date: Tue, 16 Apr 2024 16:17:36 +0200
  4. Subject: [PATCH 5/6] nss_dp_main: use phy_detach instead of disconnect in
  5. dp_remove
  6. Use phy_detach instead of disconnect in dp_remove. On Module remove, phy
  7. are already disconnected but they need to be detached to be correctly
  8. reattached later with an insmod.
  9. Signed-off-by: Christian Marangi <[email protected]>
  10. ---
  11. nss_dp_main.c | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. --- a/nss_dp_main.c
  14. +++ b/nss_dp_main.c
  15. @@ -981,7 +981,7 @@ static int nss_dp_remove(struct platform
  16. unregister_netdev(dp_priv->netdev);
  17. if (dp_priv->phydev)
  18. - phy_disconnect(dp_priv->phydev);
  19. + phy_detach(dp_priv->phydev);
  20. #if defined(NSS_DP_PPE_SUPPORT)
  21. /*