From patchwork Wed Oct 18 06:09:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viswas G X-Patchwork-Id: 10013481 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 D1A8460215 for ; Wed, 18 Oct 2017 06:09:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C229727B81 for ; Wed, 18 Oct 2017 06:09:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6E1728AAE; Wed, 18 Oct 2017 06:09:44 +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 C9C3A27B81 for ; Wed, 18 Oct 2017 06:09:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933752AbdJRGJm (ORCPT ); Wed, 18 Oct 2017 02:09:42 -0400 Received: from mail-cys01nam02on0082.outbound.protection.outlook.com ([104.47.37.82]:36672 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933542AbdJRGJf (ORCPT ); Wed, 18 Oct 2017 02:09:35 -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=5JV0HbHKI9Z6ZHZz2T8CI4fe2qgtl7qmrAOahzY89R0=; b=YPFWy+ZsiBadDtIWI1r2FXsVSptDnlmf4FfIkc0Deu2o1WHDYv9vvtP7wgMSpidj1R6epz08OM+Jont78seCwhmNTLwgXdHDDqUl/9VeMHb81nczChxRZh7RbEkVVMKAJTiL51WMc/Qv7P2qQBmhVOvJEoJRjUJDp53Gj22bWSk= Received: from BN6PR02CA0081.namprd02.prod.outlook.com (10.161.158.22) by BY2PR0201MB1832.namprd02.prod.outlook.com (10.163.75.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 18 Oct 2017 06:09:33 +0000 Received: from BN1BFFO11FD017.protection.gbl (2a01:111:f400:7c10::1:144) by BN6PR02CA0081.outlook.office365.com (2603:10b6:405:60::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.21 via Frontend Transport; Wed, 18 Oct 2017 06:09:33 +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 BN1BFFO11FD017.mail.protection.outlook.com (10.58.144.80) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.77.10 via Frontend Transport; Wed, 18 Oct 2017 06:09:33 +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, 17 Oct 2017 23:09:29 -0700 From: Viswas G To: CC: , , , , , Subject: [PATCH V4 6/9] pm80xx : modified port reset timer value for PM8006 card Date: Wed, 18 Oct 2017 11:39:12 +0530 Message-ID: <20171018060915.8549-7-Viswas.G@microsemi.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20171018060915.8549-1-Viswas.G@microsemi.com> References: <20171018060915.8549-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)(6009001)(346002)(39860400002)(376002)(2980300002)(438002)(189002)(199003)(5003940100001)(50226002)(16586007)(106466001)(2351001)(356003)(189998001)(57986006)(4326008)(50986999)(478600001)(316002)(76506005)(69596002)(50466002)(104016004)(1076002)(47776003)(76176999)(8676002)(6916009)(5660300001)(2950100002)(36756003)(77096006)(48376002)(68736007)(8936002)(97736004)(106002)(53936002)(54906003)(2906002)(6666003)(86362001)(305945005)(81166006)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB1832; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD017; 1:lls/JMUsIbbDTvIWw8PqrWSLGHpof+OEe928v7cBMTPaTOOc47N8OMTAxXd0ZR9I6/psYlJSEtAw4LHQOLSkkupofybaJYRDRCk8fvRyN9tUeCmebZM+WiYfV/Xz15TS X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6b1ced73-3f59-4966-0a9a-08d515eecd91 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(8251501002)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BY2PR0201MB1832; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1832; 3:St/HuI05IRLk+Nk3VdsTVUgmKo40dUPB1nWnXctOWm0zjFsKSn4nqvLzHRUka3iw1XRBlPuQPnKIwoxSe2MfkvK2XmVwMJ3EWBUV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kcGc4/vxTdUtuEiNv2vCLtG6Fi2LKe9nOQK4Un2rUCshUVNolDTREfU5XXrmFq6i3wUIoHlodvp7myA+TjCALwU7EvorfraD2X3uMz89HKjAI8ubb4F04ip6Ul07oscyF63zUWW77YAlZLHe1pJsFbs+NHwZUaf9q484MRY7AxjcO9eaVJP3i4AqkRGY0vOM5rMwZXH0BPwqfKl8Lk/BTIaZlEOQr7dtzPZONxKbJYTSHC80PnKvqaQ46vkxnYjnKoTerI2c7IkvTxlBgYvobGJOWEIDJNakeU4vxks3CrOa6svZ2og26voVGpr7/FC9V5XFdxoU5JxRpaqXEJukBmpuEGElDBURGmYfmXzJet 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)(93006095)(93004095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR0201MB1832; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR0201MB1832; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1832; 4:qg8Xor2xvwogr8+/8H2MHseNNjOqG34kOzEDU32b3eQcl7B45AisZavSPCQKF1p2mf3pmgynAOXjxqJz5IDfNg3HSJOfo7n0iXBeMO/TnrzgI42aCmSFRW9hp+a+eHjWg0rzVixQevN6xROiu+CbnndnNWnKQM5Pk50CFhYzav9Bxlg/T8YV9tK8q8oLp9bZ5RLA65rkccUQuapAV33FJMSOIZsdLCkeNNFdk5/1hrUuUEGPCDc1Lk0TBHxEE+n6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+41Qte/7z8QWkzvipIjLOZhYbWOmZyijk4HFgtwt2qJuR1urGz?= =?us-ascii?Q?GHo4F9TvZMcF97xZGKzpwzZWtNzgUdUvhS1KvlL1eo/jkXivZTwKoke24JMM?= =?us-ascii?Q?wTqxJkqP6k51Aso3HIrrcCdlT7Chywit5MOW/qQVKZCIouC0dvCOl7atgSfc?= =?us-ascii?Q?cvz20POlxNMYb2rhY9Lw11nfAOzDEGvyLjh5JPGo6J+U70gechsCdDjWDSOm?= =?us-ascii?Q?ODpWIsEYUGdQPtKoe3twaokGR41WB0FXkFEi+GWuy7l+zqcHvk5qWk4FSeO0?= =?us-ascii?Q?JLfDotKP6HeKpYcvz18ul+veznVfJYbU6Pt97dP2qptxaa/cvtw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1832; 6:fOL9WB7k+73CBRJe+zGNWqc3GRliaR5/cEYK4vLxCC3n4i+R/yb0hVvSPjBCLDLTkjGR48Cmas2YhUUmArDAFbaQ7rJNnQlUixqZW2VFlctVqciIw7sjNmuUsvJw+zujc4bRQxK4GL3EHvggaTcMdZ5FKitiSYCdwjCdyWbsmHqZTafE/CzsB7nm7C4mS5nAz5iu9Lx8VJE4i7X5pH5MTp0dRCl0R2hrm1OhpZA+XpFkDWJxYcZeCRle/RyH6Y9AO+9YAfDHIy2RsbwDIw1VDjKorAKiwIlRJxjaQwV5qGpuT5tGXsyS940pJAOm965GSzU9GsaOX8rOzx/hZ1E03g==; 5:OCEd9wc78G6C6ZhXVamdkqehl4JfuWBwcI+MVqxF077LmBzHmO/TyCLpM22LMmdCHrHhpB0MxFn4WHtelf6+4TNinlgiQBsePLR/s3a4I3uYPTct0yKWNo46VHl991zdbtqFu/Psl30fB5E3uGafEw==; 24:q1L8HdFPshRw075EIA2mGaCa9J73EMyhKMrxTzet7ZykMz0JoS7510EFhe22RpVnd4LpQs7w+3fsTZVLxOg9boIuL4sRTIAyDoTlvVGs+J8=; 7:pfu3lroELZIUeogZpgMonkrMLJlpXCjApyLg183tyTjDQ1a923m1BBz3p+10m4reE0ybSCgfJ/nVRqXfn6iApkBsP/h0yrLeYf1tGCVS88Fvo6Aa32i6fQ2AZE5accGb7dtQOUc6LN9+80dIuqJil90OkB2oU7o5X19ZGABCl3vxogdDhD9+lP+lqNMxN0ky5NVyjsUkxmEpP9ppr/BX3C5+NhQGFTfuc+1uNcggr3c= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2017 06:09:33.4595 (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: BY2PR0201MB1832 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 097096bf4bb0..5d2a4a38bf73 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); }