On 6/12/2019 9:05 AM, Andrew Lunn wrote: > The Marvell PHYs have a couple of different register sets for > performing cable tests. Page 7 provides the simplest to use. However, > it does not provide cable length, only length to a fault, when there > is a fault. > > Signed-off-by: Andrew Lunn <and...@lunn.ch> > --- [snip] > + bmcr = phy_read(phydev, MII_BMCR); > + if (bmcr < 0) > + return bmcr; > + > + bmsr = phy_read(phydev, MII_BMCR); Should this second read be for MII_BMSR? -- Florian
- [PATCH RFC 00/13] Ethernet PHY cable test support Andrew Lunn
- [PATCH RFC 08/13] net: phy: Add helpers for reportin... Andrew Lunn
- [PATCH RFC 01/13] net: phy: Add cable test support t... Andrew Lunn
- [PATCH RFC 07/13] net: phy: cable test: Use request ... Andrew Lunn
- [PATCH RFC 06/13] net: phy: Add infrastructure for r... Andrew Lunn
- [PATCH RFC 04/13] net: ethtool: Add Properties for c... Andrew Lunn
- [PATCH RFC 03/13] net: ethtool: netlink: Add support... Andrew Lunn
- [PATCH RFC 09/13] net: phy: marvell: Add cable test ... Andrew Lunn
- Re: [PATCH RFC 09/13] net: phy: marvell: Add cab... Florian Fainelli
- [PATCH RFC 11/13] net: phy: Add helpers and attribut... Andrew Lunn
- [PATCH RFC 02/13] net: phy: Add support for polling ... Andrew Lunn
- [PATCH RFC 05/13] net: ethtool: Make helpers public Andrew Lunn
- [PATCH RFC 12/13] net: phy: marvell: Add support for... Andrew Lunn
- [PATCH RFC 10/13] net: phy: Allow options to be pass... Andrew Lunn
- [PATCH RFC 13/13] net: phy: Put interface into oper ... Andrew Lunn
- Re: [PATCH RFC 00/13] Ethernet PHY cable test suppor... Raju Lakkaraju
- Re: [PATCH RFC 00/13] Ethernet PHY cable test suppor... Raju Lakkaraju