]> git.karo-electronics.de Git - linux-beck.git/commitdiff
net: ethernet: ti: cpts: switch to readl/writel_relaxed()
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 7 Dec 2016 00:00:33 +0000 (18:00 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Dec 2016 16:13:45 +0000 (11:13 -0500)
Switch to readl/writel_relaxed() APIs, because this is recommended
API and the CPTS IP is reused on Keystone 2 SoCs
where LE/BE modes are supported.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpts.c

index 85a55b4ff8c0731a1952068e968715b256afdb91..a42c44910af1af804d27a3966f9ea9a9c4201b79 100644 (file)
@@ -33,8 +33,8 @@
 
 #ifdef CONFIG_TI_CPTS
 
-#define cpts_read32(c, r)      __raw_readl(&c->reg->r)
-#define cpts_write32(c, v, r)  __raw_writel(v, &c->reg->r)
+#define cpts_read32(c, r)      readl_relaxed(&c->reg->r)
+#define cpts_write32(c, v, r)  writel_relaxed(v, &c->reg->r)
 
 static int event_expired(struct cpts_event *event)
 {