ARM: 8258/1: l2c: use l2c_write_sec() for restoring latency and filter regs
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 8 Jan 2015 06:49:41 +0000 (07:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 16 Jan 2015 14:35:26 +0000 (14:35 +0000)
commit00218241aa0846e75d31b1dbadb5f8a76be1cc97
tree98c70e0fe37d7f06e8d68ef47893004c271c4938
parent944e9df1d4f71f946aa044abc00726346e3c597c
ARM: 8258/1: l2c: use l2c_write_sec() for restoring latency and filter regs

All four register for latency and filter settings cannot be written in
non-secure mode and they should go through l2c_write_sec(). More on this
can be found in CoreLink Level 2 Cache Controller L2C-310 Technical
Reference Manual, 3.2. Register summary, table 3.1. This have been checked
the TRM for r3p3, but it should be uniform for all revisions.

Reported-by: Nishanth Menon <nm@ti.com>
Suggested-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Nishanth Menon <nm@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-l2x0.c