]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
atl1c: remove PHY polling from atl1c_open
authorHuang, Xiong <xiong@qca.qualcomm.com>
Wed, 25 Apr 2012 20:27:13 +0000 (20:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Apr 2012 09:03:32 +0000 (05:03 -0400)
PHY polling code for FPGA is considered in every MDIO R/W API.
no need to add additional code to atl1c_open.

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 cf78287d0e5a0984494d8122b8d44e482aee30cb..8a1d2f90eb1a4514507fe992a4ed45c6e51fc2fa 100644 (file)
@@ -2273,13 +2273,6 @@ static int atl1c_open(struct net_device *netdev)
        if (unlikely(err))
                goto err_up;
 
-       if (adapter->hw.ctrl_flags & ATL1C_FPGA_VERSION) {
-               u32 phy_data;
-
-               AT_READ_REG(&adapter->hw, REG_MDIO_CTRL, &phy_data);
-               phy_data |= MDIO_CTRL_AP_EN;
-               AT_WRITE_REG(&adapter->hw, REG_MDIO_CTRL, phy_data);
-       }
        return 0;
 
 err_up: