From d38ed61287cc1e0cc8dac34132eae8541736fd25 Mon Sep 17 00:00:00 2001 From: Hector Bujanda Date: Mon, 27 Apr 2020 01:20:08 +0200 Subject: [PATCH] linux-libc-headers: refresh patch to add Digi debounce IOCTL to kernel v5.4 Digi customized linux kernel gpio.h file to allow debounce functionality by the user space through the character device. This commit patches the gpio.h file that is used to generate the SDK (which comes from kernel 5.4) with Digi debounce additions. https://jira.digi.com/browse/DEL-7027 Signed-off-by: Hector Bujanda hector.bujanda@digi.com --- ...i-add-userspace-support-for-setting-debounce.patch | 11 ++++------- ..._4.18.bbappend => linux-libc-headers_5.4.bbappend} | 0 2 files changed, 4 insertions(+), 7 deletions(-) rename meta-digi-arm/recipes-kernel/linux-libc-headers/{linux-libc-headers_4.18.bbappend => linux-libc-headers_5.4.bbappend} (100%) diff --git a/meta-digi-arm/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-gpio-uapi-add-userspace-support-for-setting-debounce.patch b/meta-digi-arm/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-gpio-uapi-add-userspace-support-for-setting-debounce.patch index b59306bd4..cd7f52493 100644 --- a/meta-digi-arm/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-gpio-uapi-add-userspace-support-for-setting-debounce.patch +++ b/meta-digi-arm/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-gpio-uapi-add-userspace-support-for-setting-debounce.patch @@ -15,13 +15,13 @@ Signed-off-by: Hector Bujanda 1 file changed, 12 insertions(+) diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h -index 1bf6e6df084b..4b092990d4c8 100644 +index 4ebfe0ac6c5b..95569071f11b 100644 --- a/include/uapi/linux/gpio.h +++ b/include/uapi/linux/gpio.h @@ -53,6 +53,17 @@ struct gpioline_info { char consumer[32]; }; - + +/** + * struct gpioline_debounce - GPIO line debounce + * @line_offset: the local offset on this GPIO device, fill this in when @@ -35,14 +35,11 @@ index 1bf6e6df084b..4b092990d4c8 100644 + /* Maximum number of requested handles */ #define GPIOHANDLES_MAX 64 - + @@ -154,5 +165,6 @@ struct gpioevent_data { #define GPIO_GET_LINEINFO_IOCTL _IOWR(0xB4, 0x02, struct gpioline_info) #define GPIO_GET_LINEHANDLE_IOCTL _IOWR(0xB4, 0x03, struct gpiohandle_request) #define GPIO_GET_LINEEVENT_IOCTL _IOWR(0xB4, 0x04, struct gpioevent_request) +#define GPIO_SET_DEBOUNCE_IOCTL _IOW(0xB4, 0x05, struct gpioline_debounce) - - #endif /* _UAPI_GPIO_H_ */ --- -2.17.1 + #endif /* _UAPI_GPIO_H_ */ diff --git a/meta-digi-arm/recipes-kernel/linux-libc-headers/linux-libc-headers_4.18.bbappend b/meta-digi-arm/recipes-kernel/linux-libc-headers/linux-libc-headers_5.4.bbappend similarity index 100% rename from meta-digi-arm/recipes-kernel/linux-libc-headers/linux-libc-headers_4.18.bbappend rename to meta-digi-arm/recipes-kernel/linux-libc-headers/linux-libc-headers_5.4.bbappend