From patchwork Tue May 1 01:38:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Xiong" X-Patchwork-Id: 155982 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 858A5B6F9F for ; Tue, 1 May 2012 11:40:08 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757932Ab2EABjm (ORCPT ); Mon, 30 Apr 2012 21:39:42 -0400 Received: from wolverine01.qualcomm.com ([199.106.114.254]:42831 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751881Ab2EABjk (ORCPT ); Mon, 30 Apr 2012 21:39:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=xiong@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1335836380; x=1367372380; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=1j2Nrw9qxhWWF5OsRvJgpVw4GcwUlXFArpdngSGfxzo=; b=VtNzXujBVmSQ07xQ9/GRvfmdhPPCIvQ5QKBg9LxA3DdLKLC4V1cTd9m5 Bww0INW0uh6WtlSknPMzLx/So29oJ326OpmeOE1gDubkEj6M4rDQ0eokJ X5/r4DjKi1g11Rf80df/9QdP8a95tj9x2Vz+P8dqQ56r9n2rl2XKv+wT6 8=; X-IronPort-AV: E=McAfee;i="5400,1158,6697"; a="186394324" Received: from ironmsg02-r.qualcomm.com ([172.30.46.16]) by wolverine01.qualcomm.com with ESMTP; 30 Apr 2012 18:39:40 -0700 X-IronPort-AV: E=Sophos;i="4.75,507,1330934400"; d="scan'208";a="158949923" Received: from nasanexhc05.na.qualcomm.com ([172.30.48.2]) by ironmsg02-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 30 Apr 2012 18:39:40 -0700 Received: from qcmail1.qualcomm.com (172.30.48.1) by qcmail1.qualcomm.com (172.30.48.2) with Microsoft SMTP Server (TLS) id 14.2.283.3; Mon, 30 Apr 2012 18:39:38 -0700 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Tue, 01 May 2012 09:39:35 +0800 From: xiong To: , , CC: , , xiong Subject: [PATCH 04/10] atl1c: remove code of closing register writable attribution Date: Tue, 1 May 2012 09:38:52 +0800 Message-ID: <1335836338-9425-5-git-send-email-xiong@qca.qualcomm.com> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1335836338-9425-1-git-send-email-xiong@qca.qualcomm.com> References: <1335836338-9425-1-git-send-email-xiong@qca.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [172.30.48.1] Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The Close-action is done by atl1c_reset_pcie, remove it from atl1c_get_permanent_address. Signed-off-by: xiong Tested-by: Liu David --- drivers/net/ethernet/atheros/atl1c/atl1c_hw.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_hw.c b/drivers/net/ethernet/atheros/atl1c/atl1c_hw.c index 49f433e..2522685 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_hw.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_hw.c @@ -72,7 +72,6 @@ static int atl1c_get_permanent_address(struct atl1c_hw *hw) u32 i; u32 otp_ctrl_data; u32 twsi_ctrl_data; - u32 ltssm_ctrl_data; u8 eth_addr[ETH_ALEN]; u16 phy_data; bool raise_vol = false; @@ -108,11 +107,6 @@ static int atl1c_get_permanent_address(struct atl1c_hw *hw) udelay(20); raise_vol = true; } - /* close open bit of ReadOnly*/ - AT_READ_REG(hw, REG_LTSSM_ID_CTRL, <ssm_ctrl_data); - ltssm_ctrl_data &= ~LTSSM_ID_EN_WRO; - AT_WRITE_REG(hw, REG_LTSSM_ID_CTRL, ltssm_ctrl_data); - AT_READ_REG(hw, REG_TWSI_CTRL, &twsi_ctrl_data); twsi_ctrl_data |= TWSI_CTRL_SW_LDSTART;