diff options
author | mux <mux@FreeBSD.org> | 2005-01-04 19:30:14 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2005-01-04 19:30:14 +0000 |
commit | 6f24877a9d95e2de520ac577d222a34f68466193 (patch) | |
tree | da1a28db0a4d34cd7d40818af96a25935f1c57b8 /sys/dev/fxp | |
parent | 830736d271aa81c496c4d912c97841fbdd9a8cb2 (diff) | |
download | FreeBSD-src-6f24877a9d95e2de520ac577d222a34f68466193.zip FreeBSD-src-6f24877a9d95e2de520ac577d222a34f68466193.tar.gz |
Allow fxp(4) cards with a revision id of 0 to use the 82503 serial
interface as well. This is not an expected revision id per the
datasheet, but unfortunately there are such cards out there with
a 82557 chipset, and they want to use the 82503.
PR: kern/75739
Reported by: Andre Albsmeier <andre.albsmeier@siemens.com>
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 70dc184..8e736ff 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -452,7 +452,7 @@ fxp_attach(device_t dev) * Determine whether we must use the 503 serial interface. */ fxp_read_eeprom(sc, &data, 6, 1); - if (sc->revision == FXP_REV_82557 && (data & FXP_PHY_DEVICE_MASK) != 0 + if (sc->revision <= FXP_REV_82557 && (data & FXP_PHY_DEVICE_MASK) != 0 && (data & FXP_PHY_SERIAL_ONLY)) sc->flags |= FXP_FLAG_SERIAL_MEDIA; |