Thread (23 messages) 23 messages, 5 authors, 2015-01-07

[PATCH v11 3/9] ARM: l2c: Refactor the driver to use commit-like interface

From: tony@atomide.com (Tony Lindgren)
Date: 2015-01-05 16:27:27
Also in: linux-omap, linux-samsung-soc, lkml

* Marek Szyprowski [off-list ref] [150105 04:22]:
From: Tomasz Figa <redacted>

Certain implementations of secure hypervisors (namely the one found on
Samsung Exynos-based boards) do not provide access to individual L2C
registers. This makes the .write_sec()-based interface insufficient and
provoking ugly hacks.

This patch is first step to make the driver not rely on availability of
writes to individual registers. This is achieved by refactoring the
driver to use a commit-like operation scheme: all register values are
prepared first and stored in an instance of l2x0_regs struct and then a
single callback is responsible to flush those values to the hardware.

Signed-off-by: Tomasz Figa <redacted>
[mszyprow: rebased onto 'ARM: l2c: use l2c_write_sec() for restoring
 latency and filter regs' patch]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
This version seems to boot just fine on am437x here:

Acked-by: Tony Lindgren <tony@atomide.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help