Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/drivers/net/ethernet/allwinner/sun8i-emac.c b/drivers/net/ethernet/allwinner/sun8i-emac.
- index 23b5e98..bb5f506 100644
- --- a/drivers/net/ethernet/allwinner/sun8i-emac.c
- +++ b/drivers/net/ethernet/allwinner/sun8i-emac.c
- @@ -17,6 +17,7 @@
- * - Jumbo frame
- * - features rx-all
- */
- +#include <linux/delay.h>
- #include <linux/bitops.h>
- #include <linux/clk.h>
- #include <linux/phy.h>
- @@ -897,6 +898,7 @@ static int sun8i_emac_open(struct net_device *ndev)
- /* wait for reset to be ended */
- do {
- v = readl(priv->base + SUN8I_EMAC_BASIC_CTL1);
- + udelay(1000);
- } while ((v & 0x01) != 0 && timeout++ < 50);
- if (timeout >= 50) {
- dev_err(priv->dev, "EMAC reset timeout\n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement