761-v6.9-net-phy-aquantia-add-AQR113-PHY-ID.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. From 71b605d32017e5b8d257db7344bc2f8e8fcc973e Mon Sep 17 00:00:00 2001
  2. From: Christian Marangi <[email protected]>
  3. Date: Thu, 15 Feb 2024 16:30:05 +0100
  4. Subject: [PATCH] net: phy: aquantia: add AQR113 PHY ID
  5. Add Aquantia AQR113 PHY ID. Aquantia AQR113 is just a chip size variant of
  6. the already supported AQR133C where the only difference is the PHY ID
  7. and the hw chip size.
  8. Signed-off-by: Christian Marangi <[email protected]>
  9. Reviewed-by: Andrew Lunn <[email protected]>
  10. Signed-off-by: David S. Miller <[email protected]>
  11. ---
  12. drivers/net/phy/aquantia/aquantia_main.c | 21 +++++++++++++++++++++
  13. 1 file changed, 21 insertions(+)
  14. --- a/drivers/net/phy/aquantia/aquantia_main.c
  15. +++ b/drivers/net/phy/aquantia/aquantia_main.c
  16. @@ -26,6 +26,7 @@
  17. #define PHY_ID_AQR111B0 0x03a1b612
  18. #define PHY_ID_AQR112 0x03a1b662
  19. #define PHY_ID_AQR412 0x03a1b712
  20. +#define PHY_ID_AQR113 0x31c31c40
  21. #define PHY_ID_AQR113C 0x31c31c12
  22. #define MDIO_PHYXS_VEND_IF_STATUS 0xe812
  23. @@ -840,6 +841,25 @@ static struct phy_driver aqr_driver[] =
  24. .link_change_notify = aqr107_link_change_notify,
  25. },
  26. {
  27. + PHY_ID_MATCH_MODEL(PHY_ID_AQR113),
  28. + .name = "Aquantia AQR113",
  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. PHY_ID_MATCH_MODEL(PHY_ID_AQR113C),
  47. .name = "Aquantia AQR113C",
  48. .probe = aqr107_probe,
  49. @@ -874,6 +894,7 @@ static struct mdio_device_id __maybe_unu
  50. { PHY_ID_MATCH_MODEL(PHY_ID_AQR111B0) },
  51. { PHY_ID_MATCH_MODEL(PHY_ID_AQR112) },
  52. { PHY_ID_MATCH_MODEL(PHY_ID_AQR412) },
  53. + { PHY_ID_MATCH_MODEL(PHY_ID_AQR113) },
  54. { PHY_ID_MATCH_MODEL(PHY_ID_AQR113C) },
  55. { }
  56. };