]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit19e30c14371f7afd38d1d35a693b96423a4db144
treeb1e30774ec0ff4e3f13ec5f8c2cf05b6c807a075
parentc5b9b4e4b9076089fe7f9d4f5d1f2bba776646d2
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