From patchwork Tue Feb 17 23:36:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viswas G X-Patchwork-Id: 9950971 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 84E4D6038F for ; Wed, 13 Sep 2017 10:42:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EAF528F7A for ; Wed, 13 Sep 2017 10:42:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63A2D28FBD; Wed, 13 Sep 2017 10:42:21 +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=-3.5 required=2.0 tests=BAYES_00, DATE_IN_PAST_96_XX, 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 D89A728F7A for ; Wed, 13 Sep 2017 10:42:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752236AbdIMKmU (ORCPT ); Wed, 13 Sep 2017 06:42:20 -0400 Received: from mail-by2nam03hn0209.outbound.protection.outlook.com ([104.47.42.209]:61904 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751905AbdIMKmQ (ORCPT ); Wed, 13 Sep 2017 06:42:16 -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=8DCvp7qeMQEd8XeqNa2vDfhWc3RIqed1zF0cTD7Y+CU=; b=dFJ4RSo/amrrkN8f4hSuOhmw9ibYXeJHHLWhezLBScZT4msxkEJL4OaaRXLQzsAXEhFIeH1U8cGVkV2UIfIbDEa7fWm3d6hZJ+4mxBsUmZn6Fyz6NOp4+Zo1JlyzQYgkVK8PCzUzGIFUJ6+FWDOGawFAdI4O5Xofa0vFEAwTMkc= Received: from CY4PR02CA0004.namprd02.prod.outlook.com (10.169.188.14) by CY4PR02MB2199.namprd02.prod.outlook.com (10.169.180.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Wed, 13 Sep 2017 10:42:14 +0000 Received: from BN1AFFO11FD021.protection.gbl (2a01:111:f400:7c10::146) by CY4PR02CA0004.outlook.office365.com (2603:10b6:903:18::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.8 via Frontend Transport; Wed, 13 Sep 2017 10:42:14 +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 BN1AFFO11FD021.mail.protection.outlook.com (10.58.52.81) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.13.11 via Frontend Transport; Wed, 13 Sep 2017 10:42:14 +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; Wed, 13 Sep 2017 03:42:11 -0700 From: Viswas G To: CC: , , , , , Subject: [PATCH V2 6/9] pm80xx : modified port reset timer value for PM8006 card Date: Wed, 18 Feb 2015 05:06:47 +0530 Message-ID: <20150217233650.9091-7-Viswas.G@microsemi.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20150217233650.9091-1-Viswas.G@microsemi.com> References: <20150217233650.9091-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:SPM; SFS:(10009020)(6009001)(346002)(376002)(366002)(39860400002)(2980300002)(438002)(189002)(199003)(5003940100001)(189998001)(104016004)(50226002)(106466001)(76506005)(86362001)(57986006)(77096006)(50986999)(76176999)(1076002)(69596002)(4326008)(68736007)(110136004)(2351001)(47776003)(36756003)(8676002)(81156014)(81166006)(356003)(54906002)(2906002)(316002)(5660300001)(53936002)(48376002)(50466002)(478600001)(8936002)(6666003)(97736004)(305945005)(6916009)(2950100002)(5530500006); DIR:OUT; SFP:1501; SCL:5; SRVR:CY4PR02MB2199; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD021; 1:7DOwSd97YjOltm65FvYjPygNQuE5cW+tybmh+oU48uzOMlaWwunY4K1dTZwOSh7pP1q3JM/zV5On1dJQQq/gUBf7IqSLjsU7A6iOxS5YnxhlaVbD3czBXnhBdfvwr8r6 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 40b193d8-03a2-45e4-1274-08d4fa9418d8 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:CY4PR02MB2199; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2199; 3:ug+SCSVgxUyFB4kkVnBtAf1Cw27UE5pfQUfRlnaPjjqe3pJH5NqS29JrfZ0FQT641A0kyGnEC6aGZK7dUYEA29D7dDhoKc4ZSLnIEpshnPs1Upfj8xfO8nMAxttCezvBgYRgCKLt3aauxXYVY7d4K+xS7KObv6rq9zQYy9ECaGnMeOEPZLG8lZkhTikb/uGtkND3BJWI7abXyoz8l0j22O0v4cn3me1ylCx0wEL7K/dxhh4C2yU8y94PbXuPe4WX6ApIVOdy4B65sHm1dITnScPcVMo2s1smqwYbi3ujhMIuUhBAaPki4lsAAXntcZo41UCAQOoZAmyu/+tyaBF0GSw6bqlA3+fl3O0BHw3SeMw=; 25:jzh/ZOPiGslLPcWel4Et8eZb9tOZ5HIJLiigzX68rcIFmN2DGzhBnrsLtvTVMHDJnWFBrFcqAHdegSj2jlcxlJO0728frHCT2fSeCPoRtGH8kBIVE1FfX1yyVc5pbDgyi9/j5f5dUfqU0sIRd6tUDa5X67e8o8QkcDFZ+ZpK3preFIKXyMpZyerIS485mBTVaW0OzRhyWU8wnxje8zV/fdQRJwdS4TqXsIKZ+tCRYm+d3MP/W3dCuAWrjqWbzP42uVcFggWmO9QlSB19CIqBHK/EFN++nMWQkCaLTjbf2Motv1yw1Jui28P0wP/CzcWIZFwqOMA1aZexxY1+s6paRg== X-MS-TrafficTypeDiagnostic: CY4PR02MB2199: X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2199; 31:qVT7K7+V652ZRv9af8HaPjhHxCMQCgUH3FZri5822TZLRQqGuueRQq0/ZzYH2ehyaSEFaqVo3buj5lTVtCZJ+A/1a0swUmaH4gsozzP2QgM6gkeI2iZNI5BQgCt8hF7guoYRpa2/gwoxoynXG60OvAAvGfXRIqdh+fDD/ivzqbFPT0x9QLnWZaEr1tSH9vBHiecW/OmCMld/zi179ERAufdxgECPzo1BgpTBPjTv1s0=; 20:e6ChdH/R58Y5609662/qI9jWjiWA/5uk0AUdFBmCv3m++PDITVOeCpWMStPCKihEb8YY/CyJdxiLZ6aKyuHrDl6VyZj7AVrtJAit0yT7scspugb+gqdeUY8lu3+ccH2+kCkas9Mq1KQ8P/OQdRwQcBkJ2wGbNZwVzdv8t1l3M50U+oZ6jRzI+wvjU88De+x5BPXOu50/DpJewPA47BLzZnbnBPXUG9YpSzVXprcYShhFpJMak3zviqk1ldEsArzw5CV+svt75En1RGs+2NMdSwjKqfF++D/OWyoD6TAKHkKNrLtnNq0N9i8aBmWxfMYSzpUzsKEubZo1zNy9I3onKZwBFrLpKNwNwnp4M8j/y8NjX/Qne/jhQMV2jKtVEEWccpjxz2vicNRVsEZiYb+JWUblXuf0NWqkfwA/K8RWj2NzgIOpwDYjcJfxOeEuj9tT511T+Xgf9n6C0DqeUWCJ0Gqm6X90gxKS68QPpjUrddP33XyUDctNdy9ic3XXS/C1 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)(100000703101)(100105400095)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR02MB2199; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR02MB2199; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2199; 4:0YDqJcOnz2a6HX+ob/YWBiLoEiKyJ9m4zOGtzfjSHr92CfSjhfjQjKzktOIQ+jqRt4oOduKGc+WR2Tu8IoHPg8+SAFpp+iu/XdJTcDOlTSppGppjdI3F4ih1RCPDlhtBgbDP8kJr3pupwt6bNb0fxRT+PHhOq1nyy5Rbe0YqsW+qojxZ71V0BSAuza/550iW07G/TMlArQhsaZin8ElNhzL9je21me590HDeC2jnRirjpw/VvYIlg5TOPVG07tD6dyJN3//QMHygLbUKYfCpI2zWf6YRwKT38eqOFzb6p/Q= X-Forefront-PRVS: 042957ACD7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR02MB2199; 23:0izt9mIy/qSNsoa9KsNBvjfgch/yYB/3L7isg+kVu?= =?us-ascii?Q?PWahvHfc9S7W44B0X12PjZ+a1KHUgWj+QmfCMTWhohJLFPk465A1yjyqahV2?= =?us-ascii?Q?X6JUp4Fr3bXc/0nuYZs14TbBqCnB4NDM5VAoFE8hZDH5EQdDKGjLtHtrTR7O?= =?us-ascii?Q?wC8H9Ysr4taLbgbHJvW6e0LfLm3JrTE28zByAFMrAO+2jLttJQD0xja62QrM?= =?us-ascii?Q?mFdz/wChZhKQfo1tUjN4pmdm2I0aNulDf0/dvOvbadpQW4tD2mpLRyiTmN60?= =?us-ascii?Q?Z+QRlwt+kn8em2KL3VjxvRfYnpZI9A+DZncwDLfKTkZzqdC5c5fbfluiJ1ek?= =?us-ascii?Q?r0mhoBCmfwnmsomqInTU0ObftGa9lE3nYBgdeTuxIZJDdraF+DVjmiigE/KD?= =?us-ascii?Q?bQOOXEP+qRGdeNQNzKQEtQW/F2m+yeG4y7YaIbUj4AzXci+z7yEm+n7OnX98?= =?us-ascii?Q?8As25ai4g0bxWw5pqkUJ0HE0rYpZbJaTxIwmh/ozxTsoNYujchSBS2QAb1jO?= =?us-ascii?Q?niiYYVZcSgVoDK975vnHpet61c0eC8K9bgDTKsAJhWjufOemhxH158RYK5QY?= =?us-ascii?Q?+xPcFZzjF8TrNWEcKHNLbaHTC/JmJNnxPjnRxmweE8jpyZAYlTa8t0LlCe0P?= =?us-ascii?Q?FS0W/E9YMCdgPWpfLtHRL4pVVzIDMUi3ZOgk4NeUEkVdbEtCup6xt5mINL3O?= =?us-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kYPJQ6i+Ew9KhktKEnna4u8XjEMuUJUmIaskpKhKadtmDv8ATXQ==; 24:By6XevSlb06BE6j3h00c/oSoly7pSz5jPt7rwfuDd7PE4c63zt1YYB/NmY5z+C/bRb0uR2ZcvhRDb8qqxU4IRg==; 7:dLTaPplYRTywuTxGqQIB7Waw07eluxQla3GuelOmkAqZFMLBaDasuW/bbjHUPE6JaxLg9GrF6eRe+M0JP+gdqFBNu99KQ6RWxeQ/E5GYp6USuNqXSSXSbIP14WoS6mty5FqL0z9ucjTN60c0bXR499iyYdlHGt6elkqX68/u2NtLYdqiB3FdL7JI+J1+n6IapKK5G5/YPkvEzrRQnpxLu0EQIQXMZ4nzC738GN27yjs= SpamDiagnosticOutput: 1:22 X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2017 10:42:14.1724 (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: CY4PR02MB2199 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); }