netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: phy: sfp: correct store of detected link modes
@ 2018-11-29 10:40 Baruch Siach
  2018-11-29 10:46 ` Russell King - ARM Linux
  2018-11-29 18:49 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Baruch Siach @ 2018-11-29 10:40 UTC (permalink / raw)
  To: Russell King, Andrew Lunn, Florian Fainelli; +Cc: netdev, Baruch Siach

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.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 drivers/net/phy/sfp-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/sfp-bus.c b/drivers/net/phy/sfp-bus.c
index 83060fb349f4..ad9db652874d 100644
--- a/drivers/net/phy/sfp-bus.c
+++ b/drivers/net/phy/sfp-bus.c
@@ -162,7 +162,7 @@ void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
 	/* 1000Base-PX or 1000Base-BX10 */
 	if ((id->base.e_base_px || id->base.e_base_bx10) &&
 	    br_min <= 1300 && br_max >= 1200)
-		phylink_set(support, 1000baseX_Full);
+		phylink_set(modes, 1000baseX_Full);
 
 	/* For active or passive cables, select the link modes
 	 * based on the bit rates and the cable compliance bytes.
-- 
2.19.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-30  5:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-29 10:40 [PATCH] net: phy: sfp: correct store of detected link modes Baruch Siach
2018-11-29 10:46 ` Russell King - ARM Linux
2018-11-29 12:30   ` Baruch Siach
2018-11-29 13:14     ` Russell King - ARM Linux
2018-11-29 18:49 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).