mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
SIS_SETBIT() already does a read/modify/write operation, so there isn't
a reason to read the register twice. MFC after: 1 week
This commit is contained in:
parent
4a5184dc80
commit
f5698581ca
1 changed files with 1 additions and 2 deletions
|
|
@ -2015,8 +2015,7 @@ sis_initl(struct sis_softc *sc)
|
|||
device_printf(sc->sis_dev,
|
||||
"Applying short cable fix (reg=%x)\n", reg);
|
||||
CSR_WRITE_4(sc, NS_PHY_TDATA, 0x00e8);
|
||||
reg = CSR_READ_4(sc, NS_PHY_DSPCFG);
|
||||
SIS_SETBIT(sc, NS_PHY_DSPCFG, reg | 0x20);
|
||||
SIS_SETBIT(sc, NS_PHY_DSPCFG, 0x20);
|
||||
}
|
||||
CSR_WRITE_4(sc, NS_PHY_PAGE, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue