Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255982
b: refs/heads/master
c: 81399ec
h: refs/heads/master
v: v3
  • Loading branch information
Barry Grussling authored and David S. Miller committed Jun 29, 2011
1 parent a1b7a00 commit a104a14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 864834f935b5311004ebbf0c485dbfd10aa9a546
refs/heads/master: 81399ec683632b85863b093f4fffe2b4511e49e6
8 changes: 6 additions & 2 deletions trunk/net/dsa/mv88e6131.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,14 @@ static int mv88e6131_setup_global(struct dsa_switch *ds)
REG_WRITE(REG_GLOBAL, 0x1a, (dsa_upstream_port(ds) * 0x1100) | 0x00f0);

/*
* Disable cascade port functionality, and set the switch's
* Disable cascade port functionality unless this device
* is used in a cascade configuration, and set the switch's
* DSA device number.
*/
REG_WRITE(REG_GLOBAL, 0x1c, 0xe000 | (ds->index & 0x1f));
if (ds->dst->pd->nr_chips > 1)
REG_WRITE(REG_GLOBAL, 0x1c, 0xf000 | (ds->index & 0x1f));
else
REG_WRITE(REG_GLOBAL, 0x1c, 0xe000 | (ds->index & 0x1f));

/*
* Send all frames with destination addresses matching
Expand Down

0 comments on commit a104a14

Please sign in to comment.