diff options
author | John Crispin <blogic@openwrt.org> | 2013-02-25 13:41:52 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-02-25 13:41:52 +0000 |
commit | 77f00418169602978b5a57a497d0966fae301103 (patch) | |
tree | ac12485193ef57dbf5da01506a7f92e8141441b9 /target/linux | |
parent | 5c84e93c8a37df1075be0e3b9806daa442e67b4f (diff) | |
download | upstream-77f00418169602978b5a57a497d0966fae301103.tar.gz upstream-77f00418169602978b5a57a497d0966fae301103.tar.bz2 upstream-77f00418169602978b5a57a497d0966fae301103.zip |
[ramips] backport esw led switch fix
fixes #12989
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@35782 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ramips/ramips_esw.c | 4 |
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); } |