From patchwork Thu Feb 14 05:46:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suganath Prabu S X-Patchwork-Id: 10811827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9CA2C1399 for ; Thu, 14 Feb 2019 05:46:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CA282D390 for ; Thu, 14 Feb 2019 05:46:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 808B82D3CF; Thu, 14 Feb 2019 05:46:30 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 11F202D390 for ; Thu, 14 Feb 2019 05:46:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391109AbfBNFq3 (ORCPT ); Thu, 14 Feb 2019 00:46:29 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:45132 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388674AbfBNFq3 (ORCPT ); Thu, 14 Feb 2019 00:46:29 -0500 Received: by mail-ed1-f67.google.com with SMTP id d9so3965716edh.12 for ; Wed, 13 Feb 2019 21:46:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=H/l1PG98U0MbiOKPtTCGueW/3XAsuGEJqyt11DU17L8=; b=TF+7aYFWPvgZKltryHH1QEztbIIRLxrwclJJTF9iWrMHkwAVHVR59ULWnsO0Ujh0ky Zwrudnd5ztTwzJTmFstZVtw2D2/SZXVnQ5EYgBrS1ektdiI2GkGMdXwSTK0SXCTLcwDM 7m9OuF3710IUwO5TCTc4RLlh29AZCCyaQIQlE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=H/l1PG98U0MbiOKPtTCGueW/3XAsuGEJqyt11DU17L8=; b=fB+4gO3kQkKQ/FDrmxjeiQGRBOrWJcXETIkU8uR4feEXYyNcWkkxKzZG4TjLH0lOUX F9qiRxY7ep08Gw/gDuMeR5yBeoRZ3RPivbXtIg1t4h/NvlMvcmKveCjMvRnTjKAIvc/u ad8vVYpMX5mzz31f1k9ud0oO6gNTRdLVxRjMaNHGS05WIYUW+xkOvFChsUzj+Wta9UpF dm2VsP7cM0ARbGBmX0x/K6bH8bmdgj0wTxvs2PRF4hC7DW3uZRzD/Hrc5GI110nQJp4i /NMINwvF28c7lv7dKydiN9upRSK8Mzv04azKuD6pddsJjIqlxQaFx5mRcVydeMScPHJP 5JHA== X-Gm-Message-State: AHQUAuaoZL4StF0qntChP3RMDgU0sMANDer6heLusLGzTKmH+HqnyH/c pRmQ5rpmPbQ58etj17C9BjvtPUu5WRQEtzKmUwxnGDvkIqbQ93z/qpzmtzKhKPQrvcW/zjZUfIw dmF5hNNyt41OA3r7Hx807M7CtcbOowNlEo1t7Ii/I/Fo/lbG7hq+y0BoA+ejj49YiqdEdWmzuhD pc7r+fa9cX590A9LxWAqEf X-Google-Smtp-Source: AHgI3IaSUnB/KT7pfujOLFfaqjo6fF2mr6csXC0SFl2Wu8+ia8qj4akUXp6qJyquSzhvdr0ycfeNMg== X-Received: by 2002:a05:6402:120b:: with SMTP id c11mr1480014edw.257.1550123186632; Wed, 13 Feb 2019 21:46:26 -0800 (PST) Received: from dhcp-10-123-20-72.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id h1sm311791ejx.41.2019.02.13.21.46.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 21:46:25 -0800 (PST) From: Suganath Prabu To: linux-scsi@vger.kernel.org Cc: Sathya.Prakash@broadcom.com, sreekanth.reddy@broadcom.com, Suganath Prabu Subject: [PATCH 1/6] mpt3sas: Fix typo in request_desript_type. Date: Thu, 14 Feb 2019 00:46:06 -0500 Message-Id: <1550123171-15993-2-git-send-email-suganath-prabu.subramani@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1550123171-15993-1-git-send-email-suganath-prabu.subramani@broadcom.com> References: <1550123171-15993-1-git-send-email-suganath-prabu.subramani@broadcom.com> 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 Fixed typo in request_desript_type. request_desript_type --> request_descript_type. Signed-off-by: Suganath Prabu --- drivers/scsi/mpt3sas/mpt3sas_base.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index 0a6cb8f..4184d96 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.c +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c @@ -1395,7 +1395,7 @@ _base_interrupt(int irq, void *bus_id) struct adapter_reply_queue *reply_q = bus_id; union reply_descriptor rd; u32 completed_cmds; - u8 request_desript_type; + u8 request_descript_type; u16 smid; u8 cb_idx; u32 reply; @@ -1411,9 +1411,9 @@ _base_interrupt(int irq, void *bus_id) return IRQ_NONE; rpf = &reply_q->reply_post_free[reply_q->reply_post_host_index]; - request_desript_type = rpf->Default.ReplyFlags + request_descript_type = rpf->Default.ReplyFlags & MPI2_RPY_DESCRIPT_FLAGS_TYPE_MASK; - if (request_desript_type == MPI2_RPY_DESCRIPT_FLAGS_UNUSED) { + if (request_descript_type == MPI2_RPY_DESCRIPT_FLAGS_UNUSED) { atomic_dec(&reply_q->busy); return IRQ_NONE; } @@ -1426,11 +1426,11 @@ _base_interrupt(int irq, void *bus_id) goto out; reply = 0; smid = le16_to_cpu(rpf->Default.DescriptorTypeDependent1); - if (request_desript_type == + if (request_descript_type == MPI25_RPY_DESCRIPT_FLAGS_FAST_PATH_SCSI_IO_SUCCESS || - request_desript_type == + request_descript_type == MPI2_RPY_DESCRIPT_FLAGS_SCSI_IO_SUCCESS || - request_desript_type == + request_descript_type == MPI26_RPY_DESCRIPT_FLAGS_PCIE_ENCAPSULATED_SUCCESS) { cb_idx = _base_get_cb_idx(ioc, smid); if ((likely(cb_idx < MPT_MAX_CALLBACKS)) && @@ -1440,7 +1440,7 @@ _base_interrupt(int irq, void *bus_id) if (rc) mpt3sas_base_free_smid(ioc, smid); } - } else if (request_desript_type == + } else if (request_descript_type == MPI2_RPY_DESCRIPT_FLAGS_ADDRESS_REPLY) { reply = le32_to_cpu( rpf->AddressReply.ReplyFrameAddress); @@ -1486,7 +1486,7 @@ _base_interrupt(int irq, void *bus_id) (reply_q->reply_post_host_index == (ioc->reply_post_queue_depth - 1)) ? 0 : reply_q->reply_post_host_index + 1; - request_desript_type = + request_descript_type = reply_q->reply_post_free[reply_q->reply_post_host_index]. Default.ReplyFlags & MPI2_RPY_DESCRIPT_FLAGS_TYPE_MASK; completed_cmds++; @@ -1509,7 +1509,7 @@ _base_interrupt(int irq, void *bus_id) } completed_cmds = 1; } - if (request_desript_type == MPI2_RPY_DESCRIPT_FLAGS_UNUSED) + if (request_descript_type == MPI2_RPY_DESCRIPT_FLAGS_UNUSED) goto out; if (!reply_q->reply_post_host_index) rpf = reply_q->reply_post_free;