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:
John Baldwin 2008-07-30 17:21:32 +00:00
parent 4a5184dc80
commit f5698581ca

View file

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