From 15bbcbf1f580e22c95894ea355575837c5e100f7 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Wed, 9 Nov 2022 13:19:20 +0200 Subject: [PATCH] kernel: add KERNEL_GPIO_CDEV_V1 config option Add a new kernel config option to enable GPIO_CDEV_V1. This is currently disabled, but required by libgpiod. Make it a config option so we can change it to enabled by default, while allowing users to override this default in case they need the new ABI. As this should be a noop change, leave the actual change of the default for a separate commit. Signed-off-by: Stijn Tintel --- config/Config-kernel.in | 10 ++++++++++ target/linux/generic/config-5.10 | 1 - target/linux/generic/config-5.15 | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index c7ce9993b6..e389daa7f4 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -1265,6 +1265,16 @@ config KERNEL_GPIO_CDEV for GPIOs. The character device allows userspace to control GPIOs using ioctl() operations. +config KERNEL_GPIO_CDEV_V1 + bool "GPIO character device ABI v1" + depends on KERNEL_GPIO_CDEV + default n + help + Say Y here to support version 1 of the GPIO CDEV ABI. + + This ABI version is deprecated. + Please use the latest ABI for new developments. + config KERNEL_DEVMEM bool "/dev/mem virtual device support" help diff --git a/target/linux/generic/config-5.10 b/target/linux/generic/config-5.10 index 21fe401468..5609064a8c 100644 --- a/target/linux/generic/config-5.10 +++ b/target/linux/generic/config-5.10 @@ -2099,7 +2099,6 @@ CONFIG_GPIOLIB_FASTPATH_LIMIT=512 # CONFIG_GPIO_BT8XX is not set # CONFIG_GPIO_CADENCE is not set # CONFIG_GPIO_CASCADE is not set -# CONFIG_GPIO_CDEV_V1 is not set # CONFIG_GPIO_CS5535 is not set # CONFIG_GPIO_DWAPB is not set # CONFIG_GPIO_EM is not set diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15 index bc3289837a..ff5eb4e63a 100644 --- a/target/linux/generic/config-5.15 +++ b/target/linux/generic/config-5.15 @@ -2181,7 +2181,6 @@ CONFIG_GPIOLIB_FASTPATH_LIMIT=512 # CONFIG_GPIO_BT8XX is not set # CONFIG_GPIO_CADENCE is not set # CONFIG_GPIO_CASCADE is not set -# CONFIG_GPIO_CDEV_V1 is not set # CONFIG_GPIO_CS5535 is not set # CONFIG_GPIO_DWAPB is not set # CONFIG_GPIO_EM is not set -- 2.30.2