提交 9e0db41e 编写于 作者: J Jisheng Zhang 提交者: David S. Miller

net: stmmac: dwmac-sun8i: use return val of readl_poll_timeout()

When readl_poll_timeout() timeout, we'd better directly use its return
value.

Before this patch:
[    2.145528] dwmac-sun8i: probe of 4500000.ethernet failed with error -14

After this patch:
[    2.138520] dwmac-sun8i: probe of 4500000.ethernet failed with error -110
Signed-off-by: NJisheng Zhang <jszhang@kernel.org>
Acked-by: NJernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 dcb2c5c6
......@@ -756,7 +756,7 @@ static int sun8i_dwmac_reset(struct stmmac_priv *priv)
if (err) {
dev_err(priv->device, "EMAC reset timeout\n");
return -EFAULT;
return err;
}
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册