net/fsl: fix a bug in xgmac_mdio
There is a bug in xgmac_wait_until_done() which mdio_stat should be used instead of mdio_data when checking if busy bit is cleared. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c243d7e209
commit
26eee0210a
|
@ -79,7 +79,7 @@ static int xgmac_wait_until_done(struct device *dev,
|
|||
|
||||
/* Wait till the MDIO write is complete */
|
||||
timeout = TIMEOUT;
|
||||
while ((ioread32be(®s->mdio_data) & MDIO_DATA_BSY) && timeout) {
|
||||
while ((ioread32be(®s->mdio_stat) & MDIO_STAT_BSY) && timeout) {
|
||||
cpu_relax();
|
||||
timeout--;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue