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: 5000d37042a6 ("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
..
2024-09-23 14:08:08 -07:00
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-23 14:08:08 -07:00
2024-09-23 14:08:08 -07:00
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-26 12:00:25 -07:00
2024-09-02 13:56:01 +05:30
2024-09-23 14:08:08 -07:00
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30
2024-09-02 13:56:01 +05:30