]> Gentwo Git Trees - linux/.git/commit
dmaengine: sh: setup_xref error handling
authorThomas Andreatta <thomasandreatta2000@gmail.com>
Wed, 27 Aug 2025 15:24:43 +0000 (17:24 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 2 Sep 2025 06:59:36 +0000 (12:29 +0530)
commitd9a3e9929452780df16f3414f0d59b5f69d058cf
tree53e61356f7731960a8dc7f9ba43532aa692e9a06
parent981d4978ff09d13690739663b3cd71ad8bb5ad94
dmaengine: sh: setup_xref error handling

This patch modifies the type of setup_xref from void to int and handles
errors since the function can fail.

`setup_xref` now returns the (eventual) error from
`dmae_set_dmars`|`dmae_set_chcr`, while `shdma_tx_submit` handles the
result, removing the chunks from the queue and marking PM as idle in
case of an error.

Signed-off-by: Thomas Andreatta <thomas.andreatta2000@gmail.com>
Link: https://lore.kernel.org/r/20250827152442.90962-1-thomas.andreatta2000@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/shdma-base.c
drivers/dma/sh/shdmac.c
include/linux/shdma-base.h