Files
immortalwrt/package/kernel
Christian Lamparter 0c2d984fca 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-29 12:05:17 +08:00
..
2021-02-10 12:28:03 +08:00
2021-02-10 12:28:03 +08:00
2019-09-30 13:21:19 +08:00
2021-06-15 23:45:52 +08:00
2021-05-15 02:09:05 +08:00
2020-05-24 22:41:44 +08:00
2020-04-17 17:35:06 +08:00
2021-08-22 12:17:53 +08:00
2021-08-18 22:13:40 +08:00
2021-03-23 18:11:53 +08:00
2021-03-26 20:28:03 +08:00
2020-09-06 18:19:14 +08:00
2021-08-08 20:24:21 +08:00
2020-05-24 22:41:44 +08:00
2021-03-23 18:11:53 +08:00
2021-03-23 18:11:53 +08:00
2021-03-30 03:37:03 +08:00
2021-06-21 20:49:40 +08:00
2021-03-23 18:11:53 +08:00
2020-07-16 20:36:17 +08:00