From patchwork Sat Apr 28 01:58:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Xiong" X-Patchwork-Id: 155625 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 16F87B6FD3 for ; Sat, 28 Apr 2012 12:01:51 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758954Ab2D1B75 (ORCPT ); Fri, 27 Apr 2012 21:59:57 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:59884 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758878Ab2D1B7z (ORCPT ); Fri, 27 Apr 2012 21:59:55 -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=1335578395; x=1367114395; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=f1TYiUUoKt3YicXRboZS85+q6DQmH5GmYQF7mPsE7M4=; b=JyOVC2Mwc+rUoANbo7nqG1cz6FyIxNMOrHTGffRM8HZFihQwmmfidFQA hc5MuYPnrZiK1GesiXxhg6rArtdhdT9M5mqmtQLhSaJPV3OIjMcSjo5oL n/KltlUK4tZWNC+9XGqhxD3C7zahRkpsgIvC4Cyu9BxLjFA4oowLoI0W4 M=; X-IronPort-AV: E=McAfee;i="5400,1158,6694"; a="183515912" Received: from ironmsg03-r.qualcomm.com ([172.30.46.17]) by wolverine02.qualcomm.com with ESMTP; 27 Apr 2012 18:59:55 -0700 X-IronPort-AV: E=Sophos;i="4.75,491,1330934400"; d="scan'208";a="242469599" Received: from nasanexhc05.na.qualcomm.com ([172.30.48.2]) by Ironmsg03-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 27 Apr 2012 18:59:55 -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; Fri, 27 Apr 2012 18:59:53 -0700 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Sat, 28 Apr 2012 09:59:50 +0800 From: xiong To: , , CC: , , xiong Subject: [PATCH 06/10] atl1c: enlarge L1 response waiting timer Date: Sat, 28 Apr 2012 09:58:41 +0800 Message-ID: <1335578325-21326-7-git-send-email-xiong@qca.qualcomm.com> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1335578325-21326-1-git-send-email-xiong@qca.qualcomm.com> References: <1335578325-21326-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 hardware incorrectly process L0S/L1 entrance if the chipset/root response after specific/shorter timer and cause system hang. Enlarge the timeout value to avoid this issue. Signed-off-by: xiong Tested-by: Liu David --- drivers/net/ethernet/atheros/atl1c/atl1c_hw.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_hw.h b/drivers/net/ethernet/atheros/atl1c/atl1c_hw.h index 21a5bc1..17d935b 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_hw.h +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_hw.h @@ -157,7 +157,7 @@ void atl1c_post_phy_linkchg(struct atl1c_hw *hw, u16 link_speed); #define PM_CTRL_PM_REQ_TIMER_MASK 0xFUL #define PM_CTRL_PM_REQ_TIMER_SHIFT 20 /* pm_request_l1 time > @ * ->L0s not L1 */ -#define PM_CTRL_PM_REQ_TO_DEF 0xC +#define PM_CTRL_PM_REQ_TO_DEF 0xF #define PMCTRL_TXL1_AFTER_L0S BIT(19) /* l1dv2.0+ */ #define L1D_PMCTRL_L1_ENTRY_TM_MASK 7UL /* l1dv2.0+, 3bits */ #define L1D_PMCTRL_L1_ENTRY_TM_SHIFT 16