openwrt-mirror/target/linux/ath79
Valeriy Manzhos f7dba4ebbc ath79: enable USB by default on hAP ac
Due to a bug, USB is not powered on after boot on hAP ac.
This prevents extroot configurations from working as overlayfs is mounted
before USB device can be powered on. This commit fixes this by enabling USB
in devicetree.

Related discussion links:
- https://forum.openwrt.org/t/usb-power-is-off-on-boot/229007

---

Extroot configuration requires the USB to be powered on before
preinit_main/80_mount_root. Probably the simplest approach is to enable
it in the devicetree. Another approach would be to add a script into
/lib/preinit that will power on USB via /sys/class/gpio/usb-power/value
E.g.
cat /lib/preinit/79_power_on_usb
do_power_on_usb(){
  echo '1' > /sys/class/gpio/usb-power/value
}
boot_hook_add preinit_main do_power_on_usb

Signed-off-by: Valeriy Manzhos <manzhos.va@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19149
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-06-19 20:42:02 +02:00
..
base-files/etc/hotplug.d/ieee80211 ath79: migrate Archer C5 5GHz radio device paths 2022-03-31 18:07:29 +02:00
dts ath79: enable USB by default on hAP ac 2025-06-19 20:42:02 +02:00
files ath79: remove platform_device_id from drivers 2025-05-22 11:17:21 +02:00
generic ath79: refresh kernel symbol configs 2025-05-24 15:42:22 +02:00
image ath79: add calibtation variant for TP-Link Archer C6 v2 2025-05-30 21:35:11 +02:00
mikrotik ath79: refresh kernel symbol configs 2025-05-24 15:42:22 +02:00
nand ath79: refresh kernel symbol configs 2025-05-24 15:42:22 +02:00
patches-6.6 kernel: bump 6.6 to 6.6.93 2025-06-06 10:01:31 +02:00
patches-6.12 kernel: bump 6.12 to 6.12.31 2025-05-31 17:35:29 +02:00
tiny ath79: refresh kernel symbol configs 2025-05-24 15:42:22 +02:00
config-6.6 ath79: restore kernel 6.6 config files and patches 2025-05-24 15:42:23 +02:00
config-6.12 ath79: refresh 6.12 kernel config files 2025-05-24 15:42:23 +02:00
Makefile ath79: enable 6.12 testing kernel 2025-05-24 15:42:23 +02:00
modules.mk