Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3436683pxx; Mon, 2 Nov 2020 08:51:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCGc5VHwxEtu4GXVlCZ/QoqJEXhNzJUoKTgZk25HZAkOBQzTiBiJKg3bBzTqbEBHhnk9wQ X-Received: by 2002:a17:906:6d89:: with SMTP id h9mr15570911ejt.152.1604335919415; Mon, 02 Nov 2020 08:51:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604335919; cv=none; d=google.com; s=arc-20160816; b=EJVu5at+dxRDnZwIYySUJFYuj3BqdBxVETmXNnpZrz9XhSPcA+frQh7Qz1Y0kb/Nf7 8HcIEmqvGQ4Vj4Au1wERqpSWjYE7ZcsAfRxr3uo8khuPk5+60x0F0S02tYEOmGnf1HVy VwO4kjhvLEXLNd1rdUwd2RU2dHOf6AGAb85QFBWZs6l7c09mFBQs1uxMWj3WmetZkvde MS9UBZ6ShwdwS2jqQMkHrT2r/zDpQ6Aq3NloWI5ONTG8ndcs7/0/kxdFn/tybvte6rbo kO8It+4h0k0BdQDF7HU6ZnOZeAcN3kDLrQSxImFzd4XFYlThZV2pWu7wkIn0SIIleNF9 e9AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WJdqGZqtqi7lYaSTKy9+VN9HroJgepJgPjf8dagooAQ=; b=AcNb2BaR1f0gWbrBu9MOLIyEvW04CQYT7TwDcVyh9O6yGQrENGZX0ZwX5i1enR5P8X gjPw1ZzCnIjE0syOa+8AQQpBUCYIyocOK+lRRD0GFMJ3ulbN3/riJ5/ongVcaix9U4T/ oJRCp7aDB9UZiJqEw3hFwoke+tx7tju4ntOn/AgbQQ/Y+ZPLhmskQT+kHSHRMV64nrb7 +KuPLdzLmYwMr+6TdglHH/Jn5iax4pJcDyFQvtXhzu4To64cuZDp7KVA/s7878blNtfc xAwRNWrKcTHCzXDytqRyUmjOXXFV0xRkzBYjEIGbgRWQNvj74Grh68Ixu6dSgzO8DEu6 5s6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tctn+aOn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cq11si1681071edb.332.2020.11.02.08.51.35; Mon, 02 Nov 2020 08:51:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tctn+aOn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726920AbgKBQuU (ORCPT + 99 others); Mon, 2 Nov 2020 11:50:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbgKBQuU (ORCPT ); Mon, 2 Nov 2020 11:50:20 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31279C0617A6; Mon, 2 Nov 2020 08:50:20 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id k9so9584044pgt.9; Mon, 02 Nov 2020 08:50:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WJdqGZqtqi7lYaSTKy9+VN9HroJgepJgPjf8dagooAQ=; b=tctn+aOnt+DNJU9GfdIXIhjbifj58D71oNC6YIwWIvdWmCvNuJVwEB6yJJ8tHi3FtH IOwjfPy6l1Vfc9T/rB6gxtSM7KDCSbbklr0Zv6n6RAcFOTzLNZsSW4kDURtMedBhYv1O TFYny84yg0o/H9oPLu0tZvMVXEfq6vI8d40dHlgYueeWLKBe4Em4oU4l9Wf/QsaoLII7 RohNxfj49HGbs46kFwD/tpf57l9rRj9KwJgnpdbLnaT1m3rNg0Vvct7cug5QK2pM5+YW RzSOzDrLzPArvrlBMz6Zm2V4qdzpW4t9Pj3XnKFLMsw+/UyrFmSVrSxbzswuOdsc2M3k D+nA== 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:mime-version :content-transfer-encoding; bh=WJdqGZqtqi7lYaSTKy9+VN9HroJgepJgPjf8dagooAQ=; b=m2GES4q7CRFZm5NTYiCU7Gff+a7V6nTdzLMOguCjMzx352pEA1WJU65zVQHwa3I6Xq /k5CG8TAQSWen5PDm9ga5sdOLNIAU2xBDS8o7aVi7NYeGDYt03p270J+eFwblQozdp9i BOi7Y37oxzofW8AA5yG8CQfuaLdtG2/DRLsa8O8t7mmH3n3DcqKeLhlmq0MUnDXrR0Pk o0FjUcx9EOTLO9Fw2JEzaqogk73WpcXtPVZ6GdV8QbEaPiyCpfVlom1Xav/CDbZPlXYr zenz3FjUab4AGTpKdNeKwUCwnsFPOA7PVBhRCDiABwZVzTrEMikzFFeHoutStBKNdV7l vyEQ== X-Gm-Message-State: AOAM5324OM8kFPUyTdxOQPk9F+SJDsbdQoJwWWCJEBtzXG3y3IbJjOKE m9MpD7O2kKYDhr8igsFLf+E= X-Received: by 2002:a17:90a:d201:: with SMTP id o1mr17693268pju.46.1604335819397; Mon, 02 Nov 2020 08:50:19 -0800 (PST) Received: from varodek.localdomain ([223.179.149.110]) by smtp.gmail.com with ESMTPSA id t74sm4953233pfc.47.2020.11.02.08.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 08:50:18 -0800 (PST) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Adam Radford , "James E.J. Bottomley" , "Martin K. Petersen" , Adaptec OEM Raid Solutions , Hannes Reinecke , Bradley Grove , John Garry , Don Brace , Xiang Chen , James Smart , Dick Kennedy , Kashyap Desai , Sumit Saxena , Shivasharan S , Sathya Prakash , Sreekanth Reddy , Suganath Prabu Subramani , Jack Wang , Balsundar P Cc: Vaibhav Gupta , Shuah Khan , linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-scsi@vger.kernel.org, esc.storagedev@microsemi.com, megaraidlinux.pdl@broadcom.com, MPT-FusionLinux.pdl@broadcom.com Subject: [PATCH v4 00/29] scsi: use generic power management Date: Mon, 2 Nov 2020 22:17:01 +0530 Message-Id: <20201102164730.324035-1-vaibhavgupta40@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linux Kernel Mentee: Remove Legacy Power Management. The purpose of this patch series is to upgrade power management in xxxxxxxx drivers. This has been done by upgrading .suspend() and .resume() callbacks. The upgrade makes sure that the involvement of PCI Core does not change the order of operations executed in a driver. Thus, does not change its behavior. In general, drivers with legacy PM, .suspend() and .resume() make use of PCI helper functions like pci_enable/disable_device_mem(), pci_set_power_state(), pci_save/restore_state(), pci_enable/disable_device(), etc. to complete their job. The conversion requires the removal of those function calls, change the callbacks' definition accordingly and make use of dev_pm_ops structure. All patches are compile-tested only. Test tools: - Compiler: gcc (GCC) 10.2.0 - allmodconfig build: make -j$(nproc) W=1 all Vaibhav Gupta (29): scsi: megaraid_sas: Drop PCI wakeup calls from .resume scsi: megaraid_sas: use generic power management scsi: megaraid_sas: update function description scsi: aacraid: Drop pci_enable_wake() from .resume scsi: aacraid: use generic power management scsi: aic7xxx: use generic power management scsi: aic79xx: use generic power management scsi: arcmsr: Drop PCI wakeup calls from .resume scsi: arcmsr: use generic power management scsi: esas2r: Drop PCI Wakeup calls from .resume scsi: esas2r: use generic power management scsi: hisi_sas_v3_hw: Drop PCI Wakeup calls from .resume scsi: hisi_sas_v3_hw: Don't use PCI helper functions scsi: hisi_sas_v3_hw: Remove extra function calls for runtime pm scsi: mpt3sas_scsih: Drop PCI Wakeup calls from .resume scsi: mpt3sas_scsih: use generic power management scsi: lpfc: use generic power management scsi: pm_8001: Drop PCI Wakeup calls from .resume scsi: pm_8001: use generic power management scsi: hpsa: use generic power management scsi: 3w-9xxx: Drop PCI Wakeup calls from .resume scsi: 3w-9xxx: use generic power management scsi: 3w-sas: Drop PCI Wakeup calls from .resume scsi: 3w-sas: use generic power management scsi: mvumi: Drop PCI Wakeup calls from .resume scsi: mvumi: use generic power management scsi: mvumi: update function description scsi: pmcraid: Drop PCI Wakeup calls from .resume scsi: pmcraid: use generic power management drivers/scsi/3w-9xxx.c | 30 ++----- drivers/scsi/3w-sas.c | 32 ++----- drivers/scsi/aacraid/linit.c | 34 ++------ drivers/scsi/aic7xxx/aic79xx.h | 12 +-- drivers/scsi/aic7xxx/aic79xx_core.c | 8 +- drivers/scsi/aic7xxx/aic79xx_osm_pci.c | 43 +++------- drivers/scsi/aic7xxx/aic79xx_pci.c | 6 +- drivers/scsi/aic7xxx/aic7xxx.h | 10 +-- drivers/scsi/aic7xxx/aic7xxx_core.c | 6 +- drivers/scsi/aic7xxx/aic7xxx_osm_pci.c | 46 +++------- drivers/scsi/aic7xxx/aic7xxx_pci.c | 4 +- drivers/scsi/arcmsr/arcmsr_hba.c | 29 ++----- drivers/scsi/esas2r/esas2r.h | 5 +- drivers/scsi/esas2r/esas2r_init.c | 48 +++-------- drivers/scsi/esas2r/esas2r_main.c | 3 +- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 41 ++------- drivers/scsi/hpsa.c | 12 +-- drivers/scsi/lpfc/lpfc_init.c | 100 +++++++--------------- drivers/scsi/megaraid/megaraid_sas_base.c | 54 +++--------- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 35 +++----- drivers/scsi/mvumi.c | 49 +++-------- drivers/scsi/pm8001/pm8001_init.c | 46 ++++------ drivers/scsi/pmcraid.c | 44 +++------- 23 files changed, 193 insertions(+), 504 deletions(-) -- 2.28.0