How and why can the following happen? How can I overcome this?
root@OpenWrt:~# cat /sys/class/gpio/gpio4/value
1
root@OpenWrt:~# echo 0 > /sys/class/gpio/gpio4/value
root@OpenWrt:~# cat /sys/class/gpio/gpio4/value
1
A little bit about the background:
I want to reset a freezing 3G stick, so I want to turn USB power off temporarily. I'm on a TP-Link TL-MR3420 v2.3, running BARRIER BREAKER 14.07, r42625 (but CHAOS CALMER Bleeding Edge, r44797 behaves just the same).
It maybe helps:
root@OpenWrt:~# cat /sys/kernel/debug/gpio
GPIOs 0-22, ath79:
gpio-4 (USB power ) out hi
gpio-11 (tp-link:green:3g ) out hi
gpio-12 (tp-link:green:lan4 ) out hi
gpio-13 (tp-link:green:wlan ) out hi
gpio-14 (tp-link:green:system) out lo
gpio-15 (tp-link:green:qss ) out hi
gpio-16 (WPS ) in hi
gpio-17 (Reset button ) in hi
gpio-18 (tp-link:green:wan ) out hi
gpio-19 (tp-link:green:lan1 ) out hi
gpio-20 (tp-link:green:lan2 ) out hi
gpio-21 (tp-link:green:lan3 ) out hi
Thanks a lot!