summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mvebu/coherency.c
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-06-05 07:04:56 (GMT)
committerJason Cooper <jason@lakedaemon.net>2013-06-13 17:48:26 (GMT)
commit3e0a8f239607e6f7608c3e7797e9c304700f5b72 (patch)
tree48cda386f2913e9aca4279295d3769833586fe6f /arch/arm/mach-mvebu/coherency.c
parent865e0527d2d791083a40555f2ba872da5fbddda8 (diff)
downloadlinux-3e0a8f239607e6f7608c3e7797e9c304700f5b72.tar.xz
arm: mvebu: move cache and mvebu-mbus initialization later
Current, the L2 cache and the mvebu-mbus drivers are initialized at ->init_early() time. However, at ->init_early() time, ioremap() only works if a static I/O mapping has already been put in place. If it's not the case, it tries to do a memory allocation with kmalloc() which is not possible so early at this stage of the initialization. Since we want to get rid of the static I/O mapping, we cannot initialize the L2 cache driver and the mvebu-mbus driver so early. So, we move their initialization to the ->init_time() level, which is slightly later (so ioremap() works properly), but sufficiently early to be before the call of the ->smp_prepare_cpus() hook, which creates an address decoding window for the BootROM, which requires the mvebu-mbus driver to be properly initialized. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-mvebu/coherency.c')
0 files changed, 0 insertions, 0 deletions