From patchwork Wed May 10 16:39:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghava Aditya Renukunta X-Patchwork-Id: 9719275 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 829CB60236 for ; Wed, 10 May 2017 06:24:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71FC1284D5 for ; Wed, 10 May 2017 06:24:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 666CE28552; Wed, 10 May 2017 06:24:39 +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=-5.0 required=2.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, 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 5C5A8284D5 for ; Wed, 10 May 2017 06:24:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751301AbdEJGYf (ORCPT ); Wed, 10 May 2017 02:24:35 -0400 Received: from mail-sn1nam01on0073.outbound.protection.outlook.com ([104.47.32.73]:32485 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751235AbdEJGYV (ORCPT ); Wed, 10 May 2017 02:24:21 -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=U5N1JRSWBC+RlL8B42aspmJzjuq1u/DJ7/h5FqU0BX8=; b=k7uEmfEQxQVA/LZDPgzZAQvH7C0EDsZKkp65Wx+2FhaXPnWqnNAB8fOCkcglt42IZMyYeU0IdTD6r2WACCjSiTUXL6++vcXb+9w9uEVMxjBVwF5bRw5N5FAHWC4MNzQSWPzWGkIxX2iu4GTHW53F1S+X0SZI+c4OCNAPQV84fFg= Received: from CY4PR02CA0035.namprd02.prod.outlook.com (10.175.57.149) by BLUPR0201MB1889.namprd02.prod.outlook.com (10.162.239.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Wed, 10 May 2017 06:24:19 +0000 Received: from BN1BFFO11FD011.protection.gbl (2a01:111:f400:7c10::1:195) by CY4PR02CA0035.outlook.office365.com (2603:10b6:903:117::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Wed, 10 May 2017 06:24:19 +0000 Authentication-Results: spf=neutral (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=microsemi.com; Received-SPF: Neutral (protection.outlook.com: 208.19.100.21 is neither permitted nor denied by domain of microsemi.com) Received: from avsrvexchhts1.microsemi.net (208.19.100.21) by BN1BFFO11FD011.mail.protection.outlook.com (10.58.144.74) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1047.9 via Frontend Transport; Wed, 10 May 2017 06:24:19 +0000 Received: from localhost (10.181.72.13) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server (TLS) id 14.3.339.0; Tue, 9 May 2017 23:24:05 -0700 From: Raghava Aditya Renukunta To: , , CC: , , , Subject: [PATCH V2 13/19] aacraid: Rework aac_src_restart Date: Wed, 10 May 2017 09:39:47 -0700 Message-ID: <1494434393-17261-14-git-send-email-RaghavaAditya.Renukunta@microsemi.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494434393-17261-1-git-send-email-RaghavaAditya.Renukunta@microsemi.com> References: <1494434393-17261-1-git-send-email-RaghavaAditya.Renukunta@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)(39840400002)(39860400002)(39450400003)(39850400002)(39410400002)(39400400002)(2980300002)(189002)(199003)(9170700003)(77096006)(2906002)(356003)(106466001)(57986006)(189998001)(76506005)(105586002)(4326008)(72206003)(53936002)(81166006)(8676002)(47776003)(305945005)(8936002)(5003940100001)(104016004)(50226002)(5660300001)(54906002)(478600001)(36756003)(6666003)(2950100002)(50986999)(50466002)(76176999)(86362001)(2201001)(107886003)(38730400002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0201MB1889; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Neutral; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD011; 1:MsOQCnFdo5yhiJgMc9ib4KqsnWlYzx3tfpnneyO4E3poB9kSo/jn9TrWoeq8irFGLzTaxrEq2fCYcFIG/mYJSAsIZkmI8MF4Y6opoFEYG9dOWm01t3T1UUJx0/a0v4xvIiZkP3itkIf8i44GPrk6Evj0OpP1RfIuVsuZ/XbV75wIM627E4N2NHsaKDH7r2QVnZlKCLnVAEi9eZjP/NzKYvrLIMS+a7EyzjTQFXxAZBuLZRvXqf9Ln2vVP2uGhemw2yqFoQxOkvuLtKglUtlwjh2J/LrxF7rAPcn8P58nGftYmnoWiZhUpKhyYtrolxrIaUAizcBehTqUKCnto6LqHcKNwGnhq4Dxxl6vGgQmdb0AYfuzlvAJQ4SsmOaQ+H8BH0ZMUzLmdFjNKV1EAN2d4khbhZWG3YozzhcBScyCJ92kkcDPGqOCamQ2eqQlamDED383D22++CGv7HQKW2i1qmjnReMW7fK+19vKymoR7o5udQg8gASQm5MfgElJqL393oJJQF5xbSMzH//+tSja8HCLDRCj9RYY9eJi5WFs/9Y6sWiQleHkjZob7jjzhOp2U3Dre8TvDL6JyqfK7s4phS/HXdp4JqX7B5ulur8X1bystJqWSJIDKZG6gi3jpAKT X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 91998aca-5883-4c2c-606f-08d4976d30f5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BLUPR0201MB1889; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0201MB1889; 3:pWq5HkROMspgUYT4Z9wjbz/oGzevEC1W5RFvB0I095fJ9QWQk/VEEKvnacTf/bZ8caOvFHa628bhO3a7Sa90NdHiprNYDYttvx6R+R+/aj6zyWEHTRrihT4Z8Vmq8V6aiSbGUTBOO3GgwKXr+SH5LALG8L/pnyuYtm1BQKsx+EWqnNIZlm4H3gWSmisw9Ak5vcw/tcoduDisnDn4+RwL3ExihdjGwl3nV+U2xdwmQH1hLxiO86mGGJjYcW2qRqGlFcxq+mA2RgAi+VoqiJ3kl64HvCdvUUGUgHDAcfPlvxj4CAlQHLVJb/QMZmjGGDk/m2RzyXWANLNCyhbktGRufGp+2vVlxjH4WvDKDUzdwSgZ7CpdbHwt/od9nfROV/abgrv1g1JmkHaRPJ9Ach2CX4VOlfA62bOH6AiawWVdhpjdU3ITkhFIYRKOVta+7vhMbghB+Mzk/RGqaaJBc+FzFBplYsTWrLL5TYT5i3iALKHcfffz9ScHutl1Eqb1XqSa X-Microsoft-Exchange-Diagnostics: 1; BLUPR0201MB1889; 25:x18tIqXEJ9ypormPkbSHtUDPURNhK4Pa6hQzC92NOh2RSQj8Z1jW9j9wD4BEc4L/SV9BjgvWjj6Aeews71+11BqaIGKZ8jrsHFeL2m3YyplanH71ceKCbS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CorubUJ2oxH8BtoMXdQooZdgMdr9Yp6DNT8DujtqosAW1FyeKNl1L5IupV26Grob2ABGY8tT1yvo7bN8JG+o3lHI5jdn8M3f406PaY0sJD3ou2s7DXadOMEzj7reAeaJws X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(13023025)(13024025)(13018025)(5005006)(13017025)(13015025)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123562025)(20161123564025)(6072148); SRVR:BLUPR0201MB1889; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0201MB1889; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0201MB1889; 4:IMBqoTiCR5aqvxko3m0htS2693DOB7c2iJCxEDiMrNQjQzrXpTO1zurc76RxINR4+J020iye5gEgLD6oaFHlVZ2C/OQNrXv/oDdAvfgskkAAwRomY3QN3MEY2KmbmncaFaWXwCklwWOe8nDE5nKWS78D7XpsJ8oomKhMc8zXsY45uH5B/4IMwPGpvHfpSgVxEtmflzla75yMrE48gpjTdV5Y21GOQdlO/p+MlQCriOXvTyqKXVfYPyx9TMC8qk0a3wW6KdF1n5c/bvoBMP0/7LzVFUNSoMorAh4qATHe4tXk1fX8/oI1iMN5SsXCFTkWgEx8cAeiUD0+nuA8msxP+6xDcJfAHAAtHwy7UU2+PUo2OERu1o4rwWqG59WJHULb+VvspS8h+pWkFzwhqTTvwZahzdItnthlgYM/OmAk+fbxDDXA8Z18Styf2TxJuRD2SZ1OUSJW8f8PoC8tUC+k3pce6Ktg7UymgcLGYiikJqs933m2hzq6lAh0kKz436xFQZfw4gupgcCnb/d1gcPLfYo07XUeaeOJ0Omu/f3bbBiUNSU9MwFQAGWbBHgFA2LdC2gbcyxdMNBL75QJZgbE3zWvDc3O9wXqlqS0nZluTIt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Cx2iLFEyFS5Uf98w072ndbvw+bFvOk0130Nr/cJUDfB1lqluZ/mwIjSxL82xNFASwbm0PRENMeq/3t1wye6314bE3yQHc9Jy1sEMesn6zAiE8KGmtG1J1BAWJh7nRzJdkLVImrFKklbK1NrYfPqtUM0rdPQSwyUNR91EivtSzXxLf4ijK57JZaizd72fLnKiv+TGY1izUilI3soU8TH45ipcFbY2sVz4JniCU8=; 5:CYZ1llFnsgNVwaH1cQVP3e9vGBnYGgKxKxnX7yhZvJWneEHYl6XcP6JaCGOBiOgfhepLCNTkfM1npTkc1xGnbM8+9T6Bs8A1hxu6ETgeHwxm13I4VPDXu3R4/FkwCrZpk6LVyDX4E04JugCl0oZnVw==; 24:BFnFZin2SIk9LzNpDIJof9P+u6qdB4QNnaynYPk4EJDuvc3q3vcdjuSoBGN+x7OEqAtqjISNLSItkvMaOyRwsPzNd9XXEaPKCcKWGsTEFTM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0201MB1889; 7:bdTBj5bvmGFWueY4A+HJV1u/k8YN44erf1VFYUraMCGuSeV86E6MnCnmVXaK3AeSPmIOy6B6PQLyhch2u6i6dgIo9zOJYJueKrPaMj5oBBrjAFQF/nndagO2BV4GHmG/Dji/EA/HzDl4ruT4NCXOK3GZCmPxb6VhhjCmzAc00+NMlvGcIv5ycPPwTCtWk70VVtRcc+AwEu/REMb//w9gbH9AXoc9ItABOYmhiApDRhP9raWDfccILcsR7PUM1no3YvSeLUWe5OExImPgpOWeCqETcm+ttwOj64Y6DE8qy5SzfGPFPqpnQleDvTclY3BXaC69QSl7iWccPXYdh6Oaaw== X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2017 06:24:19.1423 (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: BLUPR0201MB1889 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 Removed switch case and replaced with if mask checks. Moved KERNEL_PANIC check to when bled is less than 0. Signed-off-by: Raghava Aditya Renukunta Reviewed-by: David Carroll --- Changes in V2: None drivers/scsi/aacraid/src.c | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/drivers/scsi/aacraid/src.c b/drivers/scsi/aacraid/src.c index 8ed7be0..10a589b 100644 --- a/drivers/scsi/aacraid/src.c +++ b/drivers/scsi/aacraid/src.c @@ -772,8 +772,7 @@ static int aac_src_restart_adapter(struct aac_dev *dev, int bled, u8 reset_type) dev->a_ops.adapter_enable_int = aac_src_disable_interrupt; - switch (reset_type) { - case IOP_HWSOFT_RESET: + if (reset_type & HW_IOP_RESET) { aac_send_iop_reset(dev); /* @@ -784,12 +783,14 @@ static int aac_src_restart_adapter(struct aac_dev *dev, int bled, u8 reset_type) dev_err(&dev->pdev->dev, "IOP reset failed\n"); else goto set_startup; + } - if (!dev->sa_firmware) { - ret = -ENODEV; - goto out; - } + if (!dev->sa_firmware) { + ret = -ENODEV; + goto out; + } + if (reset_type & HW_SOFT_RESET) { aac_send_hardware_soft_reset(dev); dev->msi_enabled = 0; @@ -799,30 +800,19 @@ static int aac_src_restart_adapter(struct aac_dev *dev, int bled, u8 reset_type) ret = -ENODEV; goto out; } - - break; - case HW_SOFT_RESET: - if (dev->sa_firmware) { - aac_send_hardware_soft_reset(dev); - aac_set_intx_mode(dev); - } - break; - default: - aac_send_iop_reset(dev); - break; } -invalid_out: - - if (src_readl(dev, MUnit.OMR) & KERNEL_PANIC) - ret = -ENODEV; - set_startup: if (startup_timeout < 300) startup_timeout = 300; out: return ret; + +invalid_out: + if (src_readl(dev, MUnit.OMR) & KERNEL_PANIC) + ret = -ENODEV; +goto out; } /**