dmaengine: pl330: Clear callback_result for re-used descs
authorDaniel Scally <dan.scally@ideasonboard.com>
Thu, 18 Jan 2024 11:29:59 +0000 (11:29 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 22 Jan 2024 10:34:13 +0000 (16:04 +0530)
commit4728e3fe2ff1b02b84ddab876d8af5eeb74eee18
tree77a3799aa593b4412cf6307d27412789845a18eb
parent6613476e225e090cc9aad49be7fa504e290dd33d
dmaengine: pl330: Clear callback_result for re-used descs

The pl330 driver re-uses DMA descriptors rather than reallocating
them each time. At present, upon re-use the .callback member is
cleared, but .callback result is not. This causes problems where a
consuming driver sets the .callback_result for some submissions but
not for others, as eventually the function is invoked erronously.

Clear .callback_result along with .callback

Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20240118112959.1027471-1-dan.scally@ideasonboard.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/pl330.c