Don't set RTK_CFG1_FULLDUPLEX bit in RTK_CFG1 register

since it's available only on RTL8129. From FreeBSD.

As defined in rtl81x9reg.h, bits of 0x80 and 0x40 in RTK_CFG1
seem to indicate LEDS0 and LEDS1 configuration initialized by
EEPROM settings, and they seem read only on my quick tests with
two 8169S based cards.
This commit is contained in:
tsutsui 2007-02-15 12:33:57 +00:00
parent 187a862850
commit ce38f32f83
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtl8169.c,v 1.80 2007/02/15 12:24:56 tsutsui Exp $ */
/* $NetBSD: rtl8169.c,v 1.81 2007/02/15 12:33:57 tsutsui Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@ -1930,7 +1930,7 @@ re_init(struct ifnet *ifp)
if (sc->re_testmode)
return 0;
CSR_WRITE_1(sc, RTK_CFG1, RTK_CFG1_DRVLOAD | RTK_CFG1_FULLDUPLEX);
CSR_WRITE_1(sc, RTK_CFG1, RTK_CFG1_DRVLOAD);
ifp->if_flags |= IFF_RUNNING;
ifp->if_flags &= ~IFF_OACTIVE;