Commit 80bcb423 authored by Huang, Xiong's avatar Huang, Xiong Committed by David S. Miller

atl1c: remove PHY polling from atl1c_change_mtu

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: default avatarxiong <xiong@qca.qualcomm.com>
Tested-by: default avatarDavid Liu <dwliu@qca.qaulcomm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4fc36352
...@@ -553,14 +553,6 @@ static int atl1c_change_mtu(struct net_device *netdev, int new_mtu) ...@@ -553,14 +553,6 @@ static int atl1c_change_mtu(struct net_device *netdev, int new_mtu)
netdev_update_features(netdev); netdev_update_features(netdev);
atl1c_up(adapter); atl1c_up(adapter);
clear_bit(__AT_RESETTING, &adapter->flags); 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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment