[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1577096053-20507-6-git-send-email-madalin.bucur@oss.nxp.com>
Date: Mon, 23 Dec 2019 12:14:11 +0200
From: Madalin Bucur <madalin.bucur@....nxp.com>
To: davem@...emloft.net, netdev@...r.kernel.org, linux@...linux.org.uk,
andrew@...n.ch
Cc: f.fainelli@...il.com, hkallweit1@...il.com, shawnguo@...nel.org,
leoyang.li@....com, devicetree@...r.kernel.org, robh+dt@...nel.org,
mark.rutland@....com, Madalin Bucur <madalin.bucur@....nxp.com>
Subject: [PATCH net-next v2 5/7] net: phy: aquantia: add support for PHY_INTERFACE_MODE_XFI
The PHY_INTERFACE_MODE_10GKR was introduced as a catch-all
value for 10GBase-KR, XFI, SFI, to differentiate against XGMII.
The AQR PHYs support XFI as a PHY connection type, adding it
to the list of supported types. I'm not sure whether 10GBase-KR
is actually supported or not on the AQR devices so I'm not
touching that.
Signed-off-by: Madalin Bucur <madalin.bucur@....nxp.com>
---
drivers/net/phy/aquantia_main.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/phy/aquantia_main.c b/drivers/net/phy/aquantia_main.c
index 975789d9349d..688a637f1aba 100644
--- a/drivers/net/phy/aquantia_main.c
+++ b/drivers/net/phy/aquantia_main.c
@@ -358,9 +358,11 @@ static int aqr107_read_status(struct phy_device *phydev)
switch (FIELD_GET(MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK, val)) {
case MDIO_PHYXS_VEND_IF_STATUS_TYPE_KR:
- case MDIO_PHYXS_VEND_IF_STATUS_TYPE_XFI:
phydev->interface = PHY_INTERFACE_MODE_10GKR;
break;
+ case MDIO_PHYXS_VEND_IF_STATUS_TYPE_XFI:
+ phydev->interface = PHY_INTERFACE_MODE_XFI;
+ break;
case MDIO_PHYXS_VEND_IF_STATUS_TYPE_USXGMII:
phydev->interface = PHY_INTERFACE_MODE_USXGMII;
break;
@@ -493,6 +495,7 @@ static int aqr107_config_init(struct phy_device *phydev)
phydev->interface != PHY_INTERFACE_MODE_2500BASEX &&
phydev->interface != PHY_INTERFACE_MODE_XGMII &&
phydev->interface != PHY_INTERFACE_MODE_USXGMII &&
+ phydev->interface != PHY_INTERFACE_MODE_XFI &&
phydev->interface != PHY_INTERFACE_MODE_10GKR)
return -ENODEV;
--
2.1.0
Powered by blists - more mailing lists