Only touch the PCR register in order to set bits for the fxp driver.
The 3C509-TX card apparently had a slightly different version of the chip, and has problems when this register is set. The problem does not appear on the 3C509{BC} cards, but since only the fxp driver needs specific bits set, conditionalize on that.
This commit is contained in:
parent
be51554b89
commit
e46e7fa2c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77634
@ -276,7 +276,9 @@ nsphy_service(sc, mii, cmd)
|
||||
*/
|
||||
reg |= 0x0100 | 0x0400;
|
||||
|
||||
PHY_WRITE(sc, MII_NSPHY_PCR, reg);
|
||||
if (strcmp(device_get_name(device_get_parent(sc->mii_dev)),
|
||||
"fxp") == 0)
|
||||
PHY_WRITE(sc, MII_NSPHY_PCR, reg);
|
||||
|
||||
switch (IFM_SUBTYPE(ife->ifm_media)) {
|
||||
case IFM_AUTO:
|
||||
|
Loading…
Reference in New Issue
Block a user