openwrt/target/linux/ath79
Valeriy Manzhos 32b0c89947
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
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>
(cherry picked from commit f7dba4ebbc)
Link: https://github.com/openwrt/openwrt/pull/19334
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-07-08 09:41:44 +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-07-08 09:41:44 +02:00
files treewide: remove THIS_MODULE assignment 2024-11-28 18:46:45 +00:00
generic ath79: port buffalo WZR-450HP2 from ar71xx 2024-12-26 14:26:18 +01:00
image ath79: add calibtation variant for TP-Link Archer C6 v2 2025-06-06 09:43:40 +02:00
mikrotik generic: platform/mikrotik: add wlan lz77 decompress 2024-10-08 10:45:58 +02:00
nand ath79: linksys_ea4500-v3: take over the space for user data 2024-11-07 14:57:37 +01:00
patches-6.6 kernel: bump 6.6 to 6.6.95 2025-07-06 14:51:08 +02:00
tiny ath79: Push MV88E6060 DSA switch into package 2025-01-04 19:27:11 +01:00
config-6.6 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
Makefile ath79: switch default kernel to 6.6 2024-06-14 17:38:09 +02:00
modules.mk