Re: [PATCHv2] dmaengine: fsl-edma: fixup reg offset and hw S/G support in big-endian model

2014-09-24 Thread Russell King - ARM Linux
On Wed, Sep 24, 2014 at 03:12:07PM +0800, Jingchang Lu wrote: > static void edma_writeb(struct fsl_edma_engine *edma, u8 val, void __iomem > *addr) > { > - iowrite8(val, addr); > + /* swap the reg offset for these in big-endian mode */ > + if (edma->big_endian) > + iowrit

[PATCHv2] dmaengine: fsl-edma: fixup reg offset and hw S/G support in big-endian model

2014-09-24 Thread Jingchang Lu
The offset of all 8-/16-bit register in big-endian eDMA model are swapped in a 32-bit size opposite those in the little-endian model. The hardware Scatter/Gather requires the subsequent TCDs in memory to be auto loaded should retain little endian independent of the register endian model, the dma e