atl1c: remove PHY reset/init for link down event
authorHuang, Xiong <xiong@qca.qualcomm.com>
Wed, 25 Apr 2012 20:27:15 +0000 (20:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Apr 2012 09:03:32 +0000 (05:03 -0400)
it's unnecessary to reset/init phy when link down.
Only L1/L2 chip (supported by atlx) need such action.

Signed-off-by: xiong <xiong@qca.qualcomm.com>
Tested-by: Liu David <dwliu@qca.qualcomm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c

index 995da221fc5acdbc6707b92c8758c83d9fb4f6ee..cb3b3c4b5e18dceb3003dccd62ddb66bd2290b9e 100644 (file)
@@ -270,8 +270,6 @@ static void atl1c_check_link_status(struct atl1c_adapter *adapter)
                atl1c_set_aspm(hw, SPEED_0);
                netif_carrier_off(netdev);
                netif_stop_queue(netdev);
-               atl1c_phy_reset(hw);
-               atl1c_phy_init(&adapter->hw);
        } else {
                /* Link Up */
                hw->hibernate = false;