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

Enrico Mioso mrkiko.rs at gmail.com
Tue Nov 5 17:24:45 EST 2019


Hello Adrian, and all.

thank you for your work, again.

So, the TP-Link TL-MR6400 uses USB power for this. But in general, where there is a port and you can plug a {3,4}G Gadget, the need of "resetting" the device via USB power removal arises.
I know I am being pedantic here, and I am sorry for that, butjust wanted to point this out.
I think there are other devices using USB power for this purpose, even tough I don't know if they are supported by OpenWRt or not.
Here I am not proposing to hold your patch, just wondering what we can do about this use-case. I think it's an important use case BTW.

Thanks again,

Enrico


On Tue, 5 Nov 2019, mail at adrianschmutzler.de wrote:

> Date: Tue, 5 Nov 2019 23:11:07
> From: mail at adrianschmutzler.de
> To: Enrico Mioso <mrkiko.rs at gmail.com>
> 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
> 
> 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 --------------
_______________________________________________
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