]> bbs.cooldavid.org Git - net-next-2.6.git/commit
stmmac: prevent dma init stuck in case of failures.
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Fri, 17 Sep 2010 03:23:41 +0000 (03:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Sep 2010 23:12:57 +0000 (16:12 -0700)
commitc629882ac73cab2cd41d9948caeed633fc570fc0
tree2dfa1375309b3238e7a2ebbe577ce1fb6eb2f2c4
parentebbb293f8b3021ae2009fcb7cb3b8a52fb5fd06a
stmmac: prevent dma init stuck in case of failures.

Add a limit when perform the DMA reset procedure
so, in case of problems (i.e. PHY reset failed) the
Kernel won't hang on the stmmac DMA initialisation
blocking the Kernels execution.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/dwmac1000_dma.c
drivers/net/stmmac/dwmac100_dma.c