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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Nov 2018 18:47:44 +0000 (10:47 -0800)
commitd7f7e0018b96fd1a30a968faa9464eb57372c1ec
tree76879dff478db85115db45f312ea09560b2a6861
parentf1c0f59199419bfa955f84996122f5a81a24cb0f
net: phy: sfp: correct store of detected link modes

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>
drivers/net/phy/sfp-bus.c