From patchwork Tue Oct 23 10:21:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suganath Prabu S X-Patchwork-Id: 10652959 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 563DA1709 for ; Tue, 23 Oct 2018 10:21:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EEB3291A3 for ; Tue, 23 Oct 2018 10:21:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23263290C1; Tue, 23 Oct 2018 10:21:36 +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=unavailable 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 CEA032909B for ; Tue, 23 Oct 2018 10:21:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727771AbeJWSoT (ORCPT ); Tue, 23 Oct 2018 14:44:19 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:34782 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727542AbeJWSoT (ORCPT ); Tue, 23 Oct 2018 14:44:19 -0400 Received: by mail-pf1-f195.google.com with SMTP id f78-v6so443154pfe.1 for ; Tue, 23 Oct 2018 03:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=iOjpakRqqGtPPHcKgxLXCVHXs5ObeD9MwmIYarddrCk=; b=VHx5p3a6HdyMs+Nz1RsIqqQAVlxbNNXMiwsqF/1+dDDAIH3Zcim5w771uKZpYUjz0L nRdFcLYHuAic6bombnt5ItaWNUC6lOEHI6qvzYDWC4U1Yopg7XPa97muGqcQw4u91BAT v/sVfB/RbZnWVJtUXF2C6wMBs7viP9rJtOMaI= 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; bh=iOjpakRqqGtPPHcKgxLXCVHXs5ObeD9MwmIYarddrCk=; b=h686WL48g2/WDAHF0r9MOJWFKInOhNqDZ5EPyqF2o1awwtOz+JO2PzXPfce2lMmROV hXh/Svaa0TfVli81QsfqDqqEZJGMuyXtA1bZqIHAyZFINliKLvvmDN8B3RP0A4w/EkWI crPBVRA5O7GlmjKLn+KzJBYEw5CPlAcUSe6KolZhgScuLXneaj2v5rwf4badUVvdbDXW 7UeHP8MY2JgtdUZnwMJuZ6P7vh693uF+r25GcoChU7D/HbXBzvOmHjIkqq3cORcb0t/P h6/vcgXa3Li0r79yeX/d/opbFQMT3H+zzBqMNZCfuGCPNh4Jg/Ll7nGztZ26sgVHZbQf m3Ww== X-Gm-Message-State: AGRZ1gLC0ICNwKOt85ROk4Uvv8O2ZNP51BtRhQdiE6CpfEpTJPxKkLcL 0t0xHh67XXKeq7y3pjAab8kNwQ== X-Google-Smtp-Source: AJdET5d+oA37n0mLyI+M4IZqF/NyxUhnj7HgkRsV5MNVMXdQUvsrLeekmW0ApMyWTg+Sthr0YZEcAA== X-Received: by 2002:a63:65c7:: with SMTP id z190mr4256525pgb.249.1540290091978; Tue, 23 Oct 2018 03:21:31 -0700 (PDT) Received: from dhcp-10-123-74-106.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id m10-v6sm2918523pfg.180.2018.10.23.03.21.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 03:21:31 -0700 (PDT) From: Suganath Prabu To: helgaas@kernel.org, lukas@wunner.de, linux-scsi@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: benh@kernel.crashing.org, ruscur@russell.cc, sbobroff@linux.ibm.com, oohall@gmail.com, andy.shevchenko@gmail.com, Sathya.Prakash@broadcom.com, sreekanth.reddy@broadcom.com, Suganath Prabu Subject: [v6 0/4] mpt3sas: Hot-Plug Surprise removal support on IOC. Date: Tue, 23 Oct 2018 15:51:17 +0530 Message-Id: <1540290081-15827-1-git-send-email-suganath-prabu.subramani@broadcom.com> X-Mailer: git-send-email 1.8.3.1 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 v6 Change set: Incorporated changes as suggested by Andy. In Patch 1 converted while loop to do while in function mpt3sas_wait_for_ioc_to_operational(). And in patch 3 removed parentheses. V5 Change set: V5 post has only defect fixes. We are reworking and incorporating the suggestions from Bjorn. And after covering tests, we ll be post Hot-Plug Surprise removal patches. V4 Change set: Reframe split strings in print statement, to avoid V3 Change Set: Simplified function "mpt3sas_base_pci_device_is_available" and made inline V2 changes: Replaced mpt3sas_base_pci_device_is_unplugged with pci_device_is_present. V1 changes: In Patch 0001 - unlock mutex, if active reset is in progress. Suganath Prabu (4): mpt3sas: Separate out mpt3sas_wait_for_ioc_to_operational mpt3sas: Fix Sync cache command failure during driver unload mpt3sas:Fix driver modifying persistent data. mpt3sas: Bump driver version to 27.100.00.00. drivers/scsi/mpt3sas/mpt3sas_base.c | 75 ++++++++++++++++++-------------- drivers/scsi/mpt3sas/mpt3sas_base.h | 8 +++- drivers/scsi/mpt3sas/mpt3sas_config.c | 28 +++--------- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 21 ++------- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 38 +++++++++++++++- drivers/scsi/mpt3sas/mpt3sas_transport.c | 70 ++++++----------------------- 6 files changed, 106 insertions(+), 134 deletions(-) Reviewed-by: Andy Shevchenko