]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dmaengine: sh: rz-dmac: add r7s72100 support
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 7 Oct 2024 11:02:03 +0000 (13:02 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 14 Oct 2024 17:41:33 +0000 (23:11 +0530)
This SoC needs to make getting resets optional. Descriptions are
reworded to be more generic.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20241007110200.43166-8-wsa+renesas@sang-engineering.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/Kconfig
drivers/dma/sh/rz-dmac.c

index c0b2997ab7fd93c0680cb6e1dbf0afd906d04f23..6ea5a880b433938bb442b8cfce20c0ee42f1491b 100644 (file)
@@ -49,10 +49,10 @@ config RENESAS_USB_DMAC
          SoCs.
 
 config RZ_DMAC
-       tristate "Renesas RZ/{G2L,V2L} DMA Controller"
-       depends on ARCH_RZG2L || COMPILE_TEST
+       tristate "Renesas RZ DMA Controller"
+       depends on ARCH_R7S72100 || ARCH_RZG2L || COMPILE_TEST
        select RENESAS_DMA
        select DMA_VIRTUAL_CHANNELS
        help
-         This driver supports the general purpose DMA controller found in the
-         Renesas RZ/{G2L,V2L} SoC variants.
+         This driver supports the general purpose DMA controller typically
+         found in the Renesas RZ SoC variants.
index 811389fc9cb82358463309c7e8bc21bba2b58815..03f3f99f0f4a6e9ad01280467bd9e6f4567927a7 100644 (file)
@@ -893,7 +893,7 @@ static int rz_dmac_probe(struct platform_device *pdev)
        /* Initialize the channels. */
        INIT_LIST_HEAD(&dmac->engine.channels);
 
-       dmac->rstc = devm_reset_control_array_get_exclusive(&pdev->dev);
+       dmac->rstc = devm_reset_control_array_get_optional_exclusive(&pdev->dev);
        if (IS_ERR(dmac->rstc))
                return dev_err_probe(&pdev->dev, PTR_ERR(dmac->rstc),
                                     "failed to get resets\n");