summaryrefslogtreecommitdiff
path: root/target/linux/apm821xx/base-files
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2016-10-28 12:40:01 +0200
committerRafał Miłecki <rafal@milecki.pl>2016-10-28 13:27:21 +0200
commitc9fdb23345121c0de1af5fe705cc245e45c862d5 (patch)
tree03a4696e4a3538c0df51162c5015cf19fcf4d9b4 /target/linux/apm821xx/base-files
parent1e3c4f763c5fd3c70ff3b5c511b1774d3ac3d67d (diff)
downloadmtk-20170518-c9fdb23345121c0de1af5fe705cc245e45c862d5.zip
mtk-20170518-c9fdb23345121c0de1af5fe705cc245e45c862d5.tar.gz
mtk-20170518-c9fdb23345121c0de1af5fe705cc245e45c862d5.tar.bz2
apm821xx: fix USB LED trigger for WNDR4700
The old usbdev trigger never supported assigning more than 1 USB port. This code we got was never working as expected and it was missing 2 more ports. Switch to usbport to have LED working with all ports. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Tested-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx/base-files')
-rwxr-xr-xtarget/linux/apm821xx/base-files/etc/board.d/01_leds3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/apm821xx/base-files/etc/board.d/01_leds b/target/linux/apm821xx/base-files/etc/board.d/01_leds
index a1eeb8f..80a22b8 100755
--- a/target/linux/apm821xx/base-files/etc/board.d/01_leds
+++ b/target/linux/apm821xx/base-files/etc/board.d/01_leds
@@ -23,8 +23,7 @@ mbl)
wndr4700)
ucidef_set_led_ide "sata" "SATA" "wndr4700:green:hd"
ucidef_set_led_netdev "wan" "WAN (green)" "wndr4700:green:wan" "eth0.2"
- ucidef_set_led_usbdev "usb3-1" "USB3-1" "wndr4700:blue:usb" "2-1"
- ucidef_set_led_usbdev "usb3-2" "USB3-2" "wndr4700:blue:usb" "3-1"
+ ucidef_set_led_usbport "usb3" "USB3" "wndr4700:blue:usb" "usb2-port1" "usb2-port2" "usb3-port1" "usb3-port2"
ucidef_set_led_wlan "wlan2g" "WLAN2G" "wndr4700:blue:wlan" "phy0tpt"
ucidef_set_led_wlan "wlan5g" "WLAN5G" "wndr4700:blue:wlan" "phy1tpt"
;;