]> git.baikalelectronics.ru Git - kernel.git/commit
bus: omap_l3_noc: switch over to relaxed variants of readl/writel
authorNishanth Menon <nm@ti.com>
Fri, 11 Apr 2014 16:21:47 +0000 (11:21 -0500)
committerNishanth Menon <nm@ti.com>
Mon, 5 May 2014 19:33:01 +0000 (14:33 -0500)
commit4a2cdcc6610652df464883997fa95ed4b4be81e1
tree0fe14e60cea7421c84523de400ce17ba5de11bdc
parent342d074ef51d8408f1404d01fb5e59de3f75babf
bus: omap_l3_noc: switch over to relaxed variants of readl/writel

Currently we use __raw_readl and writel in this driver. Considering
there is no specific need for a memory barrier, replacing writel
with endian-neutral writel_relaxed and replacing __raw_readls with
the corresponding endian-neutral readl_relaxed allows us to have a
standard set of register operations for the driver.

While at it, simplify address computation using variables for
register.

Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Darren Etheridge <detheridge@ti.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
drivers/bus/omap_l3_noc.c