diff options
Diffstat (limited to 'drivers/net/davinci_mdio.c')
-rw-r--r-- | drivers/net/davinci_mdio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/davinci_mdio.c b/drivers/net/davinci_mdio.c index 7615040df756..f470ab64b093 100644 --- a/drivers/net/davinci_mdio.c +++ b/drivers/net/davinci_mdio.c @@ -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(®s->user[0].access); + if ((reg & USERACCESS_GO) == 0) + return 0; + dev_err(data->dev, "timed out waiting for user access\n"); return -ETIMEDOUT; } |