dmaengine: sprd: add dma mask interface in probe
authorKaiwei Liu <kaiwei.liu@unisoc.com>
Tue, 19 Sep 2023 07:38:01 +0000 (15:38 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 2 Oct 2023 15:58:33 +0000 (21:28 +0530)
commit9c6e02eab10a8a7628cac2cd9b8db6806acc63ca
tree6fb200a88b46c2d228ae0af60c78d636ace18fe8
parenta04bbeaa37d8789de5592506fa776256e784b69c
dmaengine: sprd: add dma mask interface in probe

In the probe of DMA, the default addressing range is 32 bits,
while the actual DMA hardware addressing range used is 36 bits.
So add dma_set_mask_and_coherent function to match DMA
addressing range.

Signed-off-by: Kaiwei Liu <kaiwei.liu@unisoc.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230919073801.25054-1-kaiwei.liu@unisoc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sprd-dma.c