projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c243d7e
)
net/fsl: fix a bug in xgmac_mdio
author
Shaohui Xie
<
[email protected]
>
Mon, 16 Mar 2015 10:55:50 +0000
(18:55 +0800)
committer
David S. Miller
<
[email protected]
>
Mon, 16 Mar 2015 20:27:51 +0000
(16:27 -0400)
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/freescale/xgmac_mdio.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/freescale/xgmac_mdio.c
b/drivers/net/ethernet/freescale/xgmac_mdio.c
index 3a83bc2c613ce0e907831a264070970acfd8eccf..5f691f2c166a6f9e4dccdb10fe253223540c1063 100644
(file)
--- a/
drivers/net/ethernet/freescale/xgmac_mdio.c
+++ b/
drivers/net/ethernet/freescale/xgmac_mdio.c
@@
-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--;
}