dmaengine: pl330: fix issues with big-endian armv7
authorBen Dooks <ben.dooks@codethink.co.uk>
Mon, 16 Mar 2015 11:52:43 +0000 (11:52 +0000)
committerVinod Koul <vinod.koul@intel.com>
Wed, 18 Mar 2015 17:11:48 +0000 (22:41 +0530)
commit3a2307f72e684199a27ae9d8e7cfd98e8b05c8db
tree901fdc25402dec229efbd9658632297f36cc90a4
parent57c0342239b028db54741209a051a4d5f7c857e7
dmaengine: pl330: fix issues with big-endian armv7

When running Xilinx Zynq in big-endian mode the pl330 driver
fails to pass the dmatest suite. To fix this, ensure all non
byte values are written in little endian.

As a note, the documentation does not mention if it will do
big-endian descriptor fetches, only that it will swap the
data in flight.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
--
Vinod Koul <vinod.koul@intel.com>
Dan Williams <dan.j.williams@intel.com>
DMA List <dmaengine@vger.kernel.org>
Maxime Ripard <maxime.ripard@free-electrons.com>
Jassi Brar <jassisinghbrar@gmail.com>
Liviu Dudau <Liviu.Dudau@arm.com>
Linux ARM Kernel <linux-arm-kernel@lists.infradead.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c