Advertisement
Guest User

Untitled

a guest
May 6th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. diff --git a/drivers/net/ethernet/allwinner/sun8i-emac.c b/drivers/net/ethernet/allwinner/sun8i-emac.
  2. index 23b5e98..bb5f506 100644
  3. --- a/drivers/net/ethernet/allwinner/sun8i-emac.c
  4. +++ b/drivers/net/ethernet/allwinner/sun8i-emac.c
  5. @@ -17,6 +17,7 @@
  6. * - Jumbo frame
  7. * - features rx-all
  8. */
  9. +#include <linux/delay.h>
  10. #include <linux/bitops.h>
  11. #include <linux/clk.h>
  12. #include <linux/phy.h>
  13. @@ -897,6 +898,7 @@ static int sun8i_emac_open(struct net_device *ndev)
  14. /* wait for reset to be ended */
  15. do {
  16. v = readl(priv->base + SUN8I_EMAC_BASIC_CTL1);
  17. + udelay(1000);
  18. } while ((v & 0x01) != 0 && timeout++ < 50);
  19. if (timeout >= 50) {
  20. dev_err(priv->dev, "EMAC reset timeout\n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement