fix for non-blinking LAN LEDs
authorJohn Crispin <john@openwrt.org>
Mon, 28 Jan 2013 18:06:31 +0000 (18:06 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 28 Jan 2013 18:06:31 +0000 (18:06 +0000)
https://dev.openwrt.org/ticket/12830

SVN-Revision: 35359

target/linux/ramips/files/drivers/net/ethernet/ramips/ramips_esw.c

index 798eb749bb755c9b5cb5525159719185a6ab640a..d3150d7a6fc898e42fdfe8b9b555372d2ce255ad 100644 (file)
@@ -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);
 }