* [PATCH] net: fix spider_net media detection
@ 2005-09-16 6:55 Arnd Bergmann
2005-09-16 7:23 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2005-09-16 6:55 UTC (permalink / raw)
To: jgarzik; +Cc: akpm, netdev, linuxppc64-dev, osterkam
From: Jens Osterkamp <Jens.Osterkamp@de.ibm.com>
This patch makes the driver work with any BladeCenter
network switch, it used to work only with certain
models.
Please apply.
Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
--- linux-2.6.13.orig/drivers/net/spider_net.c
+++ linux-2.6.13/drivers/net/spider_net.c
@@ -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");
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net: fix spider_net media detection
2005-09-16 6:55 [PATCH] net: fix spider_net media detection Arnd Bergmann
@ 2005-09-16 7:23 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2005-09-16 7:23 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: akpm, netdev, linuxppc64-dev, osterkam
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-16 7:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-16 6:55 [PATCH] net: fix spider_net media detection Arnd Bergmann
2005-09-16 7:23 ` Jeff Garzik
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).