diff mbox series

[3/3] dmaengine: sh: rz-dmac: add r7s72100 support

Message ID 20240930145955.4248-4-wsa+renesas@sang-engineering.com (mailing list archive)
State Superseded
Headers show
Series dmaengine: sh: rz-dmac: add r7s72100 support | expand

Commit Message

Wolfram Sang Sept. 30, 2024, 2:59 p.m. UTC
Update descriptions and make getting resets optional.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/dma/sh/Kconfig   | 6 +++---
 drivers/dma/sh/rz-dmac.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

Comments

Philipp Zabel Sept. 30, 2024, 3:12 p.m. UTC | #1
On Mo, 2024-09-30 at 16:59 +0200, Wolfram Sang wrote:
> Update descriptions and make getting resets optional.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
>  drivers/dma/sh/Kconfig   | 6 +++---
>  drivers/dma/sh/rz-dmac.c | 2 +-
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/dma/sh/Kconfig b/drivers/dma/sh/Kconfig
> index c0b2997ab7fd..2b2e8ca257f5 100644
> --- a/drivers/dma/sh/Kconfig
> +++ b/drivers/dma/sh/Kconfig
> @@ -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/{A1,G2L,V2L} 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.
> +	  Renesas RZ/{A1,G2L,V2L} SoC variants.
> diff --git a/drivers/dma/sh/rz-dmac.c b/drivers/dma/sh/rz-dmac.c
> index 811389fc9cb8..03f3f99f0f4a 100644
> --- a/drivers/dma/sh/rz-dmac.c
> +++ b/drivers/dma/sh/rz-dmac.c
> @@ -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");

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>

regards
Philipp
diff mbox series

Patch

diff --git a/drivers/dma/sh/Kconfig b/drivers/dma/sh/Kconfig
index c0b2997ab7fd..2b2e8ca257f5 100644
--- a/drivers/dma/sh/Kconfig
+++ b/drivers/dma/sh/Kconfig
@@ -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/{A1,G2L,V2L} 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.
+	  Renesas RZ/{A1,G2L,V2L} SoC variants.
diff --git a/drivers/dma/sh/rz-dmac.c b/drivers/dma/sh/rz-dmac.c
index 811389fc9cb8..03f3f99f0f4a 100644
--- a/drivers/dma/sh/rz-dmac.c
+++ b/drivers/dma/sh/rz-dmac.c
@@ -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");