[OpenWrt-Devel] [PATCH] apm821xx, ath79, lantiq, ramips: move named gpio exports to generic

Petr Štetiar ynezz at true.cz
Wed Feb 13 01:14:18 EST 2019


Mathias Kresin <dev at kresin.me> [2019-02-12 23:19:24]:

> 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.

I've sent RFC[1] about userspace replacement as well.

1. http://lists.infradead.org/pipermail/openwrt-devel/2019-February/015715.html

-- ynezz

_______________________________________________
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