[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201019210023.GU139700@lunn.ch>
Date: Mon, 19 Oct 2020 23:00:23 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Robert Hancock <robert.hancock@...ian.com>
Cc: hkallweit1@...il.com, linux@...linux.org.uk, davem@...emloft.net,
netdev@...r.kernel.org
Subject: Re: [PATCH] net: phy: marvell: add special handling of Finisar
modules with 81E1111
> +static int m88e1111_finisar_config_init(struct phy_device *phydev)
> +{
> + int err;
> + int extsr = phy_read(phydev, MII_M1111_PHY_EXT_SR);
> +
> + if (extsr < 0)
> + return extsr;
> +
> + /* If using 1000BaseX and 1000BaseX auto-negotiation is disabled, enable it */
> + if (phydev->interface == PHY_INTERFACE_MODE_1000BASEX &&
> + (extsr & MII_M1111_HWCFG_MODE_MASK) ==
> + MII_M1111_HWCFG_MODE_COPPER_1000BX_NOAN) {
> + err = phy_modify(phydev, MII_M1111_PHY_EXT_SR,
> + MII_M1111_HWCFG_MODE_MASK |
> + MII_M1111_HWCFG_SERIAL_AN_BYPASS,
> + MII_M1111_HWCFG_MODE_COPPER_1000BX_AN |
> + MII_M1111_HWCFG_SERIAL_AN_BYPASS);
> + if (err < 0)
> + return err;
> + }
> +
> + return m88e1111_config_init(phydev);
> +}
Hi Robert
Is this really specific to the Finisar? It seems like any application
of the m88e1111 in 1000BaseX would benefit from this?
Andrew
Powered by blists - more mailing lists