]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dmaengine: at_xdmac: prefer usage of readl/writel_relaxed
authorLudovic Desroches <ludovic.desroches@atmel.com>
Thu, 13 Nov 2014 10:52:39 +0000 (11:52 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 17 Nov 2014 08:37:20 +0000 (14:07 +0530)
_relaxed version of readl and writel are not implemented on all
architecture so COMPILE_TEST has to be removed in order to not cause
some build failures.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/Kconfig
drivers/dma/at_xdmac.c

index 607271a999a93cfac3be5a2b4f1a424abb71b2ec..8b6fb0f110076926e9e05c5b8fad475059568990 100644 (file)
@@ -109,7 +109,7 @@ config AT_HDMAC
 
 config AT_XDMAC
        tristate "Atmel XDMA support"
-       depends on (ARCH_AT91 || COMPILE_TEST)
+       depends on ARCH_AT91
        select DMA_ENGINE
        help
          Support the Atmel XDMA controller.
index 89c43be20a380ecf2d5010ae6d3982f2cf3cf3dd..1f53d92f63d352a9f9d6274e887ea51bd1df4b5f 100644 (file)
@@ -248,12 +248,12 @@ static inline void __iomem *at_xdmac_chan_reg_base(struct at_xdmac *atxdmac, uns
        return atxdmac->regs + (AT_XDMAC_CHAN_REG_BASE + chan_nb * 0x40);
 }
 
-#define at_xdmac_read(atxdmac, reg) readl((atxdmac)->regs + (reg))
+#define at_xdmac_read(atxdmac, reg) readl_relaxed((atxdmac)->regs + (reg))
 #define at_xdmac_write(atxdmac, reg, value) \
-       writel((value), (atxdmac)->regs + (reg))
+       writel_relaxed((value), (atxdmac)->regs + (reg))
 
-#define at_xdmac_chan_read(atchan, reg) readl((atchan)->ch_regs + (reg))
-#define at_xdmac_chan_write(atchan, reg, value) writel((value), (atchan)->ch_regs + (reg))
+#define at_xdmac_chan_read(atchan, reg) readl_relaxed((atchan)->ch_regs + (reg))
+#define at_xdmac_chan_write(atchan, reg, value) writel_relaxed((value), (atchan)->ch_regs + (reg))
 
 static inline struct at_xdmac_chan *to_at_xdmac_chan(struct dma_chan *dchan)
 {