@@ -264,10 +264,10 @@ struct at_dma_chan {
};
#define channel_readl(atchan, name) \
- __raw_readl((atchan)->ch_regs + ATC_##name##_OFFSET)
+ readl_relaxed((atchan)->ch_regs + ATC_##name##_OFFSET)
#define channel_writel(atchan, name, val) \
- __raw_writel((val), (atchan)->ch_regs + ATC_##name##_OFFSET)
+ writel_relaxed((val), (atchan)->ch_regs + ATC_##name##_OFFSET)
static inline struct at_dma_chan *to_at_dma_chan(struct dma_chan *dchan)
{
@@ -332,9 +332,9 @@ struct at_dma {
};
#define dma_readl(atdma, name) \
- __raw_readl((atdma)->regs + AT_DMA_##name)
+ readl_relaxed((atdma)->regs + AT_DMA_##name)
#define dma_writel(atdma, name, val) \
- __raw_writel((val), (atdma)->regs + AT_DMA_##name)
+ writel_relaxed((val), (atdma)->regs + AT_DMA_##name)
static inline struct at_dma *to_at_dma(struct dma_device *ddev)
{
Change the at_hdmac driver to use readl_relaxed and writel_relaxed to ensure it is properly taking into account the CPU versius the bus endian-ness. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> -- CC: Nicolas Ferre <nicolas.ferre@atmel.com> CC: Dan Williams <dan.j.williams@intel.com> CC: Vinod Koul <vinod.koul@intel.com> CC: linux-arm-kernel@lists.infradead.org CC: dmaengine@vger.kernel.org --- drivers/dma/at_hdmac_regs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)