Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp761474ybt; Wed, 24 Jun 2020 10:31:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwluIeH+WTjYhYYpMSHB1KovuD1FG6BMU8zbVsQey/b5XXcNl3GnkUC2DEHkOG8xg+Ogx6u X-Received: by 2002:a17:906:fcba:: with SMTP id qw26mr12769489ejb.112.1593019913438; Wed, 24 Jun 2020 10:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593019913; cv=none; d=google.com; s=arc-20160816; b=lcSeKdvU3zgZ2HP/Lo4kAOF+ox3VhWfa9Xew4WWpZtsZMi6UFLJmMkptizOJs8iDgh UrLoyuBiDZnxbds5u+ikUO/69XNL1MjYnTpKa9etyr0uQvDZnVBoZ3Vfh/WnlYOKjFey fI5IKptte3Mmm4vz5iTv8/1cN4bjNvqZJ8MP20HeK4ZAJGlfwYq1u/qAeVr0s7c2r93H vjN5QH/WbpPCQ7FzmFPaZHARWuagIUbQvlP5Ot+rjH++8pc81oWSnC1PHWFCvePmrV9Z pLvJEEgKRQtvn9gJz0WLWo7/N9R5LyhZldnjfEbVaThU8LZs6V7zWAxcJ90L+8pRkoNl LgBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Q15/TzuCJicAE8EEZy+jtFuuq+UiSpYK9IL1usdFcPE=; b=J4zlU5wQ2UnlUjJclpwO/WfrgxyJuf7CXCyJlz5JQLOonvf6JukggDT37YTjKg06bc /6tBDXeQLtENBxXtxJypvkCoPfsDmM7SDy3q1f6/B6QXohsNU3RT1s7laaElZ+nh1Bzg M2srkNwdNG/PDHZZqgPyr25KDcogag90+5wqn25j70+teGWyKQ/E8D4Y7J4DNzZPQujP R0nMYeoDfv3TYy9VjyOdvxzDvASIiW1cdZNOOB14gCa2cBNIXmvcRePsx4V4fBXuZe/O /C0eg5aYHNf6TiZ3RxPPmwGB8VjED50ks1IOaySswMu18AzxKC7iJhDmZTAT4vPDm5S0 P3gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="tJ/G2+Zt"; 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 du22si17685144ejc.330.2020.06.24.10.31.29; Wed, 24 Jun 2020 10:31:53 -0700 (PDT) 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="tJ/G2+Zt"; 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 S2405514AbgFXRaR (ORCPT + 99 others); Wed, 24 Jun 2020 13:30:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405427AbgFXRaR (ORCPT ); Wed, 24 Jun 2020 13:30:17 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AA17C061573; Wed, 24 Jun 2020 10:30:17 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id e9so1723207pgo.9; Wed, 24 Jun 2020 10:30:17 -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:mime-version :content-transfer-encoding; bh=Q15/TzuCJicAE8EEZy+jtFuuq+UiSpYK9IL1usdFcPE=; b=tJ/G2+ZtCC01Paj/JN3QoUPDLqFBcKO79I6h3o8CyYHSnd9q1OEH5PLyE6x9Cm/JWu SAhBPOwaLdcbgKSRCSSUI/nfL7Hz83CWPP1GP7dOBUlj/hTPcM7vTvHXE+bFml2SFgJ3 mAYj7idtIZ3c7oWjrai/yX6P5+dr0+NzeoSqkHl6xpk4EIvd+alSV2NQLgRuwomJ7qjJ OXWqJ/4T3A58dCuAU6RYhADwClA5QxRJJ04WzB2F6zQEcPIMoAZvPslAnptjrMPsUBY7 4gilpfPeFkzLKfLG1DBZl34eykw1orox/alt09ttTli8mgB5rl7wBr1/LppjpwxI25dn SycA== 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=Q15/TzuCJicAE8EEZy+jtFuuq+UiSpYK9IL1usdFcPE=; b=QociScsDX41sARUPYXAConAJUwHyiiSYy3whS6TwRj+ktOs60qzXU7wKn/XvhVFt/Z wcKmVAOe0fOoB5vdOA4/Xnz+eij/ji2FtUwi/LBW/kAlInMoqdO88qwiO3rlSRTk/wR/ jFBUWG9dQ3aXQT1VMFCPvtnvoSI1zdEcREMSoSc3abxd9VYz+mpKAqi1D3C1z6EZ4k+J 62ClDYwIHK4Ky69zCzTo/TGz0ywE6vZUQZl2sEuEF75iEJQ1/DdwUMSLLHUUW7AFP2uZ YAszGYH5uWDD9t5hmNfoNDDxku5u0BAwZ1TBo48Ce9gmUVOKuP0CX1hPIZ4E2Yb5Kwh7 BuLA== X-Gm-Message-State: AOAM530Klcji0GMupdqxjHZEJhg+0ETIJjmKwbzz8liMM2JcQPAfHv2f 9brfyh5jHutTNjW+KCbmSXQ= X-Received: by 2002:a63:1312:: with SMTP id i18mr23039279pgl.142.1593019816511; Wed, 24 Jun 2020 10:30:16 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.153.57]) by smtp.gmail.com with ESMTPSA id z11sm21187215pfk.141.2020.06.24.10.30.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 10:30:15 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, Vaibhav Gupta , "David S. Miller" Cc: Vaibhav Gupta , linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, linux-ide@vger.kernel.org Subject: [PATCH v1 0/4] drivers: ide: use generic power management Date: Wed, 24 Jun 2020 22:58:53 +0530 Message-Id: <20200624172857.60915-1-vaibhavgupta40@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org 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 remove legacy power management callbacks from ide drivers. The suspend() and resume() callbacks operations are still invoking pci_save/restore_state(), pci_set_power_state(), pci_enable/disable_state(), etc. and handling the power management themselves, which is not recommended. The conversion requires the removal of the those function calls and change the callback definition accordingly and make use of dev_pm_ops structure. All patches are compile-tested only. Vaibhav Gupta (4): ide: use generic power management ide: triflex: use generic power management ide: sc1200: use generic power management ide: delkin_cb: use generic power management drivers/ide/aec62xx.c | 3 +-- drivers/ide/alim15x3.c | 3 +-- drivers/ide/amd74xx.c | 3 +-- drivers/ide/atiixp.c | 3 +-- drivers/ide/cmd64x.c | 3 +-- drivers/ide/cs5520.c | 3 +-- drivers/ide/cs5530.c | 3 +-- drivers/ide/cs5535.c | 3 +-- drivers/ide/cs5536.c | 3 +-- drivers/ide/cy82c693.c | 3 +-- drivers/ide/delkin_cb.c | 35 ++++++---------------------- drivers/ide/hpt366.c | 3 +-- drivers/ide/ide-pci-generic.c | 3 +-- drivers/ide/it8172.c | 3 +-- drivers/ide/it8213.c | 3 +-- drivers/ide/it821x.c | 3 +-- drivers/ide/jmicron.c | 3 +-- drivers/ide/ns87415.c | 3 +-- drivers/ide/opti621.c | 3 +-- drivers/ide/pdc202xx_new.c | 3 +-- drivers/ide/pdc202xx_old.c | 3 +-- drivers/ide/piix.c | 3 +-- drivers/ide/sc1200.c | 43 ++++++++++++----------------------- drivers/ide/serverworks.c | 3 +-- drivers/ide/setup-pci.c | 28 ++++------------------- drivers/ide/siimage.c | 3 +-- drivers/ide/sis5513.c | 3 +-- drivers/ide/sl82c105.c | 3 +-- drivers/ide/slc90e66.c | 3 +-- drivers/ide/triflex.c | 24 +++++++++---------- drivers/ide/via82cxxx.c | 3 +-- include/linux/ide.h | 8 +------ 32 files changed, 65 insertions(+), 154 deletions(-) -- 2.27.0