762-v6.9-net-phy-aquantia-add-AQR813-PHY-ID.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. From 6d47302a3f0ba31445478d518d98bd55918bc8ab Mon Sep 17 00:00:00 2001
  2. From: Christian Marangi <[email protected]>
  3. Date: Thu, 15 Feb 2024 22:43:30 +0100
  4. Subject: [PATCH] net: phy: aquantia: add AQR813 PHY ID
  5. Aquantia AQR813 is the Octal Port variant of the AQR113. Add PHY ID for
  6. it to provide support for it.
  7. Signed-off-by: Christian Marangi <[email protected]>
  8. Reviewed-by: Andrew Lunn <[email protected]>
  9. Signed-off-by: David S. Miller <[email protected]>
  10. ---
  11. drivers/net/phy/aquantia/aquantia_main.c | 21 +++++++++++++++++++++
  12. 1 file changed, 21 insertions(+)
  13. --- a/drivers/net/phy/aquantia/aquantia_main.c
  14. +++ b/drivers/net/phy/aquantia/aquantia_main.c
  15. @@ -28,6 +28,7 @@
  16. #define PHY_ID_AQR412 0x03a1b712
  17. #define PHY_ID_AQR113 0x31c31c40
  18. #define PHY_ID_AQR113C 0x31c31c12
  19. +#define PHY_ID_AQR813 0x31c31cb2
  20. #define MDIO_PHYXS_VEND_IF_STATUS 0xe812
  21. #define MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK GENMASK(7, 3)
  22. @@ -878,6 +879,25 @@ static struct phy_driver aqr_driver[] =
  23. .get_stats = aqr107_get_stats,
  24. .link_change_notify = aqr107_link_change_notify,
  25. },
  26. +{
  27. + PHY_ID_MATCH_MODEL(PHY_ID_AQR813),
  28. + .name = "Aquantia AQR813",
  29. + .probe = aqr107_probe,
  30. + .get_rate_matching = aqr107_get_rate_matching,
  31. + .config_init = aqr107_config_init,
  32. + .config_aneg = aqr_config_aneg,
  33. + .config_intr = aqr_config_intr,
  34. + .handle_interrupt = aqr_handle_interrupt,
  35. + .read_status = aqr107_read_status,
  36. + .get_tunable = aqr107_get_tunable,
  37. + .set_tunable = aqr107_set_tunable,
  38. + .suspend = aqr107_suspend,
  39. + .resume = aqr107_resume,
  40. + .get_sset_count = aqr107_get_sset_count,
  41. + .get_strings = aqr107_get_strings,
  42. + .get_stats = aqr107_get_stats,
  43. + .link_change_notify = aqr107_link_change_notify,
  44. +},
  45. };
  46. module_phy_driver(aqr_driver);
  47. @@ -896,6 +916,7 @@ static struct mdio_device_id __maybe_unu
  48. { PHY_ID_MATCH_MODEL(PHY_ID_AQR412) },
  49. { PHY_ID_MATCH_MODEL(PHY_ID_AQR113) },
  50. { PHY_ID_MATCH_MODEL(PHY_ID_AQR113C) },
  51. + { PHY_ID_MATCH_MODEL(PHY_ID_AQR813) },
  52. { }
  53. };