Skip to content

Commit

Permalink
Merge branch 'sundance'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik committed Feb 7, 2006
2 parents 3c9b3a8 + 0d615ec commit 6bd0e10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/net/sundance.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,13 @@ static int __devinit sundance_probe1 (struct pci_dev *pdev,

np->phys[0] = 1; /* Default setting */
np->mii_preamble_required++;
/*
* It seems some phys doesn't deal well with address 0 being accessed
* first, so leave address zero to the end of the loop (32 & 31).
*/
for (phy = 1; phy <= 32 && phy_idx < MII_CNT; phy++) {
int mii_status = mdio_read(dev, phy, MII_BMSR);
int phyx = phy & 0x1f;
int mii_status = mdio_read(dev, phyx, MII_BMSR);
if (mii_status != 0xffff && mii_status != 0x0000) {
np->phys[phy_idx++] = phyx;
np->mii_if.advertising = mdio_read(dev, phyx, MII_ADVERTISE);
Expand Down

0 comments on commit 6bd0e10

Please sign in to comment.