]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Prevent potential crash if GPMC probe fails
authorJon Hunter <jon-hunter@ti.com>
Fri, 1 Feb 2013 16:38:45 +0000 (10:38 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 1 Feb 2013 22:08:19 +0000 (14:08 -0800)
commit41904c584e40f0b2780c75f1fca16339744d2a96
tree726460b24c21c127d9155c8f1269833a60ce4811
parentd1ea2e765a184dc0ff3d0e3622b5c36ea95d747c
ARM: OMAP2+: Prevent potential crash if GPMC probe fails

If the GPMC probe fails, devices that use the GPMC (such as ethernet
chips, flash memories, etc) can still allocate a GPMC chip-select and
register the device. On the OMAP2420 H4 board, this was causing the
kernel to crash after the gpmc probe failed and the board attempted
to start networking. Prevent this by marking all the chip-selects as
reserved by default and only make them available for devices to request
if the GPMC probe succeeds.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c