Skip to contentSkip to conversation

Do not enable the v1 uAPI by default

PATCH Applied Linus Walleij 4 participants 5 messages Mar 13 – Mar 16 GPIO

lore
Share & tools
lore

Linus Walleij

author maintainer
#0 lore raw

PATCH v2 1/1 Do not enable the v1 uAPI by default

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.

---
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/[email protected]

---
 drivers/gpio/Kconfig | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpio/Kconfig +0 -3
index b45fb799e36c..d574e5fb851d 100644
@@ -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,

Signature · 1 line
Linus Walleij <[email protected]>
Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · 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.

Agreed - I was thinking the same thing myself.

Quoted 41 lines

---
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/[email protected]

---
 drivers/gpio/Kconfig | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpio/Kconfig +0 -4
index b45fb799e36c..d574e5fb851d 100644
@@ -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,

Signature · 1 line
Linus Walleij <[email protected]>
#3 lore raw
In reply to Linus Walleij
Quoted 2 lines · Linus Walleij

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.

Quoted 1 line

Let's discourage the old ABI.

Anybody to ping them?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#4 lore raw
Quoted 9 lines · Andy Shevchenko
Quoted 2 lines · Linus Walleij

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.

Quoted 1 line

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.

Signature · 2 lines
With Best Regards,
Andy Shevchenko