diff mbox

[v2] dmaengine: Kconfig: Extend the dependency for MXS_DMA

Message ID 1496789595-12284-1-git-send-email-festevam@gmail.com (mailing list archive)
State Superseded
Headers show

Commit Message

Fabio Estevam June 6, 2017, 10:53 p.m. UTC
From: Fabio Estevam <fabio.estevam@nxp.com>

Currently it is not possible to select the mxs dma driver when only
mx6sx or mx7 are selected.

Extend the dependency to allow the mxs dma driver to be built whenever
ARCH_MXS or ARCH_MXC is selected.

This has the benefit to avoid having to add new entries in the
MXS_DMA Kconfig everytime a new i.MX SoC shows up and it also makes
it consistent with the other i.MX DMA engines, such as IMX_DMA and
IMX_SDMA.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
Changes since v1:
- Instead of adding new entries for mx6sx and mx7d, make the 
dependency wider

 drivers/dma/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefan Agner June 8, 2017, 10:38 p.m. UTC | #1
On 2017-06-06 15:53, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> Currently it is not possible to select the mxs dma driver when only
> mx6sx or mx7 are selected.
> 
> Extend the dependency to allow the mxs dma driver to be built whenever
> ARCH_MXS or ARCH_MXC is selected.
> 
> This has the benefit to avoid having to add new entries in the
> MXS_DMA Kconfig everytime a new i.MX SoC shows up and it also makes
> it consistent with the other i.MX DMA engines, such as IMX_DMA and
> IMX_SDMA.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>

Since you are at it, also add .. || COMPILE_TEST.

But otherwise

Acked-by: Stefan Agner <stefan@agner.ch>

--
Stefan

> ---
> Changes since v1:
> - Instead of adding new entries for mx6sx and mx7d, make the 
> dependency wider
> 
>  drivers/dma/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
> index fd72469..45cd332 100644
> --- a/drivers/dma/Kconfig
> +++ b/drivers/dma/Kconfig
> @@ -371,7 +371,7 @@ config MV_XOR_V2
>  
>  config MXS_DMA
>  	bool "MXS DMA support"
> -	depends on SOC_IMX23 || SOC_IMX28 || SOC_IMX6Q || SOC_IMX6UL
> +	depends on ARCH_MXS || ARCH_MXC
>  	select STMP_DEVICE
>  	select DMA_ENGINE
>  	help
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
index fd72469..45cd332 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -371,7 +371,7 @@  config MV_XOR_V2
 
 config MXS_DMA
 	bool "MXS DMA support"
-	depends on SOC_IMX23 || SOC_IMX28 || SOC_IMX6Q || SOC_IMX6UL
+	depends on ARCH_MXS || ARCH_MXC
 	select STMP_DEVICE
 	select DMA_ENGINE
 	help