]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: support Reg_9 to get HW level information
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Mon, 30 Nov 2015 10:33:10 +0000 (11:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Dec 2015 21:06:14 +0000 (16:06 -0500)
commite454df9abf2fcba348f80ec1f52f44ac814c7d7b
tree79ab1accf8f6f361494d9e33319b3d26aed42195
parent28ccfe58dfd445ae8b42a684c220a7f8151d1dad
stmmac: support Reg_9 to get HW level information

For GMAC newer than 3.40a there is a new register (Reg_9) that provides the
status of all modules of the transmit and receive paths and FIFO status.
These can be exposed via ethtool.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c