]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: mdio register has to fail if the phy is not found
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Wed, 6 Feb 2013 20:47:52 +0000 (20:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Feb 2013 01:12:10 +0000 (20:12 -0500)
commit36f4d3a6690fcf05ab588947e5d6dca0878a9ded
treea46217f7ea13c2fcb4f9506a91663aadbbc4cb40
parent571a35c63175034823f8f0bc361d072164bc3377
stmmac: mdio register has to fail if the phy is not found

With this patch the stmmac fails in case of the phy device
is not found; w/o this fix the mdio can be register twice when
do down/up the iface and this is not correct.

Reported-by: Stas <stsp@list.ru>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c