linux/drivers/net/ethernet/stmicro/stmmac
Stefan Roese a630844d89 net/stmmac: Use clk_prepare_enable and clk_disable_unprepare
This patch fixes an issue introduced by commit ID 6a81c26f
[net/stmmac: remove conditional compilation of clk code], which
switched from the internal stmmac_clk_{en}{dis}able calls to
clk_{en}{dis}able. By this, calling clk_prepare and clk_unprepare
was removed.

clk_{un}prepare is mandatory for platforms using common clock framework.
Since these drivers are used by SPEAr platform, which supports common
clock framework, add clk_{un}prepare() support for them. Otherwise
the clocks are not correctly en-/disabled and ethernet support doesn't
work.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-09-21 14:59:52 -04:00
..
chain_mode.c
common.h stmmac: add header inclusion protection 2012-08-24 13:25:05 -04:00
descs_com.h stmmac: add header inclusion protection 2012-08-24 13:25:05 -04:00
descs.h stmmac: add header inclusion protection 2012-08-24 13:25:05 -04:00
dwmac100_core.c stmmac: add the Energy Efficient Ethernet support 2012-07-01 03:34:50 -07:00
dwmac100_dma.c stmmac: add mixed burst for DMA 2012-05-14 18:53:19 -04:00
dwmac100.h stmmac: add header inclusion protection 2012-08-24 13:25:05 -04:00
dwmac1000_core.c stmmac: add the Energy Efficient Ethernet support 2012-07-01 03:34:50 -07:00
dwmac1000_dma.c stmmac: add mixed burst for DMA 2012-05-14 18:53:19 -04:00
dwmac1000.h stmmac: add header inclusion protection 2012-08-24 13:25:05 -04:00
dwmac_dma.h stmmac: add header inclusion protection 2012-08-24 13:25:05 -04:00
dwmac_lib.c stmmac: extend mac addr reg and fix perfect filering 2012-05-14 18:53:19 -04:00
enh_desc.c stmmac: sanitize the rx coe and add the type-1 csum (v2) 2012-04-04 18:39:23 -04:00
Kconfig stmmac: fix driver built w/ w/o both pci and platf modules 2012-06-07 22:46:48 -07:00
Makefile stmmac: add the experimental PCI support 2011-12-21 15:44:34 -05:00
mmc_core.c stmmac: fix a typo in the macro used to mask the mmc irq 2012-08-22 19:14:31 -07:00
mmc.h stmmac: add header inclusion protection 2012-08-24 13:25:05 -04:00
norm_desc.c stmmac: sanitize the rx coe and add the type-1 csum (v2) 2012-04-04 18:39:23 -04:00
ring_mode.c stmmac: Fix for higher mtu size handling 2012-07-09 14:37:52 -07:00
stmmac_ethtool.c stmmac: add the Energy Efficient Ethernet support 2012-07-01 03:34:50 -07:00
stmmac_main.c net/stmmac: Use clk_prepare_enable and clk_disable_unprepare 2012-09-21 14:59:52 -04:00
stmmac_mdio.c stmmac: MDC clock dynamically based on the csr clock input 2012-04-04 18:39:24 -04:00
stmmac_pci.c drivers/net/ethernet: Fix (nearly-)kernel-doc comments for various functions 2012-07-10 23:13:46 -07:00
stmmac_platform.c net/stmmac: mark probe function as __devinit 2012-08-08 16:08:43 -07:00
stmmac_timer.c net/stmmac: Use clk_prepare_enable and clk_disable_unprepare 2012-09-21 14:59:52 -04:00
stmmac_timer.h stmmac: add header inclusion protection 2012-08-24 13:25:05 -04:00
stmmac.h stmmac: add header inclusion protection 2012-08-24 13:25:05 -04:00