Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103014
b: refs/heads/master
c: 376489a
h: refs/heads/master
v: v3
  • Loading branch information
Lennert Buytenhek committed Jun 12, 2008
1 parent b5a28ef commit 5d2ce8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 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: d9a073ea166983e180438e2989b07ec1b70bc1f5
refs/heads/master: 376489a250be5a5abe07aa39aa9623c31031b55e
16 changes: 4 additions & 12 deletions trunk/drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,6 @@ static char mv643xx_driver_version[] = "1.0";
#define OTHER_MCAST_TABLE(p) (0x1500 + ((p) << 10))
#define UNICAST_TABLE(p) (0x1600 + ((p) << 10))

/* These macros describe Ethernet Port configuration extend reg (Px_cXR) bits*/
#define CLASSIFY_EN (1 << 0)
#define SPAN_BPDU_PACKETS_AS_NORMAL (0 << 1)
#define SPAN_BPDU_PACKETS_TO_RX_QUEUE_7 (1 << 1)
#define PARTITION_DISABLE (0 << 2)
#define PARTITION_ENABLE (1 << 2)

#define PORT_CONFIG_EXTEND_DEFAULT_VALUE \
SPAN_BPDU_PACKETS_AS_NORMAL | \
PARTITION_DISABLE

/* These macros describe Ethernet Port Sdma configuration reg (SDCR) bits */
#define RIFB (1 << 0)
#define RX_BURST_SIZE_1_64BIT (0 << 1)
Expand Down Expand Up @@ -2208,7 +2197,10 @@ static void eth_port_start(struct net_device *dev)
*/
wrl(mp, PORT_CONFIG(port_num), 0x00000000);

wrl(mp, PORT_CONFIG_EXT(port_num), PORT_CONFIG_EXTEND_DEFAULT_VALUE);
/*
* Treat BPDUs as normal multicasts, and disable partition mode.
*/
wrl(mp, PORT_CONFIG_EXT(port_num), 0x00000000);

pscr = rdl(mp, PORT_SERIAL_CONTROL(port_num));

Expand Down

0 comments on commit 5d2ce8a

Please sign in to comment.