public inbox for linux-gpio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] Do not enable the v1 uAPI by default
@ 2026-03-13 23:07 Linus Walleij
  2026-03-14  2:16 ` Kent Gibson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Linus Walleij @ 2026-03-13 23:07 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Kent Gibson, Andy Shevchenko
  Cc: linux-gpio, linux-kernel, Linus Walleij

It's been five years since we introduced the v2 uAPI and
the major consumer libgpiod is at v2.2.3.

Let's discourage the old ABI.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Changes in v2:
- Rebase on v7.0-rc1
- Do not explicitly state "default n", n is the default.
- Drop RFC, I waited like two years+
- Link to v1: https://lore.kernel.org/r/20231104-no-y-uapi1-default-v1-1-f60d318b6fbe@linaro.org
---
 drivers/gpio/Kconfig | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index b45fb799e36c..d574e5fb851d 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -95,7 +95,6 @@ config GPIO_CDEV
 
 config GPIO_CDEV_V1
 	bool "Support GPIO ABI Version 1"
-	default y
 	depends on GPIO_CDEV
 	help
 	  Say Y here to support version 1 of the GPIO CDEV ABI.
@@ -103,8 +102,6 @@ config GPIO_CDEV_V1
 	  This ABI version is deprecated.
 	  Please use the latest ABI for new developments.
 
-	  If unsure, say Y.
-
 config GPIO_GENERIC
 	depends on HAS_IOMEM # Only for IOMEM drivers
 	tristate

---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20231103-no-y-uapi1-default-4204e86c04a3

Best regards,
-- 
Linus Walleij <linusw@kernel.org>


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

* Re: [PATCH v2] Do not enable the v1 uAPI by default
  2026-03-13 23:07 [PATCH v2] Do not enable the v1 uAPI by default Linus Walleij
@ 2026-03-14  2:16 ` Kent Gibson
  2026-03-16  9:11 ` Bartosz Golaszewski
  2026-03-16  9:31 ` Andy Shevchenko
  2 siblings, 0 replies; 5+ messages in thread
From: Kent Gibson @ 2026-03-14  2:16 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Bartosz Golaszewski, Andy Shevchenko, linux-gpio, linux-kernel

On Sat, Mar 14, 2026 at 12:07:50AM +0100, Linus Walleij wrote:
> It's been five years since we introduced the v2 uAPI and
> the major consumer libgpiod is at v2.2.3.
> 
> Let's discourage the old ABI.
> 

Agreed - I was thinking the same thing myself.

Reviewed-by: Kent Gibson <warthog618@gmail.com>

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> Changes in v2:
> - Rebase on v7.0-rc1
> - Do not explicitly state "default n", n is the default.
> - Drop RFC, I waited like two years+
> - Link to v1: https://lore.kernel.org/r/20231104-no-y-uapi1-default-v1-1-f60d318b6fbe@linaro.org
> ---
>  drivers/gpio/Kconfig | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> index b45fb799e36c..d574e5fb851d 100644
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -95,7 +95,6 @@ config GPIO_CDEV
>  
>  config GPIO_CDEV_V1
>  	bool "Support GPIO ABI Version 1"
> -	default y
>  	depends on GPIO_CDEV
>  	help
>  	  Say Y here to support version 1 of the GPIO CDEV ABI.
> @@ -103,8 +102,6 @@ config GPIO_CDEV_V1
>  	  This ABI version is deprecated.
>  	  Please use the latest ABI for new developments.
>  
> -	  If unsure, say Y.
> -
>  config GPIO_GENERIC
>  	depends on HAS_IOMEM # Only for IOMEM drivers
>  	tristate
> 
> ---
> base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
> change-id: 20231103-no-y-uapi1-default-4204e86c04a3
> 
> Best regards,
> -- 
> Linus Walleij <linusw@kernel.org>
> 

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

* Re: [PATCH v2] Do not enable the v1 uAPI by default
  2026-03-13 23:07 [PATCH v2] Do not enable the v1 uAPI by default Linus Walleij
  2026-03-14  2:16 ` Kent Gibson
@ 2026-03-16  9:11 ` Bartosz Golaszewski
  2026-03-16  9:31 ` Andy Shevchenko
  2 siblings, 0 replies; 5+ messages in thread
From: Bartosz Golaszewski @ 2026-03-16  9:11 UTC (permalink / raw)
  To: Bartosz Golaszewski, Kent Gibson, Andy Shevchenko, Linus Walleij
  Cc: Bartosz Golaszewski, linux-gpio, linux-kernel


On Sat, 14 Mar 2026 00:07:50 +0100, Linus Walleij wrote:
> It's been five years since we introduced the v2 uAPI and
> the major consumer libgpiod is at v2.2.3.
> 
> Let's discourage the old ABI.
> 
> 

Applied, thanks!

[1/1] Do not enable the v1 uAPI by default
      https://git.kernel.org/brgl/c/7673e4c7f7f99bfc9f30294ac8ab769dbb386866

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

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

* Re: [PATCH v2] Do not enable the v1 uAPI by default
  2026-03-13 23:07 [PATCH v2] Do not enable the v1 uAPI by default Linus Walleij
  2026-03-14  2:16 ` Kent Gibson
  2026-03-16  9:11 ` Bartosz Golaszewski
@ 2026-03-16  9:31 ` Andy Shevchenko
  2026-03-16  9:39   ` Andy Shevchenko
  2 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2026-03-16  9:31 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Bartosz Golaszewski, Kent Gibson, linux-gpio, linux-kernel

On Sat, Mar 14, 2026 at 12:07:50AM +0100, Linus Walleij wrote:
> It's been five years since we introduced the v2 uAPI and
> the major consumer libgpiod is at v2.2.3.

Buildroot is still at libgpiod v1.6.5.

> Let's discourage the old ABI.


Anybody to ping them?

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v2] Do not enable the v1 uAPI by default
  2026-03-16  9:31 ` Andy Shevchenko
@ 2026-03-16  9:39   ` Andy Shevchenko
  0 siblings, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2026-03-16  9:39 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Bartosz Golaszewski, Kent Gibson, linux-gpio, linux-kernel

On Mon, Mar 16, 2026 at 11:31:13AM +0200, Andy Shevchenko wrote:
> On Sat, Mar 14, 2026 at 12:07:50AM +0100, Linus Walleij wrote:
> > It's been five years since we introduced the v2 uAPI and
> > the major consumer libgpiod is at v2.2.3.
> 
> Buildroot is still at libgpiod v1.6.5.
> 
> > Let's discourage the old ABI.
> 
> Anybody to ping them?

Ah, there are two packages, one is libgpiod (v1.6.5) and the other is
libgpiod2, I looked at the old one.

-- 
With Best Regards,
Andy Shevchenko



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

end of thread, other threads:[~2026-03-16  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-13 23:07 [PATCH v2] Do not enable the v1 uAPI by default Linus Walleij
2026-03-14  2:16 ` Kent Gibson
2026-03-16  9:11 ` Bartosz Golaszewski
2026-03-16  9:31 ` Andy Shevchenko
2026-03-16  9:39   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox