[PATCH v2] ARM: OMAP4/highbank: Flush L2 cache before disabling

2013-11-27 Thread Taras Kondratiuk
Kexec disables outer cache before jumping to reboot code, but it doesn't flush it explicitly. Flush is done implicitly inside of l2x0_disable(). But some SoC's override default .disable handler and don't flush cache. This may lead to a corrupted memory during Kexec reboot on these platforms. This

[PATCH v2] ARM: OMAP4/highbank: Flush L2 cache before disabling

2013-11-27 Thread Taras Kondratiuk
Kexec disables outer cache before jumping to reboot code, but it doesn't flush it explicitly. Flush is done implicitly inside of l2x0_disable(). But some SoC's override default .disable handler and don't flush cache. This may lead to a corrupted memory during Kexec reboot on these platforms. This