]> 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)
commitb688880ac1acf57f47c1c754023c7bab5b30bcb0
treeb1e30774ec0ff4e3f13ec5f8c2cf05b6c807a075
parent0af170b2d1392fff02483bc708f5c63fe6fefb8e
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