Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299544
b: refs/heads/master
c: 5b76d06
h: refs/heads/master
v: v3
  • Loading branch information
Christian Riesch authored and David S. Miller committed Apr 18, 2012
1 parent 8b9265c commit be5f112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cda31e10baf47a8a7d9360d9488fb76294be1ca3
refs/heads/master: 5b76d0600b2b08eef77f8e9226938b7b6bde3099
5 changes: 5 additions & 0 deletions trunk/drivers/net/ethernet/ti/davinci_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ static inline int wait_for_user_access(struct davinci_mdio_data *data)
__davinci_mdio_reset(data);
return -EAGAIN;
}

reg = __raw_readl(&regs->user[0].access);
if ((reg & USERACCESS_GO) == 0)
return 0;

dev_err(data->dev, "timed out waiting for user access\n");
return -ETIMEDOUT;
}
Expand Down

0 comments on commit be5f112

Please sign in to comment.