When getting the pl330 driver to work on an Xilinx Zynq working in big-endian the first patch is needed to get the dmatest suite to pass. The second and third patches are warning fixes from sparse, of which the third may not be the complete solution. It works for me.