aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-01-28 18:06:31 +0000
committerJohn Crispin <john@openwrt.org>2013-01-28 18:06:31 +0000
commit756a7c5451672562ac0c301134a0886f819fb20b (patch)
treed3f6ee03f0762a09f10bab5222004750b660fb44 /target/linux/ramips
parente804a663e30e5cd5882b511c1ee79d09054ef52f (diff)
downloadupstream-756a7c5451672562ac0c301134a0886f819fb20b.tar.gz
upstream-756a7c5451672562ac0c301134a0886f819fb20b.tar.bz2
upstream-756a7c5451672562ac0c301134a0886f819fb20b.zip
fix for non-blinking LAN LEDs
https://dev.openwrt.org/ticket/12830 SVN-Revision: 35359
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/files/drivers/net/ethernet/ramips/ramips_esw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ramips/ramips_esw.c b/target/linux/ramips/files/drivers/net/ethernet/ramips/ramips_esw.c
index 798eb749bb..d3150d7a6f 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ramips/ramips_esw.c
+++ b/target/linux/ramips/files/drivers/net/ethernet/ramips/ramips_esw.c
@@ -498,6 +498,10 @@ rt305x_esw_hw_init(struct rt305x_esw *esw)
RT305X_ESW_SGC2_LAN_PMAP_M << RT305X_ESW_SGC2_LAN_PMAP_S,
port_map << RT305X_ESW_SGC2_LAN_PMAP_S);
+ /* make the switch leds blink */
+ for (i = 0; i < RT305X_ESW_NUM_LEDS; i++)
+ esw->ports[i].led = 0x05;
+
/* Apply the empty config. */
rt305x_esw_apply_config(&esw->swdev);
}