From mboxrd@z Thu Jan 1 00:00:00 1970 From: xiong Subject: [PATCH 10/10] atl1c: remove PHY polling from atl1c_change_mtu Date: Sat, 28 Apr 2012 09:58:45 +0800 Message-ID: <1335578325-21326-11-git-send-email-xiong@qca.qualcomm.com> References: <1335578325-21326-1-git-send-email-xiong@qca.qualcomm.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , , xiong To: , , Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:35579 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759216Ab2D1CAg (ORCPT ); Fri, 27 Apr 2012 22:00:36 -0400 In-Reply-To: <1335578325-21326-1-git-send-email-xiong@qca.qualcomm.com> Sender: netdev-owner@vger.kernel.org List-ID: 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 Tested-by: David Liu --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c index 1cdd898..86630a5 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c @@ -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; } -- 1.7.7