From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752802Ab2DRFeD (ORCPT ); Wed, 18 Apr 2012 01:34:03 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:49406 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081Ab2DRFd7 (ORCPT ); Wed, 18 Apr 2012 01:33:59 -0400 X-IronPort-AV: E=McAfee;i="5400,1158,6684"; a="180355827" X-IronPort-AV: E=Sophos;i="4.75,438,1330934400"; d="scan'208";a="158726173" From: xiong To: , , CC: , , xiong Subject: [PATCH 08/12] atl1c: wrong register used to stop TXQ Date: Wed, 18 Apr 2012 13:32:32 +0800 Message-ID: <1334727156-6830-9-git-send-email-xiong@qca.qualcomm.com> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1334727156-6830-1-git-send-email-xiong@qca.qualcomm.com> References: <1334727156-6830-1-git-send-email-xiong@qca.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.30.39.5] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org function atl1c_stop_mac uses wrong register of REG_TWSI_CTRL to stop mac, replace it with REG_TXQ_CTRL. Signed-off-by: xiong Tested-by: Liu David --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c index ca1259d..b36c033 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c @@ -1142,7 +1142,7 @@ static int atl1c_stop_mac(struct atl1c_hw *hw) AT_READ_REG(hw, REG_TXQ_CTRL, &data); data &= ~TXQ_CTRL_EN; - AT_WRITE_REG(hw, REG_TWSI_CTRL, data); + AT_WRITE_REG(hw, REG_TXQ_CTRL, data); atl1c_wait_until_idle(hw); -- 1.7.7