Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac7b06ba authored by Hanna Hawa's avatar Hanna Hawa Committed by Vinod Koul
Browse files

dmaengine: mv_xor_v2: use {lower,upper}_32_bits to configure HW descriptor address



>> drivers/dma/mv_xor_v2.c:647:36: sparse: constant 0xFFFF00000000 is so big it is long
   include/linux/device.h:678:13: sparse: undefined identifier '__builtin_mul_overflow'
   include/linux/device.h:678:13: sparse: call with no type!

Use lower_32_bits and upper_32_bits to set the hw_desq address, instead of
using constant.

Signed-off-by: default avatarHanna Hawa <hannah@marvell.com>
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 31d5e6b7
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -642,9 +642,9 @@ static int mv_xor_v2_descq_init(struct mv_xor_v2_device *xor_dev)
	       xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_SIZE_OFF);
	       xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_SIZE_OFF);


	/* write the DESQ address to the DMA enngine*/
	/* write the DESQ address to the DMA enngine*/
	writel(xor_dev->hw_desq & 0xFFFFFFFF,
	writel(lower_32_bits(xor_dev->hw_desq),
	       xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_BALR_OFF);
	       xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_BALR_OFF);
	writel((xor_dev->hw_desq & 0xFFFF00000000) >> 32,
	writel(upper_32_bits(xor_dev->hw_desq),
	       xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_BAHR_OFF);
	       xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_BAHR_OFF);


	/*
	/*