linux/drivers/dma/sh
Wolfram Sang 6e9c5c8ef2 dmaengine: sh: rz-dmac: handle configs where one address is zero
Configs like the ones coming from the MMC subsystem will have either
'src' or 'dst' zeroed, resulting in an unknown bus width. This will bail
out on the RZ DMA driver because of the sanity check for a valid bus
width. Reorder the code, so that the check will only be applied when the
corresponding address is non-zero.

Fixes: 5000d37042 ("dmaengine: sh: Add DMAC driver for RZ/G2L SoC")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Biju Das <biju.das.jz@bp.renesas.com>
Tested-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://lore.kernel.org/r/20241007110200.43166-6-wsa+renesas@sang-engineering.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2024-10-14 23:10:58 +05:30
..
Kconfig dmaengine: sh: Kconfig: Make RZ_DMAC depend on ARCH_RZG2L 2022-04-08 23:22:00 +05:30
Makefile dmaengine: sh: Add DMAC driver for RZ/G2L SoC 2021-08-29 19:14:19 +05:30
rcar-dmac.c dma-mapping: don't return errors from dma_set_max_seg_size 2024-08-29 07:22:49 +03:00
rz-dmac.c dmaengine: sh: rz-dmac: handle configs where one address is zero 2024-10-14 23:10:58 +05:30
shdma-base.c dmaengine: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:51 -07:00
shdma.h dmaengine: shdma: increase size of 'dev_id' 2024-01-19 18:12:10 +05:30
shdmac.c dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
usb-dmac.c dmaengine: usb-dmac: Avoid format-overflow warning 2024-01-19 17:41:03 +05:30