i2c: designware: use {readl|writel}_relaxed instead of readl/writel
authorJisheng Zhang <jszhang@marvell.com>
Thu, 11 Dec 2014 06:26:41 +0000 (14:26 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 23 Jan 2015 16:09:15 +0000 (17:09 +0100)
commit67105c5a94fbff6cc3a47e3ba65bacb3c706c5e6
tree2138482025f36b3834f4ab244260125ae470ae11
parentc99d49a964c700ad0bab5c54e2f559fce0487fad
i2c: designware: use {readl|writel}_relaxed instead of readl/writel

readl/writel is too expensive especially on Cortex A9 w/ outer L2 cache.
This introduces i2c read/write delays on Marvell BG2/BG2Q SoCs when there
are heavy L2 cache maintenance operations at the same time.

The driver does not perform DMA, so it's safe to use the relaxed version.
From another side, the relaxed io accessor macros are available on all
architectures now, so we can use the relaxed versions instead.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.c