diff options
author | Malli Chilakala <mallikarjuna.chilakala@intel.com> | 2005-06-17 20:30:22 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-27 00:30:23 -0400 |
commit | f92d872876617cddbb0532291034f88941e855fd (patch) | |
tree | 6f86b1a29b1476d30cb8bd6fd01869eaac32804e /drivers | |
parent | 648951451e6d2d532d4ace2f8e9c5cdf1d563e83 (diff) |
[PATCH] e100: e100_eeprom_load was called after e100_phy_init
e100_eeprom_load was called after e100_phy_init causing phy_init
not to use values set in EEPROM - from emann@mrv.com
Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
Signed-off-by: Ganesh Venkatesan <ganesh.venkatesan@intel.com>
Signed-off-by: John Ronciak <john.ronciak@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/e100.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index 7e46d038b9f8..8c7e2d17e75f 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c | |||
@@ -2340,11 +2340,11 @@ static int __devinit e100_probe(struct pci_dev *pdev, | |||
2340 | goto err_out_iounmap; | 2340 | goto err_out_iounmap; |
2341 | } | 2341 | } |
2342 | 2342 | ||
2343 | e100_phy_init(nic); | ||
2344 | |||
2345 | if((err = e100_eeprom_load(nic))) | 2343 | if((err = e100_eeprom_load(nic))) |
2346 | goto err_out_free; | 2344 | goto err_out_free; |
2347 | 2345 | ||
2346 | e100_phy_init(nic); | ||
2347 | |||
2348 | memcpy(netdev->dev_addr, nic->eeprom, ETH_ALEN); | 2348 | memcpy(netdev->dev_addr, nic->eeprom, ETH_ALEN); |
2349 | if(!is_valid_ether_addr(netdev->dev_addr)) { | 2349 | if(!is_valid_ether_addr(netdev->dev_addr)) { |
2350 | DPRINTK(PROBE, ERR, "Invalid MAC address from " | 2350 | DPRINTK(PROBE, ERR, "Invalid MAC address from " |