stmmac: use mdelay on timeout of sw reset
authorFrancesco Virlinzi <francesco.virlinzi@st.com>
Wed, 16 Nov 2011 21:57:58 +0000 (21:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2011 08:13:41 +0000 (03:13 -0500)
commitbbc1754639f771cd2b515fed39b977549b373034
tree7f5cd57925266ec2484d5f6f2e0fc2d434a2b82a
parentd9fa7c86f1fca60693beea187c963cfda4a54a06
stmmac: use mdelay on timeout of sw reset

This patch uses an mdelay to manage the timeout on
sw reset to be independant of cpu_clk.

Signed-off-by: Francesco Virlinzi <francesco.virlinzi@st.com>
Reviewed-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c