From 6873b920740d154aa03ff454323cc19e4dcc8ea6 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 25 Feb 2013 13:41:52 +0000 Subject: [PATCH] [ramips] backport esw led switch fix fixes #12989 Signed-off-by: John Crispin SVN-Revision: 35782 --- .../ramips/files/drivers/net/ethernet/ramips/ramips_esw.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.30.2