Skip to contentSkip to conversation

net: fix spider_net media detection

PATCH Applied Arnd Bergmann 2 participants 2 messages Sep 16, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: fix spider_net media detection

From: Jens Osterkamp <[email protected]>

This patch makes the driver work with any BladeCenter network switch, it used to work only with certain models.

Please apply.

drivers/net/spider_net.c +4 -0
@@ -1817,6 +1817,10 @@ spider_net_setup_phy(struct spider_net_c
 	/* LEDs active in both modes, autosense prio = fiber */
 	spider_net_write_phy(card->netdev, 1, MII_NCONFIG, 0x945f);
 
+	/* switch off fibre autoneg */
+	spider_net_write_phy(card->netdev, 1, MII_NCONFIG, 0xfc01);
+	spider_net_write_phy(card->netdev, 1, 0x0b, 0x0004);
+
 	phy->def->ops->read_link(phy);
 	pr_info("Found %s with %i Mbps, %s-duplex.\n", phy->def->name,
 		phy->speed, phy->duplex==1 ? "Full" : "Half");