Fix mis-manual merge.
Timeout is now effectively a boolean rather than a time-remaining. This was missed in r316478, but included in the original patch (mis-merged with a manual merge).
This commit is contained in:
parent
2198e1a1e2
commit
5b67ceb70e
@ -1597,7 +1597,7 @@ tsec_miibus_readreg(device_t dev, int phy, int reg)
|
||||
rv = TSEC_PHY_READ(sc, TSEC_REG_MIIMSTAT);
|
||||
TSEC_PHY_UNLOCK();
|
||||
|
||||
if (timeout == 0)
|
||||
if (timeout)
|
||||
device_printf(dev, "Timeout while reading from PHY!\n");
|
||||
|
||||
return (rv);
|
||||
@ -1617,7 +1617,7 @@ tsec_miibus_writereg(device_t dev, int phy, int reg, int value)
|
||||
timeout = tsec_mii_wait(sc, TSEC_MIIMIND_BUSY);
|
||||
TSEC_PHY_UNLOCK();
|
||||
|
||||
if (timeout == 0)
|
||||
if (timeout)
|
||||
device_printf(dev, "Timeout while writing to PHY!\n");
|
||||
|
||||
return (0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user