Fix for broken autonegociation for tl(4)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Loganaden Velvindron
Date: Tuesday, December 14, 2010 - 12:49 pm

Hi,

autonegociation is broken on tl(4). For some reason 10BaseTX doesn't work. The lowest value that does work is 100BaseTX. As usual, feedback and comments are welcomed.

//Logan
C-x-C-c

Index: src/sys/dev/pci/if_tl.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_tl.c,v
retrieving revision 1.50
diff -u -p -r1.50 if_tl.c
--- src/sys/dev/pci/if_tl.c	19 May 2010 15:27:35 -0000	1.50
+++ src/sys/dev/pci/if_tl.c	14 Dec 2010 19:43:38 -0000
@@ -2167,7 +2167,7 @@ tl_attach(parent, self, aux)
 		ifm->ifm_media = ifm->ifm_cur->ifm_media;
 		tl_ifmedia_upd(ifp);
 	} else
-		ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_AUTO);
+		ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_100_TX);
 
 	/*
 	 * Attach us everywhere.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Fix for broken autonegociation for tl(4), Loganaden Velvindron, (Tue Dec 14, 12:49 pm)
Re: Fix for broken autonegociation for tl(4), Miod Vallat, (Tue Dec 14, 12:57 pm)