Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211111
b: refs/heads/master
c: e0f9c4f
h: refs/heads/master
i:
  211109: e7c46bc
  211107: 9f07e4b
  211103: fb54a8b
v: v3
  • Loading branch information
Ondrej Zary authored and David S. Miller committed Sep 25, 2010
1 parent 04e10a1 commit 4c59d9d
Show file tree
Hide file tree
Showing 2 changed files with 11 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: f064af1e500a2bf4607706f0f458163bdb2a6ea5
refs/heads/master: e0f9c4f332c99b213d4a0b7cd21dc0781ceb3d86
12 changes: 10 additions & 2 deletions trunk/drivers/net/tulip/de2104x.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ static u16 t21040_csr15[] = { 0, 0, 0x0006, 0x0000, 0x0000, };
/* 21041 transceiver register settings: TP AUTO, BNC, AUI, TP, TP FD*/
static u16 t21041_csr13[] = { 0xEF01, 0xEF09, 0xEF09, 0xEF01, 0xEF09, };
static u16 t21041_csr14[] = { 0xFFFF, 0xF7FD, 0xF7FD, 0x6F3F, 0x6F3D, };
/* If on-chip autonegotiation is broken, use half-duplex (FF3F) instead */
static u16 t21041_csr14_brk[] = { 0xFF3F, 0xF7FD, 0xF7FD, 0x6F3F, 0x6F3D, };
static u16 t21041_csr15[] = { 0x0008, 0x0006, 0x000E, 0x0008, 0x0008, };


Expand Down Expand Up @@ -1911,8 +1913,14 @@ static void __devinit de21041_get_srom_info (struct de_private *de)
for (i = 0; i < DE_MAX_MEDIA; i++) {
if (de->media[i].csr13 == 0xffff)
de->media[i].csr13 = t21041_csr13[i];
if (de->media[i].csr14 == 0xffff)
de->media[i].csr14 = t21041_csr14[i];
if (de->media[i].csr14 == 0xffff) {
/* autonegotiation is broken at least on some chip
revisions - rev. 0x21 works, 0x11 does not */
if (de->pdev->revision < 0x20)
de->media[i].csr14 = t21041_csr14_brk[i];
else
de->media[i].csr14 = t21041_csr14[i];
}
if (de->media[i].csr15 == 0xffff)
de->media[i].csr15 = t21041_csr15[i];
}
Expand Down

0 comments on commit 4c59d9d

Please sign in to comment.