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>
This commit is contained in:
Maxime Henrion 2005-01-04 19:30:14 +00:00
parent d7d1139749
commit 778ee7be10
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139683

View File

@ -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;