On Mon, Apr 12, 2021 at 06:26:11PM +0200, Pali Rohár wrote:
From: Russell King rmk+kernel@armlinux.org.uk
[ Upstream commit 7a77233ec6d114322e2c4f71b4e26dbecd9ea8a7 ]
Do not check the encoding when deriving 1000BASE-X from the bitrate when no other modes are discovered. Some GPON modules (VSOL V2801F and CarlitoxxPro CPGOS03-0490 v2.0) indicate NRZ encoding with a 1200Mbaud bitrate, but should be driven with 1000BASE-X on the host side.
Tested-by: Pali Rohár pali@kernel.org Reviewed-by: Andrew Lunn andrew@lunn.ch Signed-off-by: Russell King rmk+kernel@armlinux.org.uk Signed-off-by: David S. Miller davem@davemloft.net
Please apply this commit to all stable releases where was already backported commit 0d035bed2a4a6c4878518749348be61bf082d12a ("net: sfp: VSOL V2801F / CarlitoxxPro CPGOS03-0490 v2.0 workaround") as it depends on this commit. If I checked it correctly patch should go into 5.10 release.
Now applied, thanks.
greg k-h