[PATCH] ARM: l2c: enforce use of cache-level property

Linus Walleij linus.walleij at linaro.org
Mon Mar 9 07:42:14 PDT 2015


On Tue, Mar 3, 2015 at 7:55 PM, Florian Fainelli <f.fainelli at gmail.com> wrote:

> Make sure that we can read the "cache-level" property from the L2 cache
> controller node, and ensure its value is 2.
>
> Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>

(...)
> +       if (of_property_read_u32(np, "cache-level", &cache_level))
> +               pr_err("L2C: device tree omits to specify cache-level\n");
> +

Is that really an error? Does ePAPR specify that this must always be
present or what?

> +       if (cache_level != 2)
> +               pr_err("L2C: device tree specifies invalid cache level\n");

This is an error however.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list