* [RFC][PATCH] spidernet: enable fiber autonegotiation
@ 2006-11-27 14:47 Jens Osterkamp
2006-11-27 15:05 ` [Cbe-oss-dev] " Arnd Bergmann
0 siblings, 1 reply; 5+ messages in thread
From: Jens Osterkamp @ 2006-11-27 14:47 UTC (permalink / raw)
To: netdev, cbe-oss-dev; +Cc: jgarzik, jklewis
While experimenting with a copper passthrough module in bladecenter I found
out that this needs autonegotiation enabled in order to work properly.
This quick hack enables it with the sideeffect of breaking other bladecenter
switch configurations.
If anyone has any suggestions or has experimented with the same configuration,
feel free to comment.
This patch is not meant for inclusion into mainline.
Signed-off-by: Jens Osterkamp <jens@de.ibm.com>
Index: linux-2.6.19-rc6/drivers/net/spider_net.c
===================================================================
--- linux-2.6.19-rc6.orig/drivers/net/spider_net.c
+++ linux-2.6.19-rc6/drivers/net/spider_net.c
@@ -1724,8 +1724,10 @@ spider_net_setup_phy(struct spider_net_c
phy->mdio_read = spider_net_read_phy;
phy->mdio_write = spider_net_write_phy;
+ /* reset phy, read id and setup phy struct with phy ops*/
mii_phy_probe(phy, phy->mii_id);
+ /* write fix speed and duplex to BMCR */
if (phy->def->ops->setup_forced)
phy->def->ops->setup_forced(phy, SPEED_1000, DUPLEX_FULL);
Index: linux-2.6.19-rc6/drivers/net/sungem_phy.c
===================================================================
--- linux-2.6.19-rc6.orig/drivers/net/sungem_phy.c
+++ linux-2.6.19-rc6/drivers/net/sungem_phy.c
@@ -335,10 +335,6 @@ static int bcm5421_enable_fiber(struct m
/* LEDs active in both modes, autosense prio = fiber */
phy_write(phy, MII_NCONFIG, 0x945f);
- /* switch off fibre autoneg */
- phy_write(phy, MII_NCONFIG, 0xfc01);
- phy_write(phy, 0x0b, 0x0004);
-
return 0;
}
@@ -347,7 +343,7 @@ static int bcm5461_enable_fiber(struct m
phy_write(phy, MII_NCONFIG, 0xfc0c);
phy_write(phy, MII_BMCR, 0x4140);
phy_write(phy, MII_NCONFIG, 0xfc0b);
- phy_write(phy, MII_BMCR, 0x0140);
+ phy_write(phy, MII_BMCR, 0x1140);
return 0;
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Cbe-oss-dev] [RFC][PATCH] spidernet: enable fiber autonegotiation
2006-11-27 14:47 [RFC][PATCH] spidernet: enable fiber autonegotiation Jens Osterkamp
@ 2006-11-27 15:05 ` Arnd Bergmann
2006-11-27 15:46 ` Jens Osterkamp
0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2006-11-27 15:05 UTC (permalink / raw)
To: cbe-oss-dev; +Cc: Jens Osterkamp, netdev, jgarzik
On Monday 27 November 2006 15:47, Jens Osterkamp wrote:
>
> While experimenting with a copper passthrough module in bladecenter I found
> out that this needs autonegotiation enabled in order to work properly.
> This quick hack enables it with the sideeffect of breaking other bladecenter
> switch configurations.
> If anyone has any suggestions or has experimented with the same configuration,
> feel free to comment.
There was a patch from Ishizaki Kou recently, to set up autonegotiate
and other things, see http://patchwork.ozlabs.org/linuxppc/patch?id=8121 .
Are you sure that you don't need any of those changes as well?
Arnd <><
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Cbe-oss-dev] [RFC][PATCH] spidernet: enable fiber autonegotiation
2006-11-27 15:05 ` [Cbe-oss-dev] " Arnd Bergmann
@ 2006-11-27 15:46 ` Jens Osterkamp
2006-11-27 16:05 ` Arnd Bergmann
0 siblings, 1 reply; 5+ messages in thread
From: Jens Osterkamp @ 2006-11-27 15:46 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: cbe-oss-dev, netdev, jgarzik
> There was a patch from Ishizaki Kou recently, to set up autonegotiate
> and other things, see http://patchwork.ozlabs.org/linuxppc/patch?id=8121 .
>
> Are you sure that you don't need any of those changes as well?
Thanks for pointing me to this, I must have overlooked it. Some of it seems
only applicable to the Celleb copper interface, but some of it is quite
usable for us too.
Is it already queued upstream ?
Jens
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Cbe-oss-dev] [RFC][PATCH] spidernet: enable fiber autonegotiation
2006-11-27 15:46 ` Jens Osterkamp
@ 2006-11-27 16:05 ` Arnd Bergmann
0 siblings, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2006-11-27 16:05 UTC (permalink / raw)
To: Jens Osterkamp; +Cc: cbe-oss-dev, netdev, jgarzik
On Monday 27 November 2006 16:46, Jens Osterkamp wrote:
> Thanks for pointing me to this, I must have overlooked it. Some of it seems
> only applicable to the Celleb copper interface, but some of it is quite
> usable for us too.
>
> Is it already queued upstream ?
No, I'm currently waiting for an updated series for Celleb, ported to
the latest kernel. The spidernet patch from this series has not yet
been submitted to netdev or jgarzik, AFAIK.
Arnd <><
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <OF866BFBF0.F4E98990-ON87257233.0069989E-86257233.006A0704@us.ibm.com>]
end of thread, other threads:[~2006-11-28 9:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-27 14:47 [RFC][PATCH] spidernet: enable fiber autonegotiation Jens Osterkamp
2006-11-27 15:05 ` [Cbe-oss-dev] " Arnd Bergmann
2006-11-27 15:46 ` Jens Osterkamp
2006-11-27 16:05 ` Arnd Bergmann
[not found] <OF866BFBF0.F4E98990-ON87257233.0069989E-86257233.006A0704@us.ibm.com>
2006-11-28 9:18 ` Jens Osterkamp
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).