linux/arch/arm/mach-kirkwood
Andrew Lunn 128789a829 ARM: Kirkwood: Fix clk problems modular ethernet driver
When the ethernet driver was built as a module, it would lock the
machine when loaded. At boot the ethernet clks are unused, so get
turned off.  Later, when the module is loaded, the probe function
would access the hardware before the clock was restarted, and the
machine would lock. It has also been determined that when the clk is
turned off, the interface forgets its MAC address, which for most
systems, is set by the boot loader.

When the machine setup file creates a platform device for the
interface, prepare and enable the clock for the interface. This will
ensure it is not turned off. However, if the setup file only
instantiates one platform device, the other will have its clk
disabled, thus maybe saving a little power.

Report-by: Simon Baatz <gmbnomis@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Simon Baatz <gmbnomis@gmail.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
2012-06-16 18:45:20 -07:00
..
include/mach ARM: Orion: Add clocks using the generic clk infrastructure. 2012-05-08 16:33:39 -07:00
addr-map.c ARM: Orion: mbus_dram_info consolidation 2011-12-13 18:46:55 -05:00
board-dnskw.c ARM: kirkwood: Basic support for DNS-320 and DNS-325 2012-05-15 02:28:01 +00:00
board-dreamplug.c ARM: Orion: SPI: Add clk/clkdev support. 2012-05-08 16:33:55 -07:00
board-dt.c arm-soc: clock driver changes 2012-05-26 12:42:29 -07:00
board-ib62x0.c ARM: kirkwood: Add support for RaidSonic IB-NAS6210/6220 using devicetree 2012-05-15 03:18:49 +00:00
board-iconnect.c kirkwood: Add iconnect support 2012-05-15 03:12:27 +00:00
common.c ARM: Kirkwood: Fix clk problems modular ethernet driver 2012-06-16 18:45:20 -07:00
common.h arm-soc: clock driver changes 2012-05-26 12:42:29 -07:00
cpuidle.c ARM: kirkwood: Consolidate time keeping and irq enable 2012-03-21 02:00:25 -04:00
d2net_v2-setup.c ARM: restart: kirkwood: use new restart hook 2012-01-05 12:57:14 +00:00
db88f6281-bp-setup.c ARM: restart: kirkwood: use new restart hook 2012-01-05 12:57:14 +00:00
dockstar-setup.c ARM: restart: kirkwood: use new restart hook 2012-01-05 12:57:14 +00:00
guruplug-setup.c ARM: restart: kirkwood: use new restart hook 2012-01-05 12:57:14 +00:00
irq.c ARM: gpio: convert includes of mach/gpio.h and asm/gpio.h to linux/gpio.h 2011-08-08 14:27:41 +01:00
Kconfig ARM: kirkwood: Add support for RaidSonic IB-NAS6210/6220 using devicetree 2012-05-15 03:18:49 +00:00
lacie_v2-common.c [ARM] Kirkwood: fix timer initialization for LaCie boards 2010-10-21 14:13:58 -04:00
lacie_v2-common.h [ARM] Kirkwood: fix timer initialization for LaCie boards 2010-10-21 14:13:58 -04:00
Makefile ARM: kirkwood: Add support for RaidSonic IB-NAS6210/6220 using devicetree 2012-05-15 03:18:49 +00:00
Makefile.boot ARM: kirkwood: Add support for RaidSonic IB-NAS6210/6220 using devicetree 2012-05-15 03:18:49 +00:00
mpp.c ARM: Orion: Get address map from plat-orion instead of via platform_data 2011-12-13 18:46:55 -05:00
mpp.h ARM: orion: Fix Orion5x GPIO regression from MPP cleanup 2012-02-09 16:16:31 -08:00
mv88f6281gtw_ge-setup.c ARM: Orion: SPI: Add clk/clkdev support. 2012-05-08 16:33:55 -07:00
netspace_v2-setup.c ARM: restart: kirkwood: use new restart hook 2012-01-05 12:57:14 +00:00
netxbig_v2-setup.c ARM: restart: kirkwood: use new restart hook 2012-01-05 12:57:14 +00:00
openrd-setup.c ASoC: Convert kirkwood-openrd to use snd_soc_register_card() 2012-02-07 19:40:53 +00:00
pcie.c arm-soc: clock driver changes 2012-05-26 12:42:29 -07:00
rd88f6192-nas-setup.c ARM: Orion: SPI: Add clk/clkdev support. 2012-05-08 16:33:55 -07:00
rd88f6281-setup.c ARM: restart: kirkwood: use new restart hook 2012-01-05 12:57:14 +00:00
sheevaplug-setup.c Merge branch 'restart' into for-linus 2012-01-05 13:25:27 +00:00
t5325-setup.c ARM: Orion: SPI: Add clk/clkdev support. 2012-05-08 16:33:55 -07:00
ts41x-setup.c ARM: restart: kirkwood: use new restart hook 2012-01-05 12:57:14 +00:00
ts219-setup.c ARM: restart: kirkwood: use new restart hook 2012-01-05 12:57:14 +00:00
tsx1x-common.c ARM: Orion: SPI: Add clk/clkdev support. 2012-05-08 16:33:55 -07:00
tsx1x-common.h ARM: 6265/1: kirkwood: move qnap_tsx1x_register_flash() to .init.text 2010-07-26 10:33:08 +01:00