From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 717A4C433E3 for ; Mon, 20 Jul 2020 13:31:49 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3BB4422BF3 for ; Mon, 20 Jul 2020 13:31:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="D32GZ2Bp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3BB4422BF3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 02B22857D8; Mon, 20 Jul 2020 13:31:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0F7N2xdpglQz; Mon, 20 Jul 2020 13:31:48 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9B51A854C4; Mon, 20 Jul 2020 13:31:48 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7EFFEC089F; Mon, 20 Jul 2020 13:31:48 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id E5285C016F for ; Mon, 20 Jul 2020 13:31:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CB3A62050E for ; Mon, 20 Jul 2020 13:31:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qgOkJxFoeQkz for ; Mon, 20 Jul 2020 13:31:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by silver.osuosl.org (Postfix) with ESMTPS id 33C772047D for ; Mon, 20 Jul 2020 13:31:46 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id z3so9046852pfn.12 for ; Mon, 20 Jul 2020 06:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2j7F1HjD2jzSyI51YBZeo083TYMZE0e0Hdg/cz2X4VI=; b=D32GZ2Bp4Ly7Go7cvCAa/xliGYDiUIQ4KG5Td0C3myu4gUz1tzMvJX5VRRqY118d6B pq3MkAD/iR270VcfmMjcFOw0iA2cfmsUX07KUGICTcEpH7SZoMS9uae1bQ71rjJ22mLG oKWeKgu3JvKlpQhTCFOzeDjrkIpPP+aJqGvfl2XxoMEw9/w6TFt0WSFQbl+CJ5bW0PAg 9mKfPwHtt4gEafsuexAMoFrfYvjYXCkTTtE+sisxLiduORIt6VU9et34NOaUFK96RgdT voISzaGZ03r9LW7pSejyHSQ+RnCQ9NAWbdSfqS0T8KurChe9IfV0J4WHIlAJV47DrwSd yEWQ== 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:mime-version:content-transfer-encoding; bh=2j7F1HjD2jzSyI51YBZeo083TYMZE0e0Hdg/cz2X4VI=; b=AsiQFzi9zEDkC8LpIRWbi5a/9s4NClltP8ittcPtjJkgleOOKe6zcgWyIeI9a+Dk1z Gn8CfmS5HIy7e5NjdRTFpY3kSEXPCnI/5ajkcHpGeeaXcvRngqnMInlrLbFeA1OoU5eO aVrX6qDAftcPEzYX+fVGM//8vi4tW+r4C9pJkNvYYyvKaNBBWDCA5w9QTtv4f8S2hXzV JR+OFNi4wFdm04JJu6hB6P1aojcwWIPI+1x8gJXpg6MQVsa2MKu9QfLojQi/ocRp1DwV uc5olWM8nhwXQcu0kZSG00uPhdX9ZppZoNuWjtpvEYPqRTzX+GidkrsbqNSEtml7XtgF OtJg== X-Gm-Message-State: AOAM532LEK8YAj81Yi5N7BQcxfrgDJ8uzdgBsJaC8reR+qnaZxwwnWn3 vNs6Ldf/OgaiV+oPObF9Buo= X-Google-Smtp-Source: ABdhPJxRfPYOZ2kQOUeqsklFhHcGfFshgBoge8E4hL44dnX+aeo2UlHAwFo7JebDMKfTrr7sUzEXcA== X-Received: by 2002:a63:8f18:: with SMTP id n24mr18024912pgd.432.1595251905596; Mon, 20 Jul 2020 06:31:45 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.153.67]) by smtp.gmail.com with ESMTPSA id t5sm14814356pgl.38.2020.07.20.06.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 06:31:44 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Jens Axboe , Joshua Morris , Philip Kelleher , Damien Le Moal Date: Mon, 20 Jul 2020 18:59:59 +0530 Message-Id: <20200720133002.448809-1-vaibhavgupta40@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Cc: linux-block@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, Vaibhav Gupta Subject: [Linux-kernel-mentees] [PATCH v2 0/3] block: use generic power management X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" Linux Kernel Mentee: Remove Legacy Power Management. The purpose of this patch series is to upgrade power management in block 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.1.0 - allmodconfig build: make -j$(nproc) W=1 all Vaibhav Gupta (3): mtip32xx: use generic power management rsxx: use generic power management skd: use generic power management drivers/block/mtip32xx/mtip32xx.c | 54 +++++++------------------------ drivers/block/rsxx/core.c | 9 ++++-- drivers/block/skd_main.c | 30 +++++------------ 3 files changed, 27 insertions(+), 66 deletions(-) -- 2.27.0 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees