]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: move hw init in the probe (v2)
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Wed, 15 Feb 2012 00:10:39 +0000 (00:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Feb 2012 19:52:10 +0000 (14:52 -0500)
commit6f4675c34620ef109f41c0594577fe887071ec20
tree695883ca9df55d62ee83d35fc86a37e47bcb04f6
parent5c5facb61578a94b2dd91ca8a7b740f089441513
stmmac: move hw init in the probe (v2)

This patch moves the MAC HW initialization and
the HW feature verification from the open to the probe
function as D. Miller suggested.
So the patch actually reorganizes and tidies-up some parts of
the driver and indeed fixes some problem when tune its HW features.
These can be overwritten by looking at the HW cap register at
run-time and that generated problems.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Reviewed-by: Francesco Virlinzi <francesco.virlinzi@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c