[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201021093100.GJ1551@shell.armlinux.org.uk>
Date: Wed, 21 Oct 2020 10:31:00 +0100
From: Russell King - ARM Linux admin <linux@...linux.org.uk>
To: Robert Hancock <robert.hancock@...ian.com>
Cc: andrew@...n.ch, hkallweit1@...il.com, davem@...emloft.net,
netdev@...r.kernel.org
Subject: Re: [PATCH v3] net: phy: marvell: add special handling of Finisar
modules with 88E1111
On Tue, Oct 20, 2020 at 06:18:21PM -0600, Robert Hancock wrote:
> The Finisar FCLF8520P2BTL 1000BaseT SFP module uses a Marvel 88E1111 PHY
> with a modified PHY ID. Add support for this ID using the 88E1111
> methods.
>
> By default these modules do not have 1000BaseX auto-negotiation enabled,
> which is not generally desirable with Linux networking drivers. Add
> handling to enable 1000BaseX auto-negotiation when these modules are
> used in 1000BaseX mode. Also, some special handling is required to ensure
> that 1000BaseT auto-negotiation is enabled properly when desired.
>
> Based on existing handling in the AMD xgbe driver and the information in
> the Finisar FAQ:
> https://www.finisar.com/sites/default/files/resources/an-2036_1000base-t_sfp_faqreve1.pdf
>
> Signed-off-by: Robert Hancock <robert.hancock@...ian.com>
Reviewed-by: Russell King <rmk+kernel@...linux.org.uk>
One minor issue remains - sorry I didn't spot it last time. Feel free
to fix that and retain the reviewed by above, no need for an immediate
v4 posting
Please resend when net-next is open, thanks.
> @@ -629,6 +632,51 @@ static int marvell_config_aneg_fiber(struct phy_device *phydev)
> return genphy_check_and_restart_aneg(phydev, changed);
> }
>
> +static int m88e1111_config_aneg(struct phy_device *phydev)
> +{
> + int err;
> + int extsr = phy_read(phydev, MII_M1111_PHY_EXT_SR);
This should be in reverse christmas tree order.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists