Thread (36 messages) 36 messages, 3 authors, 2021-10-20

Re: [PATCH v3 06/13] net: phy: add qca8081 read_status

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-10-18 21:42:14
Also in: lkml

+static int qca808x_read_status(struct phy_device *phydev)
+{
+	int ret;
+
+	ret = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_10GBT_STAT);
+	if (ret < 0)
+		return ret;
+
+	linkmode_mod_bit(ETHTOOL_LINK_MODE_2500baseT_Full_BIT, phydev->lp_advertising,
+			ret & MDIO_AN_10GBT_STAT_LP2_5G);
+
Could genphy_c45_read_lpa() be used here?

      Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help