Commit:     85bbe2158340dafb060fc7fe55a8208fe08cae26
Parent:     6a87155a39f538f9d13cebf2c9b7c19bd41d7da9
Author:     Alex Bounine <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 11 14:35:49 2008 -0500
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Mon Feb 11 14:47:00 2008 -0500

    Tsi108_eth: remove not needed code
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
 drivers/net/tsi108_eth.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/drivers/net/tsi108_eth.c b/drivers/net/tsi108_eth.c
index 2e87876..5a730ba 100644
--- a/drivers/net/tsi108_eth.c
+++ b/drivers/net/tsi108_eth.c
@@ -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 = 0;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to