]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: parameters auto-tuning through HW cap reg
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Wed, 16 Nov 2011 21:58:00 +0000 (21:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2011 08:13:41 +0000 (03:13 -0500)
commit4a28e847042d78c9e2f5fc81fa012b5b399a9399
treeb1e30774ec0ff4e3f13ec5f8c2cf05b6c807a075
parenta946ee49d5a22e9205b2a503008e994820bcaa90
stmmac: parameters auto-tuning through HW cap reg

New GMAC devices (newer than the databook 3.50a) have the
HW capability register that provides which features are actually
supported by the hardware.

On old devices many information have to be passed through the
platform, for example: enhanced descriptor structure,
TX COE etc. These are mandatory to properly configure the driver.
This remains still valid because the driver has to support old
Synopsys devices but now it's also able to override them using the
values from the HW capability register if supported.

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