diff options
author | Alex Bounine <alex.bou9@gmail.com> | 2008-02-11 14:35:26 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-02-11 14:46:03 -0500 |
commit | 6a87155a39f538f9d13cebf2c9b7c19bd41d7da9 (patch) | |
tree | 584529aa2bed2272aa1d1450e93b5dc5119b4b4c | |
parent | a235ef2c632a096cdb2b02379c89b49e97faaaa4 (diff) |
Tsi108_eth: fix detection of 1000Mb mode
Bug fix for tsi108_eth network driver.
This patch fixes a problem with detection of 1000Mb speed.
Signed-off-by: Alexandre Bounine <alexandreb@tundra.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/net/tsi108_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tsi108_eth.c b/drivers/net/tsi108_eth.c index 6f222d7e9126..2e87876d6626 100644 --- a/drivers/net/tsi108_eth.c +++ b/drivers/net/tsi108_eth.c | |||
@@ -1287,6 +1287,7 @@ static void tsi108_init_phy(struct net_device *dev) | |||
1287 | spin_lock_irqsave(&phy_lock, flags); | 1287 | spin_lock_irqsave(&phy_lock, flags); |
1288 | } | 1288 | } |
1289 | 1289 | ||
1290 | data->mii_if.supports_gmii = mii_check_gmii_support(&data->mii_if); | ||
1290 | printk(KERN_DEBUG "PHY_STAT reg contains %08x\n", phyval); | 1291 | printk(KERN_DEBUG "PHY_STAT reg contains %08x\n", phyval); |
1291 | data->phy_ok = 1; | 1292 | data->phy_ok = 1; |
1292 | data->init_media = 1; | 1293 | data->init_media = 1; |
@@ -1584,7 +1585,6 @@ tsi108_init_one(struct platform_device *pdev) | |||
1584 | data->mii_if.phy_id = einfo->phy; | 1585 | data->mii_if.phy_id = einfo->phy; |
1585 | data->mii_if.phy_id_mask = 0x1f; | 1586 | data->mii_if.phy_id_mask = 0x1f; |
1586 | data->mii_if.reg_num_mask = 0x1f; | 1587 | data->mii_if.reg_num_mask = 0x1f; |
1587 | data->mii_if.supports_gmii = mii_check_gmii_support(&data->mii_if); | ||
1588 | 1588 | ||
1589 | data->phy = einfo->phy; | 1589 | data->phy = einfo->phy; |
1590 | data->phy_type = einfo->phy_type; | 1590 | data->phy_type = einfo->phy_type; |