Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107317
b: refs/heads/master
c: 65193a9
h: refs/heads/master
i:
  107315: 9ac8243
v: v3
  • Loading branch information
Lennert Buytenhek authored and Lennert Buytenhek committed Jul 24, 2008
1 parent 23ab921 commit d07aa4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 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: 4dfc1c87af46f9d8abf2ef78a4e22891d7a564c3
refs/heads/master: 65193a91fc60fdb79e392c9842c10552a1fa3e1c
14 changes: 6 additions & 8 deletions trunk/drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ static char mv643xx_eth_driver_version[] = "1.1";
#define SET_MII_SPEED_TO_100 (1 << 24)
#define SET_GMII_SPEED_TO_1000 (1 << 23)
#define SET_FULL_DUPLEX_MODE (1 << 21)
#define MAX_RX_PACKET_1522BYTE (1 << 17)
#define MAX_RX_PACKET_9700BYTE (5 << 17)
#define MAX_RX_PACKET_MASK (7 << 17)
#define DISABLE_AUTO_NEG_SPEED_GMII (1 << 13)
Expand Down Expand Up @@ -1674,13 +1673,12 @@ static void update_pscr(struct mv643xx_eth_private *mp, int speed, int duplex)
SET_FULL_DUPLEX_MODE |
MAX_RX_PACKET_MASK);

if (speed == SPEED_1000) {
pscr_n |= SET_GMII_SPEED_TO_1000 | MAX_RX_PACKET_9700BYTE;
} else {
if (speed == SPEED_100)
pscr_n |= SET_MII_SPEED_TO_100;
pscr_n |= MAX_RX_PACKET_1522BYTE;
}
pscr_n |= MAX_RX_PACKET_9700BYTE;

if (speed == SPEED_1000)
pscr_n |= SET_GMII_SPEED_TO_1000;
else if (speed == SPEED_100)
pscr_n |= SET_MII_SPEED_TO_100;

if (duplex == DUPLEX_FULL)
pscr_n |= SET_FULL_DUPLEX_MODE;
Expand Down

0 comments on commit d07aa4e

Please sign in to comment.