]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Tsi108_eth: remove not needed code
authorAlex Bounine <alex.bou9@gmail.com>
Mon, 11 Feb 2008 19:35:49 +0000 (14:35 -0500)
committerJeff Garzik <jeff@garzik.org>
Mon, 11 Feb 2008 19:47:00 +0000 (14:47 -0500)
Code clean-up for tsi108_eth network driver.
This patch removes not needed dummy read and the corresponding comment.
The PHY logic requires two reads from the status register to get
current link status. This is done correctly inside mii_check_media().

Signed-off-by: Alexandre Bounine <alexandreb@tundra.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/tsi108_eth.c

index 2e87876d6626fc424e5d7d6792410d636cd36cc2..5a730ba8b1a2fe19ccfe23a77a0eb55b40c6ad59 100644 (file)
@@ -297,18 +297,11 @@ static void tsi108_check_phy(struct net_device *dev)
        u32 speed;
        unsigned long flags;
 
-       /* Do a dummy read, as for some reason the first read
-        * after a link becomes up returns link down, even if
-        * it's been a while since the link came up.
-        */
-
        spin_lock_irqsave(&phy_lock, flags);
 
        if (!data->phy_ok)
                goto out;
 
-       tsi108_read_mii(data, MII_BMSR);
-
        duplex = mii_check_media(&data->mii_if, netif_msg_link(data), data->init_media);
        data->init_media = 0;