spi: cadence-quadspi: Add missing check for dma_set_mask
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Tue, 6 Jun 2023 09:38:59 +0000 (17:38 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jun 2023 12:52:41 +0000 (13:52 +0100)
commit947c70a213769f60e9d5aca2bc88b50a1cfaf5a6
treed98c0ba943b55567f9d7e7448b0abcbed5d3d6fa
parent0c331fd1dccfba657129380ee084b95c1cedfbef
spi: cadence-quadspi: Add missing check for dma_set_mask

Add check for dma_set_mask() and return the error if it fails.

Fixes: 1a6f854f7daa ("spi: cadence-quadspi: Add Xilinx Versal external DMA support")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20230606093859.27818-1-jiasheng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c