Use " |= " to enable special media handling for fxp with no MII, instead
of " &= ". Also change the MII PHY device mask to check the correct bits. Cookie to: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Pointy hat to: me
This commit is contained in:
parent
e89c933c5b
commit
dedabebf33
@ -448,7 +448,7 @@ fxp_attach(device_t dev)
|
||||
fxp_read_eeprom(sc, &data, 6, 1);
|
||||
if ((data & FXP_PHY_DEVICE_MASK) != 0 &&
|
||||
(data & FXP_PHY_SERIAL_ONLY))
|
||||
sc->flags &= FXP_FLAG_SERIAL_MEDIA;
|
||||
sc->flags |= FXP_FLAG_SERIAL_MEDIA;
|
||||
|
||||
/*
|
||||
* Find out the basic controller type; we currently only
|
||||
|
@ -355,7 +355,7 @@ struct fxp_stats {
|
||||
/*
|
||||
* PHY device types
|
||||
*/
|
||||
#define FXP_PHY_DEVICE_MASK 0x03f0
|
||||
#define FXP_PHY_DEVICE_MASK 0x3f00
|
||||
#define FXP_PHY_SERIAL_ONLY 0x8000
|
||||
#define FXP_PHY_NONE 0
|
||||
#define FXP_PHY_82553A 1
|
||||
|
Loading…
Reference in New Issue
Block a user