From patchwork Tue Sep 19 17:10:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viswas G X-Patchwork-Id: 9959703 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 996CC60208 for ; Tue, 19 Sep 2017 17:11:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 841AF28EF0 for ; Tue, 19 Sep 2017 17:11:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 732F328EDF; Tue, 19 Sep 2017 17:11:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6EF828EC7 for ; Tue, 19 Sep 2017 17:11:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751520AbdISRLD (ORCPT ); Tue, 19 Sep 2017 13:11:03 -0400 Received: from mail-dm3nam03on0061.outbound.protection.outlook.com ([104.47.41.61]:32425 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751396AbdISRKi (ORCPT ); Tue, 19 Sep 2017 13:10:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mscc365.onmicrosoft.com; s=selector1-microsemi-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=LP8ZvmXJAk43ck9oa5nOQ8hVsz0vsUZUnyn11864bJE=; b=Y8NdDM871VDtQlr52BaLfTe36GzQomnZZd5Aqq3r1MiNBPDyqXc+Qcr0aACWdjjui/uK5ZwFiw0VhpdOq+i70EOYoceqfzHzYWz8sY85mYkgTiqdml9HT0ygABsrYr8MVnf6ZKiYceHcjfznGznZu/oDxN9jdWSDqIOnlB3NLUA= Received: from CY4PR02CA0021.namprd02.prod.outlook.com (10.169.188.31) by DM5PR02MB2203.namprd02.prod.outlook.com (10.168.173.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Tue, 19 Sep 2017 17:10:37 +0000 Received: from BN1AFFO11FD046.protection.gbl (2a01:111:f400:7c10::186) by CY4PR02CA0021.outlook.office365.com (2603:10b6:903:18::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11 via Frontend Transport; Tue, 19 Sep 2017 17:10:36 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; oracle.com; dkim=none (message not signed) header.d=none;oracle.com; dmarc=bestguesspass action=none header.from=microsemi.com; Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.100.21 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.100.21; helo=avsrvexchhts1.microsemi.net; Received: from avsrvexchhts1.microsemi.net (208.19.100.21) by BN1AFFO11FD046.mail.protection.outlook.com (10.58.53.61) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.35.14 via Frontend Transport; Tue, 19 Sep 2017 17:10:36 +0000 Received: from localhost (10.187.72.81) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server id 14.3.361.1; Tue, 19 Sep 2017 10:10:16 -0700 From: Viswas G To: CC: , , , , , Subject: [PATCH V3 6/9] pm80xx : modified port reset timer value for PM8006 card Date: Tue, 19 Sep 2017 22:40:01 +0530 Message-ID: <20170919171004.10331-7-Viswas.G@microsemi.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20170919171004.10331-1-Viswas.G@microsemi.com> References: <20170919171004.10331-1-Viswas.G@microsemi.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.100.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(346002)(376002)(39860400002)(2980300002)(438002)(189002)(199003)(8676002)(6666003)(2906002)(48376002)(5003940100001)(104016004)(68736007)(76176999)(50986999)(47776003)(69596002)(77096006)(50226002)(8936002)(36756003)(1076002)(81166006)(50466002)(81156014)(76506005)(57986006)(2950100002)(6916009)(53936002)(5660300001)(356003)(478600001)(97736004)(16586007)(316002)(106466001)(305945005)(189998001)(4326008)(54906002)(2351001)(86362001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB2203; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD046; 1:9nUX0mZer/8JUpwQWGlrSVLdmcBjri24FEyS26Vpvwlop1qgBkfUG3W2TBnw6E1s0tLfR6+0kw/4fKPC0as9HvEGkU2BBO/4omXeHxBfVgvzAqFGi1jPR7/9uAFq0tKX X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 66899e96-9c8f-4185-e21d-08d4ff81587b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(8251501002)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM5PR02MB2203; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02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cLkoQMOwieQyGy0awQfPNnrS1cF4GMpibFOP1a+XmUdyee71YwM+/KF/lN+xlmFzQm/82EFRxMCyAXK2G+U8Qjl+xMcGbg9xKF6X3Xa5zm/CriU94MI7loE633J22/c7Q2Z0/WGNzap9dv6asdJThWkw6nvaTfAzg2j4wZkAbpCXxXwJnTFdsilerJyvMWJad6ttFvb22yKLqY6iF1E1LZoLsnBnuIJ7bC+ujyXtGzmRfxx+rjSbO7NMgXxKXm7aX6KMUSW2537c+80T5VXySVhb5HdrcfCgvRZeSAQxLg66nFxB5CCRouE2ErAbVtaF8MlQ9p0y4HJAkJ4w4Zv9yVDhGqT50gwAZ/GzfJ8V1cDuQQy9UuwhlC8NHY/EBn6CL0AufkEHGrzDhOJtWnnnso69TS3WWrQshXdZmJ9G4CWHhlLBdEzCH72U7WqAa9dU0xfy3/NOHLa9d7UPI X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93004095)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR02MB2203; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR02MB2203; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2203; 4:X60NRio432iaEh3H4x9lyqWAD1hvpoJEhVLYhuynFSvHR1OvnXX/MEHT6yLb1T08nmT93T1TPUsGRIapTIPrSYX3W9vdFnLebfhESgud+OZ/HWjlrcjqID4+f3UdphrtRQ2sW5k9Xj0VBm7vy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EPnMeK9G4HuGbNP8P++daKrc56/tTOKG4guRiqonfhz2ka9jbQ==; 24:Yn5MQxzUsq1+sz4Jt01Ag/CKuDFBOThHIiXmG/6/YT4NzPzGSRzz4lIxSR7qQ53m+DbBl1olT8FvpovyqHHtIBPTK69um5k66prPL5PC+so=; 7:kT5Y2pAm4mUk687nx85tukvobePErW5uGjtZ9sgZa6+ZJ9Ljh0o3k9or83M5pLNehba4FNPSdJk0hiAkO2ZXOWuYxuLUbpUYTZWalM/pNZCIr14aAg6kavJ1reHoqJZ1tB+C9P59EW796KcOUC2sroRNT77lTrR1ocykctePxAH3LNBas6HeEOgcWjfvMyhRnnJYOaWtHxILfo6hbGaxY14KcUYU59oT6MzCGg+l+aU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2017 17:10:36.2404 (UTC) X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad; Ip=[208.19.100.21]; Helo=[avsrvexchhts1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2203 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Added port reset timer value as 2000ms for PM8006 sata controller. Signed-off-by: Deepak Ukey Signed-off-by: Viswas G Acked-by: Jack Wang --- drivers/scsi/pm8001/pm80xx_hwi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index baab8a19c78e..8f1f5dc77d71 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c @@ -597,6 +597,12 @@ static void update_main_config_table(struct pm8001_hba_info *pm8001_ha) pm8001_ha->main_cfg_tbl.pm80xx_tbl.port_recovery_timer &= 0xffff0000; pm8001_ha->main_cfg_tbl.pm80xx_tbl.port_recovery_timer |= PORT_RECOVERY_TIMEOUT; + if (pm8001_ha->chip_id == chip_8006) { + pm8001_ha->main_cfg_tbl.pm80xx_tbl.port_recovery_timer &= + 0x0000ffff; + pm8001_ha->main_cfg_tbl.pm80xx_tbl.port_recovery_timer |= + 0x140000; + } pm8001_mw32(address, MAIN_PORT_RECOVERY_TIMER, pm8001_ha->main_cfg_tbl.pm80xx_tbl.port_recovery_timer); }