745-v5.16-02-net-phy-at803x-add-resume-suspend-function-to-qca83x.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From 15b9df4ece17d084f14eb0ca1cf05f2ad497e425 Mon Sep 17 00:00:00 2001
  2. From: Ansuel Smith <[email protected]>
  3. Date: Sun, 19 Sep 2021 18:28:16 +0200
  4. Subject: net: phy: at803x: add resume/suspend function to qca83xx phy
  5. Add resume/suspend function to qca83xx internal phy.
  6. We can't use the at803x generic function as the documentation lacks of
  7. any support for WoL regs.
  8. Signed-off-by: Ansuel Smith <[email protected]>
  9. Reviewed-by: Andrew Lunn <[email protected]>
  10. Signed-off-by: David S. Miller <[email protected]>
  11. ---
  12. drivers/net/phy/at803x.c | 6 ++++++
  13. 1 file changed, 6 insertions(+)
  14. --- a/drivers/net/phy/at803x.c
  15. +++ b/drivers/net/phy/at803x.c
  16. @@ -1411,6 +1411,8 @@ static struct phy_driver at803x_driver[]
  17. .get_sset_count = at803x_get_sset_count,
  18. .get_strings = at803x_get_strings,
  19. .get_stats = at803x_get_stats,
  20. + .suspend = genphy_suspend,
  21. + .resume = genphy_resume,
  22. }, {
  23. /* QCA8327-A from switch QCA8327-AL1A */
  24. .phy_id = QCA8327_A_PHY_ID,
  25. @@ -1424,6 +1426,8 @@ static struct phy_driver at803x_driver[]
  26. .get_sset_count = at803x_get_sset_count,
  27. .get_strings = at803x_get_strings,
  28. .get_stats = at803x_get_stats,
  29. + .suspend = genphy_suspend,
  30. + .resume = genphy_resume,
  31. }, {
  32. /* QCA8327-B from switch QCA8327-BL1A */
  33. .phy_id = QCA8327_B_PHY_ID,
  34. @@ -1437,6 +1441,8 @@ static struct phy_driver at803x_driver[]
  35. .get_sset_count = at803x_get_sset_count,
  36. .get_strings = at803x_get_strings,
  37. .get_stats = at803x_get_stats,
  38. + .suspend = genphy_suspend,
  39. + .resume = genphy_resume,
  40. }, };
  41. module_phy_driver(at803x_driver);