Skip to content

Commit

Permalink
Tsi108_eth: fix detection of 1000Mb mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Bounine authored and Jeff Garzik committed Feb 11, 2008
1 parent a235ef2 commit 6a87155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/tsi108_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,7 @@ static void tsi108_init_phy(struct net_device *dev)
spin_lock_irqsave(&phy_lock, flags);
}

data->mii_if.supports_gmii = mii_check_gmii_support(&data->mii_if);
printk(KERN_DEBUG "PHY_STAT reg contains %08x\n", phyval);
data->phy_ok = 1;
data->init_media = 1;
Expand Down Expand Up @@ -1584,7 +1585,6 @@ tsi108_init_one(struct platform_device *pdev)
data->mii_if.phy_id = einfo->phy;
data->mii_if.phy_id_mask = 0x1f;
data->mii_if.reg_num_mask = 0x1f;
data->mii_if.supports_gmii = mii_check_gmii_support(&data->mii_if);

data->phy = einfo->phy;
data->phy_type = einfo->phy_type;
Expand Down

0 comments on commit 6a87155

Please sign in to comment.