]> asedeno.scripts.mit.edu Git - linux.git/commit
dmaengine: dw: fix byte order of hw descriptor fields
authorMans Rullgard <mans@mansr.com>
Fri, 18 Mar 2016 14:24:43 +0000 (16:24 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 13 Apr 2016 16:06:10 +0000 (21:36 +0530)
commitdf1f3a2305d72cbf470758999785f08bcd642d5d
treee8af88f6543cad5d375fa7b8eb8058a269dae306
parentbb3450ad0ed618fda84fbd2e28065bd7791fd7f9
dmaengine: dw: fix byte order of hw descriptor fields

If the DMA controller uses a different byte order than the host CPU,
the hardware linked list descriptor fields need to be byte-swapped.

This patch makes the driver write these fields using the same byte
order it uses for mmio accesses to the DMA engine. I do not know
if this is guaranteed to always be correct.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw/core.c
drivers/dma/dw/regs.h