]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: l2c: highbank: remove explicit SMI call in L2 cache initialisation
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Mar 2014 22:42:48 +0000 (22:42 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 22 May 2014 15:41:02 +0000 (16:41 +0100)
commit534628a8a41bf6f1caed5c2823e3c1693559e8db
tree52eebe32645af2b5e90b7818d905c9ba033b0747
parent7bcb4493e382896fbf55092cd4ec22075f509167
ARM: l2c: highbank: remove explicit SMI call in L2 cache initialisation

Now that highbank uses the write_sec method, we don't need to enable
the L2 cache in SoC specific code; this can be done via the normal
mechanisms in the L2C code.

Checking with Rob Herring:
> > Can we kill the "highbank_smc1(0x102, 0x1);" here? That means
> > l2x0_of_init() will see the L2 cache disabled, and will try to enable
> > it via the write_sec hook, so it should do the right thing.
>
> Yes, that should work. You should be able to just call l2x0_of_init
> unconditionally. The condition was really to just avoid the smc on
> Midway which does get handled on h/w, but not if running virtualized.

So also drop the DT check too.  I'm leaving the config check in place
so that if L2 is disabled, the write_sec hook can be optimised away.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-highbank/highbank.c