Message ID | 20171204224517.3409-14-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> 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 2ECEC600C5 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 4 Dec 2017 22:46:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20CEB29387 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 4 Dec 2017 22:46:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15B3E29446; Mon, 4 Dec 2017 22:46:05 +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 7CC6729387 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 4 Dec 2017 22:46:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752487AbdLDWqD (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Mon, 4 Dec 2017 17:46:03 -0500 Received: from mail-sn1nam01on0075.outbound.protection.outlook.com ([104.47.32.75]:8167 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752434AbdLDWpq (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Mon, 4 Dec 2017 17:45:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PM0BwbYDHkl1whyqWlN//m6pB8rFH5GuAvgLdMjGllw=; b=orpXwZKBGbN1MSJ91m5nofWhnWlNvlsi2pTgfNE8qX+zSQiFMsM/g21UmbbxEGyeGqIFcvm1OnKs4ypm/FhaSRpvKhhkz76yLyxhEX/Yj0kBiiSBY1dyaMKwFrUidAhDHS/6PJxCZW6fTT55Cj1rOI/g679yDc8P9WHdfpVoqdU= Received: from CO2PR07CA0066.namprd07.prod.outlook.com (2603:10b6:100::34) by MWHPR0701MB3820.namprd07.prod.outlook.com (2603:10b6:301:7f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Mon, 4 Dec 2017 22:45:45 +0000 Received: from BL2FFO11FD054.protection.gbl (2a01:111:f400:7c09::184) by CO2PR07CA0066.outlook.office365.com (2603:10b6:100::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.282.5 via Frontend Transport; Mon, 4 Dec 2017 22:45:45 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BL2FFO11FD054.mail.protection.outlook.com (10.173.161.182) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.239.4 via Frontend Transport; Mon, 4 Dec 2017 22:45:44 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Mon, 4 Dec 2017 14:45:20 -0800 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id vB4MjKSY003497; Mon, 4 Dec 2017 14:45:20 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id vB4MjKJW003496; Mon, 4 Dec 2017 14:45:20 -0800 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <himanshu.madhani@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH v3 13/22] qla2xxx: Fix PRLI state check Date: Mon, 4 Dec 2017 14:45:08 -0800 Message-ID: <20171204224517.3409-14-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171204224517.3409-1-himanshu.madhani@cavium.com> References: <20171204224517.3409-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(2980300002)(428002)(189002)(199003)(101416001)(1076002)(86362001)(33646002)(106466001)(2950100002)(105586002)(6666003)(36756003)(2906002)(5660300001)(47776003)(4326008)(189998001)(69596002)(51416003)(50466002)(48376002)(80596001)(87636003)(478600001)(305945005)(8676002)(8936002)(81166006)(42186006)(81156014)(54906003)(110136005)(50226002)(76176011)(316002)(16586007)(72206003)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR0701MB3820; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD054; 1:OCuY4KE49Xxebmt9wf3obcdU7LtboAHTwKDfB1riNYNyo0c3RcmgnW81nsacRl62oqe7545d2PNa+CIjNpGC/p4X52VpdAhn+gM3awxlIM1d20sHCmnvFHixxLuh7UVi X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 83e4a070-dc8b-480e-c954-08d53b68c171 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603286); SRVR:MWHPR0701MB3820; X-Microsoft-Exchange-Diagnostics: 1; MWHPR0701MB3820; 3:dwpTmNt689FGhmxy/AE4Oojlh10cks/l+CQr77ChbKTz5kgl+Tgbpv6gd6A/DicluAxJBZqCFnTohtZ0oxMeEco6kVyl9lv0eKRbhMjM5TcbMtpvF1F6DOqVsFesr4PcmOil1J+ddLSSI/cqH6dEPH9Nm3AO9U7gMSU/1DI7hUZ7g10eupdKnHHzIdZUMQ4FhXXf0D84RSxgzTdUV6XuxSrFdD3/lwGgZm8x5155MeLOqti7I+rdN79olTfTr5VS2k2NCV2PMSOCCQEq9hKH+5A3Q4IPRuG0DWVLvqtsx6hHuR8mPWHnYp9Ua+3xAYpaX5JvQYj6G0i5tSBQCj6htaBSgsHdYfLikMVpA/R4rO4=; 25:r3Q5DRokVmJDl0QajHu/P5nh1n7poWBTdPbd4hkC41I5QNuJ2enkE530DTnug2AnT+lA5gCt2PjGhjkNx4DOWREyUvDTXwQ9DKWcojwpmRqmttEH6NL40fhLGqEfoL5GMJioIWB625jJ6LHWW0uqA8LmtHA92+IsO3R2BzYgLisB7dn2WCl86c4ZuXlzP49IBVWDj4SnRiW7KtjLMwXRvt7vMzhmsPGpGb12+XhXj8JU9q2Jv0FRk1EDVcPDsxqn1yjsO6Lsu+Qac43NYNltZX4gLindXG7ViOFVCOdQ4ebLk0rEhItPy87xm1HMWiv1Bq4Ee4ah53wD74eEDDqLAg== X-MS-TrafficTypeDiagnostic: MWHPR0701MB3820: X-Microsoft-Exchange-Diagnostics: 1; MWHPR0701MB3820; 31:UKl2qwBMZQwFM7KFGqAMBvg1I9nqqaM/PxJdsf3Up2LCG6dEEkXXUNVvLZU+DB/56ku/wbyOQTuUFwJVlGel5TZyi22vr/8FRSFiju1byTEfe7dnrW+Qk/Mo8m+1vlnkONZjvMB6UG6G3falcXNm3qz9kPOtHidGbXWPWAeUgyICCwWACFaeqBKR5LtG4617BT3brsDPaneTO6wmKIC7ktaqxozftyW9FZwykmNV15c=; 20:crCeEqoBqibaLhEIBT0++A/zb3Bj5nZNfMCa7PeegSKCUnFkwFmBOih7oB0Ss0LL3S63piygByXolsOnAM3wKt6VdZRXTXXAOh4TEPPfTM3mfAQNXp378GcMv698vTbQuvEs9ppwzH1rDiGmPGZo1M6pZSXTvZVMWV0Huf6RcKtfylLqeyRBDiWHZgVltH+2d/SLyzjzAhKQZSpB7Hh/A1dxnouwx4HdPK6u98RfdSeiRqu35Ym3yVayxajblsN/SKkn2u1D0tbFF/O1JxuVRi7RBUqBFrXJOgQ2tbUCT1IEwY2PULHCuiZr0ud38ZDHDWxPXJg4GaFOm9hE38RE9EGaOfYaP7CTa895TD2z7ytBDCa2KqOyteXr7mOkklEGjotQlseR83cnXNduK9euEp5zqnM2QqA2TyXZY5+Q0HyTLaZvniy8uFop7YyN0u7fOPEK3jtXGc2zJyNLX8h+nD4QpJcOnaAGMsGGGaIqmaQM91NhqAJQOHNktW6JGDhI X-Microsoft-Antispam-PRVS: <MWHPR0701MB38205137E526F2A9BE5ADC5EF53C0@MWHPR0701MB3820.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231022)(10201501046)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(6072148)(201708071742011); SRVR:MWHPR0701MB3820; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR0701MB3820; X-Microsoft-Exchange-Diagnostics: 1; MWHPR0701MB3820; 4:FSM8LarUJVodD5pwmlWdai7ykvWQkizL8U87JlkpZsKR/pqCf2Ae2ee15+bf7EvHoE5NQx7U41Z1M+a9I/NetsYtdK+sMbuIaQyz6tYacyVuZB69hQ70HjfWnsaKNJ+eHmQ4GQaWEhzqhfTqEai39C82Rr12nzSVDi0d3RHrzCzVvxATn9fuqAlY6YgebIAzigzf9pinLgS0lA7ebVhX0OKXZyXced9KDrWYwG/TTdNjq6VQkZExAyW8qfe5BDhnzeUUPN2dw5RYPX41pe04O4M0t6DAFjgXYaESmE8WbuE2z3NbPWShmyh8XerTyiGC X-Forefront-PRVS: 051158ECBB X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR0701MB3820; 23:PwU7WAZnG55D4F1w1VtZFsqiak/TyibO0Bv2EHi?= =?us-ascii?Q?+RT58n+mw3RxDc13pmVftZQhTexXNbX64u1zwiP/cyknL4t1rpbrZiGMUW4h?= =?us-ascii?Q?/yqmj6qxX1XQOfR2xhZG7RlToWxCo7UL2ZopoZSenZ5N5PBmR5yHARd1RrV+?= =?us-ascii?Q?06eNYM2TRw0xucaHfsen/YWr/Lf5FueVCIYYO5Q5UpvsT/dVmG22iYDUlxxI?= =?us-ascii?Q?8vjN/DnG5V92Q2wbsWTdtuubUFk9/Up9nTzo/2id7cDoJo9kjY3WvVmTz5Kf?= =?us-ascii?Q?JfnSOMz2OAgo9b/Ad535B7VoYPTgrkFZTPLcwxn/+qsHHIXkgrVni9cYXUx1?= =?us-ascii?Q?wQMvJxX8Ox1PWWQhfTWoezFYveipztcJE3W3JSlyK09cEJUaheJ2lvLUfDIl?= =?us-ascii?Q?a6Sxz1EHruEgJoDZHSUv16wVwSqenW8rcrOaqVijFb0b5GS2XmEE5zEU0Lqh?= =?us-ascii?Q?9iE7DTJoSqQjYIfwu/q/7mZH+Hp3jymaBcVCX2SIdGVBLucEjuCWGLOGlFB8?= =?us-ascii?Q?UKCmeU7vjnb8KKskwM2WimQpkFaULj+9X3S/SDVA3sNDeIwvmNo2OINOA3x4?= =?us-ascii?Q?Hz6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wROoNQG5YLMkYPZM9kQmRo=; 24:MIjomQ/3qLjZx+dURBMToOALn4Wd37HuY1XpEa5w0Lprwy8hpDOLHpHUNo4YhemBDBcXlsqE5OovbTlcnxnc+kSp4vY2+WsAsPeEogDbRIw=; 7:ZepKOEpzySbUucKA+YD8quAev9l2O1kP9br7ShN+gQ4a8dOhjV89C7XI0HD1f2oZ5fsQb3XUngIOKDUQ5JbBfXE+xwqtXZPqrAFMkH1dsH3ZPuxlhoPgBHmumrQyMUgtqKykvCnU7ss1NpV8YW67fa5q+QVupcpQy1SvRWwtHFbfe52rSPOL0yQN1pWb1L+k1LxrJdZFYuAqpeZvipok7KlMn4tMxPnDhZzJDPUpRA2A6INBbcP9TYKoT3MEyHEb SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2017 22:45:44.7458 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 83e4a070-dc8b-480e-c954-08d53b68c171 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR0701MB3820 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index cb717d47339f..e2b5fa47bb57 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -6160,8 +6160,7 @@ int __qla24xx_parse_gpdb(struct scsi_qla_host *vha, fc_port_t *fcport, } /* Check for logged in state. */ - if (current_login_state != PDS_PRLI_COMPLETE && - last_login_state != PDS_PRLI_COMPLETE) { + if (current_login_state != PDS_PRLI_COMPLETE) { ql_dbg(ql_dbg_mbx, vha, 0x119a, "Unable to verify login-state (%x/%x) for loop_id %x.\n", current_login_state, last_login_state, fcport->loop_id);