Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10349
b: refs/heads/master
c: b06c093
h: refs/heads/master
i:
  10347: 477be42
v: v3
  • Loading branch information
John W. Linville authored and Jeff Garzik committed Oct 20, 2005
1 parent a1ebfb0 commit 4382a13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 74b0247fbd4b6ed1693a420d85cf50267d840ef4
refs/heads/master: b06c093ed2dc968b3c140dafa55fa6c7b72169e5
9 changes: 5 additions & 4 deletions trunk/drivers/net/sundance.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,16 +609,17 @@ static int __devinit sundance_probe1 (struct pci_dev *pdev,

np->phys[0] = 1; /* Default setting */
np->mii_preamble_required++;
for (phy = 1; phy < 32 && phy_idx < MII_CNT; phy++) {
for (phy = 1; phy <= 32 && phy_idx < MII_CNT; phy++) {
int mii_status = mdio_read(dev, phy, MII_BMSR);
int phyx = phy & 0x1f;
if (mii_status != 0xffff && mii_status != 0x0000) {
np->phys[phy_idx++] = phy;
np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE);
np->phys[phy_idx++] = phyx;
np->mii_if.advertising = mdio_read(dev, phyx, MII_ADVERTISE);
if ((mii_status & 0x0040) == 0)
np->mii_preamble_required++;
printk(KERN_INFO "%s: MII PHY found at address %d, status "
"0x%4.4x advertising %4.4x.\n",
dev->name, phy, mii_status, np->mii_if.advertising);
dev->name, phyx, mii_status, np->mii_if.advertising);
}
}
np->mii_preamble_required--;
Expand Down

0 comments on commit 4382a13

Please sign in to comment.