Skip to content

Commit

Permalink
atl1c: remove PHY polling from atl1c_change_mtu
Browse files Browse the repository at this point in the history
PHY polling code for FPGA is considered in every MDIO R/W API.
no need to add additional code to atl1c_change_mtu.

Signed-off-by: xiong <[email protected]>
Tested-by: David Liu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
xhuang authored and davem330 committed May 1, 2012
1 parent 4fc3635 commit 80bcb42
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/net/ethernet/atheros/atl1c/atl1c_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,14 +553,6 @@ static int atl1c_change_mtu(struct net_device *netdev, int new_mtu)
netdev_update_features(netdev);
atl1c_up(adapter);
clear_bit(__AT_RESETTING, &adapter->flags);
if (adapter->hw.ctrl_flags & ATL1C_FPGA_VERSION) {
u32 phy_data;

AT_READ_REG(&adapter->hw, 0x1414, &phy_data);
phy_data |= 0x10000000;
AT_WRITE_REG(&adapter->hw, 0x1414, phy_data);
}

}
return 0;
}
Expand Down

0 comments on commit 80bcb42

Please sign in to comment.