]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6625/1: use memblock memory regions for "System RAM" I/O resources
authorDima Zavin <dima@android.com>
Fri, 14 Jan 2011 22:05:14 +0000 (23:05 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 14 Jan 2011 22:14:04 +0000 (22:14 +0000)
commit4625458b70bb8b684cd45a73ab6550aaced27544
tree92f47c2f30eb4910b2720165476e5112a8359b32
parent23b73c4120be0e55f2f050705229e022d159dd96
ARM: 6625/1: use memblock memory regions for "System RAM" I/O resources

Do not use memory bank info to request the "system ram" resources as
they do not track holes created by memblock_remove inside
machine's reserve callback. If the removed memory is passed as
platform_device's ioresource, then drivers that call
request_mem_region would fail due to a conflict with the incorrectly
configured system ram resource.

Instead, iterate through the regions of memblock.memory and add
those as "System RAM" resources.

Signed-off-by: Dima Zavin <dima@android.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c