From: Thomas Petazzoni Date: Mon, 29 Jul 2013 15:42:14 +0000 (+0200) Subject: mv_xor: support big endian systems using descriptor swap feature X-Git-Tag: v3.12-rc1~74^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e03bc654f85604bcd5304debb597f398d1d03778;p=pandora-kernel.git mv_xor: support big endian systems using descriptor swap feature The mv_xor driver had never been used in a big-endian context, and therefore was not using the hardware features to support such an execution environment. The hardware provides a "descriptor swap" bit that automatically swaps the bytes of the DMA descriptors, within blocks of 8 bytes. This requires a different DMA descriptor layout on big-endian systems, as well as enabling this "descriptor swap" bit. This mechanism is exactly identical to the one already used in the mv643xx_eth network driver and the mvneta network driver. Signed-off-by: Thomas Petazzoni Signed-off-by: Dan Williams --- Reading git-diff-tree failed