1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-17 12:43:56 +02:00
openwrt/package
Christian Lamparter 2b0378cf9f gpio-button-hotplug: convert to gpio descriptor (gpiod_) API
OpenWrt's special gpio-button-hotplug driver is still using
exclusively the legacy GPIO Subsystem gpio_ API.

While it still does work fine for most devices, upstream
linux is starting to convert platform support like that of
the APU2/3/4 to the new GPIOD LOOKUP tables that are not
supported by it.

Hence, this patch replaces the gpio_ calls present in
gpio-button-hotplug with gpiod_ equivalent wherever
it's possible. This allows the driver to use the
gpiod lookup tables and still have a fallback for
legacy platform data code that just sets button->gpio
set to the real button/switch GPIO.

As a bonus: the active_low logic is now being handled
by the linux's gpio subsystem too. Another issue that
was address is the of_handle leak in the dt parser
error path.

Tested with legacy platform data: x86_64: APU2, MX-100
Tested on OF: ATH79; MR18, APM821xx: Netgear WNDR4700,
	      RAMIPS: WL-330N3G
	      LANTIQ: AVM FritzBox 7360v1

Reported-by: Chris Blake <chrisrblake93@gmail.com>
Tested-by: Chris Blake <chrisrblake93@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2021-08-26 21:00:26 +02:00
..
base-files base-files: fix option to make /var persistent 2021-08-23 14:09:42 +03:00
boot uboot-mediatek: pass console=tty1 for BPi-R2 2021-08-21 04:35:52 +01:00
devel gdb: update to 10.2 2021-08-21 15:59:39 +02:00
firmware linux-firmware: add 2G and 5G precal binaries for QCA99X0 2021-07-25 13:52:38 +02:00
kernel gpio-button-hotplug: convert to gpio descriptor (gpiod_) API 2021-08-26 21:00:26 +02:00
libs libubox: update to the latest version 2021-08-24 17:35:45 +02:00
network ustp: add OpenWrt STP/RSTP daemon 2021-08-26 13:27:27 +02:00
system fstools: update to git HEAD 2021-08-25 22:49:00 +01:00
utils bcm27xx-userland: update to latest version 2021-08-21 19:07:06 +02:00
Makefile build: fix opkg install step for large package selection 2021-05-12 11:13:53 +02:00