Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1153765ybh; Mon, 13 Jul 2020 10:40:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/Od2IN0DpXkeVYKejU/DNZ4fwj3Lv4LejqTmMZGtvqbrNxnukxehHiyvleihDdkdfkD1p X-Received: by 2002:a05:6402:359:: with SMTP id r25mr479095edw.177.1594662002386; Mon, 13 Jul 2020 10:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594662002; cv=none; d=google.com; s=arc-20160816; b=dtISxBo6q8PegzzMrC+Wzjk9TvGU+hmuQ4t3PEDVm71SMfhGeo2wnC8OB/oOqndwts QLzrhnMdWefzqGZagE+xwSy+JF9xgChaou6CKecaPR0j2FCwnWtos04x/haO3qfblRlA 69lY7z6I/Sk7ZM5AjnqRWp2Z8T4zDjYbck8yL7q3y+P6eeJo4mDsak6ACnrvWzprFgdb hDgfTafgfU+qplFLSvds/FniOyd+RbAq9Go9jRXtEzAE5LjHqwRMrhuMPp8pQm+iC5e6 a2PTuhQ6FxMeQ4haVKFIgPzF6sBaDQZaTOhmBkArHOIUEnPVPSjkZjL2tYD1CDQKmx1x l+Sw== 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=dsCSO99ajVdezhsvt46VhG304K0QmMvZ1SLvNQqxCN4=; b=EEA4O2K2GxvzbkLkL0QAs+upmOjXCzi4Yb5DLKnppEuETFpc1eHKzPcc8a1nWGcgWo dxtfGd5zRg3/bnZBvRuRMjBb7VcwqhVJV0Vl8i/abIHMDnj9EvezXmLTzFTXj+hJ9ehu f6FE7YAY8Mbe8K8p26eWkfvF8vmPAe13pdQ7qLx17M1+xW5jS6z4lsShtif7rbwvlK8r GWZOJ7Bvk7bHrgdPpmx8zU4/4I5nhi4deMcgD2RjELLTT3ordyqsXeqMEY18I6FgBpSU Mq79lIDQByUf4Iz825BaCAwNv+YKE2GrIBKWg5zEe6u9p0tgB8N73RDd0u2ozCOtodLH 11Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DiAjnY2U; 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 p2si9820655edj.167.2020.07.13.10.39.38; Mon, 13 Jul 2020 10:40:02 -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=DiAjnY2U; 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 S1730043AbgGMRj2 (ORCPT + 99 others); Mon, 13 Jul 2020 13:39:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729703AbgGMRj2 (ORCPT ); Mon, 13 Jul 2020 13:39:28 -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 20F07C061755; Mon, 13 Jul 2020 10:39:28 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id z5so6330832pgb.6; Mon, 13 Jul 2020 10:39:28 -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=dsCSO99ajVdezhsvt46VhG304K0QmMvZ1SLvNQqxCN4=; b=DiAjnY2UF2Ft32HWCeObIacUewyoVucUpWt+zmCyKymcSy2Tsolq8SL/ZuwMUcdXYF UAJkTypS/GsEjJgsC2LuQCTmrKn4t6KBviNwNFx0SI861QbQSPRRWobmEMzGwcWG302T 4QTnwskLtNwxZbO1x01R/YlaygK2dcZ/UeGLpA8tFJkFw30Qwwet8GEYzZYtZRVQ0MLa C9Vft6vQXPd83Bx7mDHuSucaH0to/LlDYAb7Jfw+HxeJrzZpt4hUGMixo5DbkqJTiuQv qRHEQgpzANLRtDvZHx4k7URY7br2LHqFeOYS3qO4XyjxEKGF8mI0GOaNaZcOKDcYZMe7 0YnQ== 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=dsCSO99ajVdezhsvt46VhG304K0QmMvZ1SLvNQqxCN4=; b=hGFUMWcqSh4Zl5yNO/M73bB/BTHc4P9c3sI4r+x8rANAtqMgqjN0Oib2Pjse27Lcun NOhofXhkUEj64b3Rdle+lGmOiFwQfR0H/LI388igNBdIHsGyoAeb5zjYtc4hvdDQq3YC RVS1Xrt3IAygHmKOZRn4fZOKGiALcYaVo5AXj4E4RPWnUOqFcgyMLHPQKXdszb0uE56V nDvKWwBv/9GsIe5UHIHXtFCRBjHZD/aWa4BfdHpbPSk1rsSNgV6O0U5xV7WgQBv8rPXY O6HnX/tTBaVSocVTE2B+CkRK3MKrAOVbVPOt1eVFUA72qN6L8cmnz9Yj4QVdjslHh8qK hNhg== X-Gm-Message-State: AOAM533+ddzk9roarDao2skFavIc+A5lzg1wEYje7y3H3QX6NgTmPMzD k+6OVb/szZK42w4gJTmN0E0= X-Received: by 2002:a62:1716:: with SMTP id 22mr797676pfx.99.1594661967413; Mon, 13 Jul 2020 10:39:27 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.153.67]) by smtp.gmail.com with ESMTPSA id w9sm186540pja.39.2020.07.13.10.39.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 10:39:26 -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 v3 0/3] drivers: ide: use generic power management Date: Mon, 13 Jul 2020 23:06:10 +0530 Message-Id: <20200713173613.2095-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. v3: - Modpost error for undefined reference by Kbuild in v1. - Another approach to disable PM in drivers/ide/triflex.c suggested by Bjorn Helgaas in v2. Test tools: - Compiler: gcc (GCC) 10.1.0 - allmodconfig build: make -j$(nproc) W=1 all Vaibhav Gupta (3): ide: 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 | 32 +++++--------------------- 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 | 29 +++++------------------ 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, 62 insertions(+), 155 deletions(-) -- 2.27.0