Only try to use the 82503 serial interface for the 82557 chipsets. The

datasheet says it is only valid for such chipsets and shouldn't be used
with others.  This fixes some 82559 based cards which otherwise only
work at 10Mbit.

MFC after:	5 days
Tested by:	krion
This commit is contained in:
mux 2004-12-20 10:18:21 +00:00
parent 1c86b95b10
commit 747bbb41c4

View File

@ -452,8 +452,8 @@ fxp_attach(device_t dev)
* Determine whether we must use the 503 serial interface.
*/
fxp_read_eeprom(sc, &data, 6, 1);
if ((data & FXP_PHY_DEVICE_MASK) != 0 &&
(data & FXP_PHY_SERIAL_ONLY))
if (sc->revision == FXP_REV_82557 && (data & FXP_PHY_DEVICE_MASK) != 0
&& (data & FXP_PHY_SERIAL_ONLY))
sc->flags |= FXP_FLAG_SERIAL_MEDIA;
SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),