[RESEND 0/5] replace in-tree driver with upstream one

Mauri Sandberg maukka at ext.kapsi.fi
Sat Feb 5 15:07:06 PST 2022


Hi all!

I included a few people who have committed previously to related files
this set also touches. I hope I am not bothering anyone. This patch set is
otherwise identical to the initial sending but the kernel 5.4 related patch
was dropped.

Currently, Buffalo wzr-hp-g300nh uses a driver that is developed specificly
for NXP 74HC153 dual 4-way multiplexer and it sits in OpenWRT source tree.
The multiplexer is being used for several different buttons on the device
casing. This patch set replaces that driver with a generic gpio-cascade
driver that is in the process of being upstreamed.

All comments are welcome but I would need someone to have a look at the
AUTOLOAD clauses in the kernel package makefiles. The way they are
specified currently allows loading modules early enough for using the
reset key for entering the failsafe. Nevertheless, it's a copypaste without
much understanding what goes where and there could be room for improvements.

Thanks,
Mauri

Mauri Sandberg (5):
  kernel: 5.10: backport gpio-cascade and related symbols
  kernel: add package kmod-multiplexer
  kernel: add package kmod-gpio-cascade
  ath79: use gpio-cascade for Buffalo WZR-HP-G300NH
  gpio-nxp-74hc153: remove package

 package/kernel/gpio-nxp-74hc153/Makefile      |  35 ---
 package/kernel/gpio-nxp-74hc153/src/Makefile  |   1 -
 .../gpio-nxp-74hc153/src/gpio-nxp-74hc153.c   | 291 ------------------
 package/kernel/linux/modules/gpio-cascade.mk  |  20 ++
 package/kernel/linux/modules/multiplexer.mk   |  34 ++
 .../dts/ar9132_buffalo_wzr-hp-g300nh.dtsi     |  41 ++-
 target/linux/ath79/image/generic.mk           |   2 +-
 target/linux/generic/config-5.10              |   6 +
 ...pio-cascade-add-generic-GPIO-cascade.patch | 232 ++++++++++++++
 9 files changed, 324 insertions(+), 338 deletions(-)
 delete mode 100644 package/kernel/gpio-nxp-74hc153/Makefile
 delete mode 100644 package/kernel/gpio-nxp-74hc153/src/Makefile
 delete mode 100644 package/kernel/gpio-nxp-74hc153/src/gpio-nxp-74hc153.c
 create mode 100644 package/kernel/linux/modules/gpio-cascade.mk
 create mode 100644 package/kernel/linux/modules/multiplexer.mk
 create mode 100644 target/linux/generic/pending-5.10/801-gpio-gpio-cascade-add-generic-GPIO-cascade.patch


base-commit: 1b311aab3141bbea5667be4517e2599e6235cca0
--
2.25.1



More information about the openwrt-devel mailing list