net: phy: sfp: correct store of detected link modes
authorBaruch Siach <baruch@tkos.co.il>
Thu, 29 Nov 2018 10:40:11 +0000 (12:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 08:24:28 +0000 (09:24 +0100)
commit4aa6d46d1711758ee18d078b76175b807ac55438
treee86d0e54a53e1024a9c56bed8b227db3e9516711
parenta7dba859ca58590c6f3445553db25cd748c40ff0
net: phy: sfp: correct store of detected link modes

[ Upstream commit d7f7e0018b96fd1a30a968faa9464eb57372c1ec ]

The link modes that sfp_parse_support() detects are stored in the
'modes' bitmap. There is no reason to make an exception for 1000Base-PX
or 1000Base-BX10.

Fixes: 03145864bd0f ("sfp: support 1G BiDi (eg, FiberStore SFP-GE-BX) modules")
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/sfp-bus.c