All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: tegra186: Allow building on Tegra194-only configurations
@ 2019-12-13 13:00 Thierry Reding
  2019-12-16 10:17 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Thierry Reding @ 2019-12-13 13:00 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Bartosz Golaszewski, Jon Hunter, linux-gpio, linux-tegra

From: Thierry Reding <treding@nvidia.com>

The driver is compatible with both Tegra186 and Tegra194, but currently
it cannot be selected if only Tegra194 support is enabled. Allow builds
with only Tegra194 support enabled to select this driver.

While at it, select this driver by default on Tegra194 builds because it
is an essential part of the system.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
Note: One other option would be to simplify this and depend only on
ARCH_TEGRA, like we do for GPIO_TEGRA. This has the slighty disadvantage
that it will be built by default on all Tegra platforms, so it will end
up unused in many cases.

For now, I decided to just add the Tegra194 SoC configuration to the
conditionals, but it might be worth reconsidering the above-mentioned
simplification if this driver is applicable to any other future chips.

Thierry

 drivers/gpio/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 8adffd42f8cb..6ab25fe1c423 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -553,8 +553,8 @@ config GPIO_TEGRA
 
 config GPIO_TEGRA186
 	tristate "NVIDIA Tegra186 GPIO support"
-	default ARCH_TEGRA_186_SOC
-	depends on ARCH_TEGRA_186_SOC || COMPILE_TEST
+	default ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC
+	depends on ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC || COMPILE_TEST
 	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
 	select IRQ_DOMAIN_HIERARCHY
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpio: tegra186: Allow building on Tegra194-only configurations
  2019-12-13 13:00 [PATCH] gpio: tegra186: Allow building on Tegra194-only configurations Thierry Reding
@ 2019-12-16 10:17 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2019-12-16 10:17 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Bartosz Golaszewski, Jon Hunter, open list:GPIO SUBSYSTEM, linux-tegra

On Fri, Dec 13, 2019 at 2:00 PM Thierry Reding <thierry.reding@gmail.com> wrote:

> From: Thierry Reding <treding@nvidia.com>
>
> The driver is compatible with both Tegra186 and Tegra194, but currently
> it cannot be selected if only Tegra194 support is enabled. Allow builds
> with only Tegra194 support enabled to select this driver.
>
> While at it, select this driver by default on Tegra194 builds because it
> is an essential part of the system.
>
> Signed-off-by: Thierry Reding <treding@nvidia.com>

Patch applied for fixes, it seems like it should be -rc material.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-16 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-13 13:00 [PATCH] gpio: tegra186: Allow building on Tegra194-only configurations Thierry Reding
2019-12-16 10:17 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.