]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit210f6a5f15cb8ca27ddd2debea1a2f518970c6be
tree76879dff478db85115db45f312ea09560b2a6861
parentcf5f753d34d3e770adf57beada0421f3e2f53430
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: cb76a21dcdb4 ("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