Power Developer https://powerdeveloper.org/forums/ |
|
EFIKA full duplex patch (thanks purple_alien) https://powerdeveloper.org/forums/viewtopic.php?f=9&t=1209 |
Page 1 of 1 |
Author: | acrux [ Fri Mar 09, 2007 4:49 am ] |
Post subject: | EFIKA full duplex patch (thanks purple_alien) |
you can add it after our efika's patch collection (sven-efika+cruxppc-2007.01.25.tar.gz )... for a while you can download it (the 33th patch) here: http://acrux.homelinux.org/files/0033-E ... pl_aln.txt Code:
--- half/drivers/net/fec_mpc52xx/fec.c 2007-03-08 18:02:54.000000000 +0100
it seems to work fine on our test kernel-2.6.20.2, btw this patch is only for testing pourpose.+++ full/drivers/net/fec_mpc52xx/fec.c 2007-03-08 18:06:45.000000000 +0100 @@ -525,7 +525,7 @@ priv->phy_speed = ((bd->bi_ipbfreq >> 20) / 5) << 1; #endif - fec_restart(dev, 0); /* always use half duplex mode only */ + fec_restart(dev, 1); /* now use full duplex mode only */ /* * Read MIB counters in order to reset them, * then zero all the stats fields in memory --- half/drivers/net/fec_mpc52xx/fec_phy.c 2007-03-08 18:02:54.000000000 +0100 +++ full/drivers/net/fec_mpc52xx/fec_phy.c 2007-03-08 18:08:13.000000000 +0100 @@ -227,8 +227,8 @@ "GENERIC", (const phy_cmd_t []) { /* config */ - /* advertise only half-duplex capabilities */ - { mk_mii_write(MII_ADVERTISE, MII_ADVERTISE_HALF), + /* advertise only full-duplex capabilities */ + { mk_mii_write(MII_ADVERTISE, MII_ADVERTISE_ALL), mii_parse_anar }, /* enable auto-negotiation */ -- greetz, The Crux PPC Team |
Page 1 of 1 | All times are UTC-06:00 |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |