[OpenWrt-Devel] [PATCH v2] ath79: use gpio_hog instead of gpio-export

mail at adrianschmutzler.de mail at adrianschmutzler.de
Tue Nov 5 17:11:07 EST 2019


Hi,

> -----Original Message-----
> From: Enrico Mioso [mailto:mrkiko.rs at gmail.com]
> Sent: Dienstag, 5. November 2019 23:07
> To: Adrian Schmutzler <mail at adrianschmutzler.de>
> Cc: Bjørn Mork <bjorn at mork.no>; openwrt-devel at lists.openwrt.org; Birger
> Koblitz <mail at birger-koblitz.de>
> Subject: Re: [OpenWrt-Devel] [PATCH v2] ath79: use gpio_hog instead of
> gpio-export
> 
> BTW, being able to toggle on and off USB power is essential in some cases.
> Can this be done with hog? Thanks!
> E

with hogs, you cannot enable/disable. This is the reason why this topic got stuck in the first place.

On ath79, it seems that usb_power is only used for external USB ports so far. So I felt that the discussion led about toggling USB on ramips would not apply here, and that choosing gpio_hogs over a user-space solution would be preferable for this case. With any new device support for the last 6 months, USB ports were set up with gpio_hogs IIRC.

Best

Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20191105/fd91b713/attachment.sig>
-------------- next part --------------
_______________________________________________
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