[OpenWrt-Devel] [PATCH] apm821xx, ath79, lantiq, ramips: move named gpio exports to generic
Mathias Kresin
dev at kresin.me
Tue Feb 12 17:19:24 EST 2019
12/02/2019 20:49, Daniel Golle:
> The patch was copied to a bunch of platforms and seems to be a quite
> useful feature for various things. Move it to generic to avoid code
> duplication.
Follow up to the discussion in
https://github.com/openwrt/openwrt/pull/1814#issuecomment-462942022.
We should rather try to get rid of the patch instead of encourage people
of using it. Has to be read as soft NAK.
The patch was a hack for missing kernel functionality and was rejected
upstream a long time ago. The main use case for the patch is pulling
reset GPIOs or enable a USB VCC supply. More and more drivers/subsystems
are getting support to control reset GPIOs or enable the VCC supply on
their own.
The upstream answer to gpio-exports are gpio-hogs. It is just that
nobody migrated the devicetree source files to GPIO hogs so far. Even if
gpio-hogs are still a workaround for drivers not able pull their reset
GPIOs/enable VCC supply, it seem to me the cleaner workaround.
Mathias
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list