]> 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)
commit421f4be5a9121a4674a05ab657ebec362fbd1b5c
tree79ab1accf8f6f361494d9e33319b3d26aed42195
parent6a473110bb9e5e7dc7b910624107c482fe052d56
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