linux/drivers/dma/sh
Thomas Andreatta e12a50e362 dmaengine: sh: setup_xref error handling
[ Upstream commit d9a3e99294 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-12-07 06:09:20 +09:00
..
Kconfig dmaengine: sh: Add DMAC driver for RZ/G2L SoC 2021-08-29 19:14:19 +05:30
Makefile dmaengine: sh: Add DMAC driver for RZ/G2L SoC 2021-08-29 19:14:19 +05:30
rcar-dmac.c dmaengine: sh: rcar-dmac: Check for error num after dma_set_max_seg_size 2022-02-23 12:03:21 +01:00
rz-dmac.c dmaengine: sh: rz-dmac: Fix destination and source data size setting 2023-09-19 12:23:01 +02:00
shdma-arm.h dmaengine: use SPDX identifier for Renesas drivers 2018-08-29 21:58:49 +05:30
shdma-base.c dmaengine: sh: setup_xref error handling 2025-12-07 06:09:20 +09:00
shdma.h dmaengine: shdma: increase size of 'dev_id' 2024-03-01 13:21:43 +01:00
shdmac.c dmaengine: sh: setup_xref error handling 2025-12-07 06:09:20 +09:00
usb-dmac.c dmaengine: usb-dmac: make usb_dmac_get_current_residue unsigned 2021-08-02 12:16:47 +05:30