From: Ralf Baechle Date: Fri, 1 Jul 2005 10:43:17 +0000 (+0000) Subject: First check the link, then configure duplex in the NIC. Without this X-Git-Tag: linux-2.6.12 X-Git-Url: http://www.linux-mips.org/git?p=linux.git;a=commitdiff;h=d34d4d352494b279173c81c6349f6c2bcff1c22b First check the link, then configure duplex in the NIC. Without this the IOC3 might missbehave until the MII timer runs for the first time. --- --- a/drivers/net/ioc3-eth.c +++ b/drivers/net/ioc3-eth.c @@ -1291,7 +1291,6 @@ static int ioc3_probe(struct pci_dev *pd dev->features = NETIF_F_IP_CSUM; #endif - ioc3_setup_duplex(ip); sw_physid1 = ioc3_mdio_read(dev, ip->mii.phy_id, MII_PHYSID1); sw_physid2 = ioc3_mdio_read(dev, ip->mii.phy_id, MII_PHYSID2); @@ -1300,6 +1299,7 @@ static int ioc3_probe(struct pci_dev *pd goto out_stop; mii_check_media(&ip->mii, 1, 1); + ioc3_setup_duplex(ip); vendor = (sw_physid1 << 12) | (sw_physid2 >> 4); model = (sw_physid2 >> 4) & 0x3f;