[v1,1/2] gpu: host1x: Allow COMPILE_TEST to build host1x driver on all platforms

Message ID 1601434958-29305-2-git-send-email-skomatineni@nvidia.com (mailing list archive)
State Obsoleted, archived
Delegated to: Hans Verkuil
Headers
Series Allow building Tegra video driver with COMPILE_TEST |

Commit Message

Sowjanya Komatineni Sept. 30, 2020, 3:02 a.m. UTC
  Tegra V4L2 driver has dependency on this host1x driver and currently
host1x driver is allowed to build with COMPILE_TEST only on ARM and
this also limits Tegra V4L2 driver building.

So, this patch allows building host1x driver with COMPILE_TEST on
all platforms.

Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
---
 drivers/gpu/host1x/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Hans Verkuil Oct. 30, 2020, 11:02 a.m. UTC | #1
Thierry,

On 30/09/2020 05:02, Sowjanya Komatineni wrote:
> Tegra V4L2 driver has dependency on this host1x driver and currently
> host1x driver is allowed to build with COMPILE_TEST only on ARM and
> this also limits Tegra V4L2 driver building.
> 
> So, this patch allows building host1x driver with COMPILE_TEST on
> all platforms.

Can you Ack/Review this so I can merge both patches for v5.11?
If you prefer to merge this on your side, then I can Ack patch 2/2
as well, but I think it makes more sense if this goes through the
media subsystem.

Regards,

	Hans

> 
> Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
> ---
>  drivers/gpu/host1x/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/host1x/Kconfig b/drivers/gpu/host1x/Kconfig
> index 6dab94a..977a0ac 100644
> --- a/drivers/gpu/host1x/Kconfig
> +++ b/drivers/gpu/host1x/Kconfig
> @@ -1,7 +1,7 @@
>  # SPDX-License-Identifier: GPL-2.0-only
>  config TEGRA_HOST1X
>  	tristate "NVIDIA Tegra host1x driver"
> -	depends on ARCH_TEGRA || (ARM && COMPILE_TEST)
> +	depends on ARCH_TEGRA || COMPILE_TEST
>  	select IOMMU_IOVA
>  	help
>  	  Driver for the NVIDIA Tegra host1x hardware.
>
  

Patch

diff --git a/drivers/gpu/host1x/Kconfig b/drivers/gpu/host1x/Kconfig
index 6dab94a..977a0ac 100644
--- a/drivers/gpu/host1x/Kconfig
+++ b/drivers/gpu/host1x/Kconfig
@@ -1,7 +1,7 @@ 
 # SPDX-License-Identifier: GPL-2.0-only
 config TEGRA_HOST1X
 	tristate "NVIDIA Tegra host1x driver"
-	depends on ARCH_TEGRA || (ARM && COMPILE_TEST)
+	depends on ARCH_TEGRA || COMPILE_TEST
 	select IOMMU_IOVA
 	help
 	  Driver for the NVIDIA Tegra host1x hardware.