]> git.karo-electronics.de Git - linux-beck.git/commit
stmmac: Replace infinite loops by timeouts in mdio r/w
authorDeepak SIKRI <deepak.sikri@st.com>
Wed, 4 Apr 2012 04:33:24 +0000 (04:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2012 22:39:24 +0000 (18:39 -0400)
commit39b401dbd3a36f04657afa078d1d25278a26e9c9
tree35f6d4ab2a35edf24aa0f616befc389254abe40c
parent8327eb65e795ba4f922bf7e531cd312875f0dc29
stmmac: Replace infinite loops by timeouts in mdio r/w

This patch removes the infinite waits from the mdio read and
write interfaces. These infinite waits have been replaced by
the timeout handling. In case if a time out occurs, an error is
returned.

Signed-off-by: Deepak Sikri <deepak.sikri@st.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c