aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-03-22 18:31:38 -0400
committerDavid S. Miller <davem@davemloft.net>2018-03-23 13:19:49 -0400
commit5b73d9955fb4b0e3c37f8f6c71910293246c89dc (patch)
treef678608cd1726df94921955da738f2498580f7d1
parentd5eabf0c8faf8ce8f8c5cfcba67c40592cbb498d (diff)
net: phy: intel-xway: add VR9 version number
The VR9 phy ids are matching only for the SoC version 1.2. Rename the macros and change the names to take this into account. Signed-off-by: Mathias Kresin <dev@kresin.me> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/phy/intel-xway.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/phy/intel-xway.c b/drivers/net/phy/intel-xway.c
index a11f80cb5388..c7eff6774bb1 100644
--- a/drivers/net/phy/intel-xway.c
+++ b/drivers/net/phy/intel-xway.c
@@ -149,8 +149,8 @@
149#define PHY_ID_PHY22F_1_4 0xD565A410 149#define PHY_ID_PHY22F_1_4 0xD565A410
150#define PHY_ID_PHY11G_1_5 0xD565A401 150#define PHY_ID_PHY11G_1_5 0xD565A401
151#define PHY_ID_PHY22F_1_5 0xD565A411 151#define PHY_ID_PHY22F_1_5 0xD565A411
152#define PHY_ID_PHY11G_VR9 0xD565A409 152#define PHY_ID_PHY11G_VR9_1_2 0xD565A409
153#define PHY_ID_PHY22F_VR9 0xD565A419 153#define PHY_ID_PHY22F_VR9_1_2 0xD565A419
154 154
155static int xway_gphy_config_init(struct phy_device *phydev) 155static int xway_gphy_config_init(struct phy_device *phydev)
156{ 156{
@@ -312,9 +312,9 @@ static struct phy_driver xway_gphy[] = {
312 .suspend = genphy_suspend, 312 .suspend = genphy_suspend,
313 .resume = genphy_resume, 313 .resume = genphy_resume,
314 }, { 314 }, {
315 .phy_id = PHY_ID_PHY11G_VR9, 315 .phy_id = PHY_ID_PHY11G_VR9_1_2,
316 .phy_id_mask = 0xffffffff, 316 .phy_id_mask = 0xffffffff,
317 .name = "Intel XWAY PHY11G (xRX integrated)", 317 .name = "Intel XWAY PHY11G (xRX v1.2 integrated)",
318 .features = PHY_GBIT_FEATURES, 318 .features = PHY_GBIT_FEATURES,
319 .flags = PHY_HAS_INTERRUPT, 319 .flags = PHY_HAS_INTERRUPT,
320 .config_init = xway_gphy_config_init, 320 .config_init = xway_gphy_config_init,
@@ -324,9 +324,9 @@ static struct phy_driver xway_gphy[] = {
324 .suspend = genphy_suspend, 324 .suspend = genphy_suspend,
325 .resume = genphy_resume, 325 .resume = genphy_resume,
326 }, { 326 }, {
327 .phy_id = PHY_ID_PHY22F_VR9, 327 .phy_id = PHY_ID_PHY22F_VR9_1_2,
328 .phy_id_mask = 0xffffffff, 328 .phy_id_mask = 0xffffffff,
329 .name = "Intel XWAY PHY22F (xRX integrated)", 329 .name = "Intel XWAY PHY22F (xRX v1.2 integrated)",
330 .features = PHY_BASIC_FEATURES, 330 .features = PHY_BASIC_FEATURES,
331 .flags = PHY_HAS_INTERRUPT, 331 .flags = PHY_HAS_INTERRUPT,
332 .config_init = xway_gphy_config_init, 332 .config_init = xway_gphy_config_init,
@@ -346,8 +346,8 @@ static struct mdio_device_id __maybe_unused xway_gphy_tbl[] = {
346 { PHY_ID_PHY22F_1_4, 0xffffffff }, 346 { PHY_ID_PHY22F_1_4, 0xffffffff },
347 { PHY_ID_PHY11G_1_5, 0xffffffff }, 347 { PHY_ID_PHY11G_1_5, 0xffffffff },
348 { PHY_ID_PHY22F_1_5, 0xffffffff }, 348 { PHY_ID_PHY22F_1_5, 0xffffffff },
349 { PHY_ID_PHY11G_VR9, 0xffffffff }, 349 { PHY_ID_PHY11G_VR9_1_2, 0xffffffff },
350 { PHY_ID_PHY22F_VR9, 0xffffffff }, 350 { PHY_ID_PHY22F_VR9_1_2, 0xffffffff },
351 { } 351 { }
352}; 352};
353MODULE_DEVICE_TABLE(mdio, xway_gphy_tbl); 353MODULE_DEVICE_TABLE(mdio, xway_gphy_tbl);