[PATCH 3/3] ARM: imx: mm-imx3: Free l2x0_base

Fabio Estevam festevam at gmail.com
Wed Jul 10 13:29:25 EDT 2013


On Wed, Jul 10, 2013 at 1:53 PM, Fabio Estevam <festevam at gmail.com> wrote:
> Hi Sascha,
>
> On Tue, Jul 9, 2013 at 3:20 PM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
>
>> l2x0_base is passed to l2x0_init which uses it for the outer cache
>> maintenance operations. I wonder this doesn't crash your kernel.
>
> l2x0_init() is called from arch/arm/mach-imx/mm-imx3.c first and then
> from arch/arm/mm/cache-l2x0.c
> later.
>
> Why do we need to call it twice?

Understood now, actually l2x0_init() is only called in
arch/arm/mm/cache-l2x0.c for the dt case.

So all is fine with the current code.



More information about the linux-arm-kernel mailing list