704-phy-no-genphy-soft-reset.patch 973 B

1234567891011121314151617181920212223242526272829
  1. --- a/drivers/net/phy/phy_device.c
  2. +++ b/drivers/net/phy/phy_device.c
  3. @@ -1147,7 +1147,7 @@ int genphy_config_init(struct phy_device
  4. return 0;
  5. }
  6. -static int gen10g_soft_reset(struct phy_device *phydev)
  7. +static int no_soft_reset(struct phy_device *phydev)
  8. {
  9. /* Do nothing for now */
  10. return 0;
  11. @@ -1361,7 +1361,7 @@ static struct phy_driver genphy_driver[]
  12. .phy_id = 0xffffffff,
  13. .phy_id_mask = 0xffffffff,
  14. .name = "Generic PHY",
  15. - .soft_reset = genphy_soft_reset,
  16. + .soft_reset = no_soft_reset,
  17. .config_init = genphy_config_init,
  18. .features = PHY_GBIT_FEATURES | SUPPORTED_MII |
  19. SUPPORTED_AUI | SUPPORTED_FIBRE |
  20. @@ -1376,7 +1376,7 @@ static struct phy_driver genphy_driver[]
  21. .phy_id = 0xffffffff,
  22. .phy_id_mask = 0xffffffff,
  23. .name = "Generic 10G PHY",
  24. - .soft_reset = gen10g_soft_reset,
  25. + .soft_reset = no_soft_reset,
  26. .config_init = gen10g_config_init,
  27. .features = 0,
  28. .config_aneg = gen10g_config_aneg,