OpenWrt – Blame information for rev 4

Subversion Repositories:
Rev:
Rev Author Line No. Line
4 office 1 From f452518c982e57538e6d49da0a2c80eef22087ab Mon Sep 17 00:00:00 2001
2 From: Mathias Kresin <dev@kresin.me>
3 Date: Thu, 22 Mar 2018 23:31:39 +0100
4 Subject: [PATCH 2/2] net: phy: intel-xway: add VR9 v1.1 phy ids
5  
6 The phys embedded into the v1.1 of the VR9 SoC are using different phy
7 ids. Add the phy ids to use the driver for this VR9 version as well.
8  
9 Signed-off-by: Mathias Kresin <dev@kresin.me>
10 Signed-off-by: David S. Miller <davem@davemloft.net>
11 ---
12 drivers/net/phy/intel-xway.c | 28 ++++++++++++++++++++++++++++
13 1 file changed, 28 insertions(+)
14  
15 --- a/drivers/net/phy/intel-xway.c
16 +++ b/drivers/net/phy/intel-xway.c
17 @@ -149,6 +149,8 @@
18 #define PHY_ID_PHY22F_1_4 0xD565A410
19 #define PHY_ID_PHY11G_1_5 0xD565A401
20 #define PHY_ID_PHY22F_1_5 0xD565A411
21 +#define PHY_ID_PHY11G_VR9_1_1 0xD565A408
22 +#define PHY_ID_PHY22F_VR9_1_1 0xD565A418
23 #define PHY_ID_PHY11G_VR9_1_2 0xD565A409
24 #define PHY_ID_PHY22F_VR9_1_2 0xD565A419
25  
26 @@ -372,6 +374,36 @@ static struct phy_driver xway_gphy[] = {
27 .suspend = genphy_suspend,
28 .resume = genphy_resume,
29 }, {
30 + .phy_id = PHY_ID_PHY11G_VR9_1_1,
31 + .phy_id_mask = 0xffffffff,
32 + .name = "Intel XWAY PHY11G (xRX v1.1 integrated)",
33 + .features = (PHY_GBIT_FEATURES | SUPPORTED_Pause |
34 + SUPPORTED_Asym_Pause),
35 + .flags = PHY_HAS_INTERRUPT,
36 + .config_init = xway_gphy_config_init,
37 + .config_aneg = genphy_config_aneg,
38 + .read_status = genphy_read_status,
39 + .ack_interrupt = xway_gphy_ack_interrupt,
40 + .did_interrupt = xway_gphy_did_interrupt,
41 + .config_intr = xway_gphy_config_intr,
42 + .suspend = genphy_suspend,
43 + .resume = genphy_resume,
44 + }, {
45 + .phy_id = PHY_ID_PHY22F_VR9_1_1,
46 + .phy_id_mask = 0xffffffff,
47 + .name = "Intel XWAY PHY22F (xRX v1.1 integrated)",
48 + .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause |
49 + SUPPORTED_Asym_Pause),
50 + .flags = PHY_HAS_INTERRUPT,
51 + .config_init = xway_gphy_config_init,
52 + .config_aneg = genphy_config_aneg,
53 + .read_status = genphy_read_status,
54 + .ack_interrupt = xway_gphy_ack_interrupt,
55 + .did_interrupt = xway_gphy_did_interrupt,
56 + .config_intr = xway_gphy_config_intr,
57 + .suspend = genphy_suspend,
58 + .resume = genphy_resume,
59 + }, {
60 .phy_id = PHY_ID_PHY11G_VR9_1_2,
61 .phy_id_mask = 0xffffffff,
62 .name = "Intel XWAY PHY11G (xRX v1.2 integrated)",
63 @@ -412,6 +444,8 @@ static struct mdio_device_id __maybe_unu
64 { PHY_ID_PHY22F_1_4, 0xffffffff },
65 { PHY_ID_PHY11G_1_5, 0xffffffff },
66 { PHY_ID_PHY22F_1_5, 0xffffffff },
67 + { PHY_ID_PHY11G_VR9_1_1, 0xffffffff },
68 + { PHY_ID_PHY22F_VR9_1_1, 0xffffffff },
69 { PHY_ID_PHY11G_VR9_1_2, 0xffffffff },
70 { PHY_ID_PHY22F_VR9_1_2, 0xffffffff },
71 { }