drivers: net: stmmac: rework core ISR to better manage PCS and PMT
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Fri, 24 Jun 2016 13:16:25 +0000 (15:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 12:54:23 +0000 (08:54 -0400)
commit3fe5cadbd3494b9d0fcea41ccefeb319528c774e
tree6301e478e55fdc4c53ffef0270cd1a4224504398
parent70523e639bf8ca09b3357371c3546cee55c06351
drivers: net: stmmac: rework core ISR to better manage PCS and PMT

By default, all gmac cores disable the PCS block and always
enable the PMT.

Note that this is done in a different way by 3.x and 4.x cores.

With this rework, PCS and PMT interrupt masks can be driven by
parameters now moved inside the mac_device_info structure
and the settings follow what the HW capability register reports.

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/dwmac4.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c