]> git.baikalelectronics.ru Git - kernel.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)
commitd533dc1a0d8c85944775269d62928f67c80c1c82
tree35f6d4ab2a35edf24aa0f616befc389254abe40c
parent49560960abaee09ff41a866cc1fb782c5de8a548
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