734-v6.8-net-phy-bcm54612e-add-suspend-resume.patch 1000 B

123456789101112131415161718192021222324252627
  1. From 380b50ae3a04222334a3779b3787eba844b1177f Mon Sep 17 00:00:00 2001
  2. From: Marco von Rosenberg <[email protected]>
  3. Date: Thu, 16 Nov 2023 20:32:31 +0100
  4. Subject: net: phy: broadcom: Wire suspend/resume for BCM54612E
  5. The BCM54612E ethernet PHY supports IDDQ-SR.
  6. Therefore wire-up the suspend and resume callbacks
  7. to point to bcm54xx_suspend() and bcm54xx_resume().
  8. Signed-off-by: Marco von Rosenberg <[email protected]>
  9. Acked-by: Florian Fainelli <[email protected]>
  10. Signed-off-by: David S. Miller <[email protected]>
  11. ---
  12. drivers/net/phy/broadcom.c | 2 ++
  13. 1 file changed, 2 insertions(+)
  14. --- a/drivers/net/phy/broadcom.c
  15. +++ b/drivers/net/phy/broadcom.c
  16. @@ -1001,6 +1001,8 @@ static struct phy_driver broadcom_driver
  17. .config_intr = bcm_phy_config_intr,
  18. .handle_interrupt = bcm_phy_handle_interrupt,
  19. .link_change_notify = bcm54xx_link_change_notify,
  20. + .suspend = bcm54xx_suspend,
  21. + .resume = bcm54xx_resume,
  22. }, {
  23. .phy_id = PHY_ID_BCM5421,
  24. .phy_id_mask = 0xfffffff0,