]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: Stop advertising 1000Base capabilties for non GMII iface (V4).
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Tue, 18 Oct 2011 00:01:18 +0000 (00:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 23:24:16 +0000 (19:24 -0400)
commitfc84205b78b19e8727197079e4aa3f045794283f
treef37963d7e9ac2a71c87f6e69ab493664b4be0b2d
parent3c29ce83d3d1ea12443432a0ea40aab3c6442bd6
stmmac: Stop advertising 1000Base capabilties for non GMII iface (V4).

This patch stops advertising 1000Base capablities if GMAC is either
configured for MII or RMII mode and on board there is a GPHY plugged on.
Without this patch if an GBit switch is connected on MII interface,
Ethernet stops working at all.

Discovered as part of
https://bugzilla.stlinux.com/show_bug.cgi?id=14148 triage

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c