]> 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)
commit398cab4d95957c40082695e4e4c183585d34381d
tree695883ca9df55d62ee83d35fc86a37e47bcb04f6
parent2e4e130c1403dc4737ab72eabd2beca8b8585596
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