0027-01-net-phy-intel-xway-add-VR9-version-number.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. From 5b73d9955fb4b0e3c37f8f6c71910293246c89dc Mon Sep 17 00:00:00 2001
  2. From: Mathias Kresin <[email protected]>
  3. Date: Thu, 22 Mar 2018 23:31:38 +0100
  4. Subject: [PATCH 1/2] net: phy: intel-xway: add VR9 version number
  5. The VR9 phy ids are matching only for the SoC version 1.2. Rename the
  6. macros and change the names to take this into account.
  7. Signed-off-by: Mathias Kresin <[email protected]>
  8. Signed-off-by: David S. Miller <[email protected]>
  9. ---
  10. drivers/net/phy/intel-xway.c | 16 ++++++++--------
  11. 1 file changed, 8 insertions(+), 8 deletions(-)
  12. --- a/drivers/net/phy/intel-xway.c
  13. +++ b/drivers/net/phy/intel-xway.c
  14. @@ -149,8 +149,8 @@
  15. #define PHY_ID_PHY22F_1_4 0xD565A410
  16. #define PHY_ID_PHY11G_1_5 0xD565A401
  17. #define PHY_ID_PHY22F_1_5 0xD565A411
  18. -#define PHY_ID_PHY11G_VR9 0xD565A409
  19. -#define PHY_ID_PHY22F_VR9 0xD565A419
  20. +#define PHY_ID_PHY11G_VR9_1_2 0xD565A409
  21. +#define PHY_ID_PHY22F_VR9_1_2 0xD565A419
  22. #if IS_ENABLED(CONFIG_OF_MDIO)
  23. static int vr9_gphy_of_reg_init(struct phy_device *phydev)
  24. @@ -366,9 +366,9 @@ static struct phy_driver xway_gphy[] = {
  25. .suspend = genphy_suspend,
  26. .resume = genphy_resume,
  27. }, {
  28. - .phy_id = PHY_ID_PHY11G_VR9,
  29. + .phy_id = PHY_ID_PHY11G_VR9_1_2,
  30. .phy_id_mask = 0xffffffff,
  31. - .name = "Intel XWAY PHY11G (xRX integrated)",
  32. + .name = "Intel XWAY PHY11G (xRX v1.2 integrated)",
  33. .features = PHY_GBIT_FEATURES,
  34. .flags = PHY_HAS_INTERRUPT,
  35. .config_init = xway_gphy_config_init,
  36. @@ -380,9 +380,9 @@ static struct phy_driver xway_gphy[] = {
  37. .suspend = genphy_suspend,
  38. .resume = genphy_resume,
  39. }, {
  40. - .phy_id = PHY_ID_PHY22F_VR9,
  41. + .phy_id = PHY_ID_PHY22F_VR9_1_2,
  42. .phy_id_mask = 0xffffffff,
  43. - .name = "Intel XWAY PHY22F (xRX integrated)",
  44. + .name = "Intel XWAY PHY22F (xRX v1.2 integrated)",
  45. .features = PHY_BASIC_FEATURES,
  46. .flags = PHY_HAS_INTERRUPT,
  47. .config_init = xway_gphy_config_init,
  48. @@ -404,8 +404,8 @@ static struct mdio_device_id __maybe_unu
  49. { PHY_ID_PHY22F_1_4, 0xffffffff },
  50. { PHY_ID_PHY11G_1_5, 0xffffffff },
  51. { PHY_ID_PHY22F_1_5, 0xffffffff },
  52. - { PHY_ID_PHY11G_VR9, 0xffffffff },
  53. - { PHY_ID_PHY22F_VR9, 0xffffffff },
  54. + { PHY_ID_PHY11G_VR9_1_2, 0xffffffff },
  55. + { PHY_ID_PHY22F_VR9_1_2, 0xffffffff },
  56. { }
  57. };
  58. MODULE_DEVICE_TABLE(mdio, xway_gphy_tbl);