Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2127222ybt; Fri, 3 Jul 2020 01:16:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygbzs/Gf3JDXfvGESHrdKJap6qiMrc/iexqGQSfTlF1f/jGw+bLZVnaCxTur6/nKve3ZML X-Received: by 2002:a50:b086:: with SMTP id j6mr36809874edd.6.1593764216108; Fri, 03 Jul 2020 01:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593764216; cv=none; d=google.com; s=arc-20160816; b=P5HkY/cvGxd4IFbp5Mceo749JTWRovcO6TJDvEFvYCOF+2LPPLpEryvJ1C6o3t3/Ab 5b2clHn8lGtE/sTp2Za48RjsovA294SZEJnA8SAQB8AzvvFrEqZJHLHlD/uiGJAH9Edh 2p1+/Z1b4/ubMw3It0n3YaI78bvMaOUodHQAtp9oGpZ0SRP4TqiQ2JbcH3wFrGmhDGZy DheU6PmFrTiBk0JRSHvQag7piJyh6HXMxz/rte0kGDIpvaT0L/Xdgs8C7x0dHxVRu4cV /vNTgj3Qrp0qIcuG+Z92x79qnC/neT4HxBwEr5ezQkLFFRv+R7rbeM63MmJakl2ivCrB CHKg== 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=dX1y3EZXLwuCJAuG+s638H9srGw+Bv0i5V3KBJVUxbU=; b=VCUClEt+TGOCRl8yIcdBNExtQ990YVDqQmm/+qL6Rng3hhwnYUERHYjMVYDmCe0cuV LR0E6/NT2VznFBqQzCP2+KqK5bjz+YdGuUaT7SitHjINnTVmXFR+P84x5KSqSax7Znzq YC86MmdQlG0kDXzbA1FCU3rgIMPgrpgssVd3lgs89UUqiPNZVq+HOrLIlyrCxe5vh8Qx KxlPp0FZpgKVfArlGJesTWa3O+1r7l4MjcnUx4w0YWjLmXvH9L8yceeDsRL2nT63cV2B CzSNHgkvy1Z68uTaRqfQXBqlay3fyr63OxuNaIcA5fWerc+paUhtAPV+MzFEa1lhQ3Ug 8hgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HY9dYLnm; 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 qo11si7798326ejb.566.2020.07.03.01.16.32; Fri, 03 Jul 2020 01:16:56 -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=HY9dYLnm; 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 S1726382AbgGCIQO (ORCPT + 99 others); Fri, 3 Jul 2020 04:16:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbgGCIQN (ORCPT ); Fri, 3 Jul 2020 04:16:13 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6ABFC08C5C1; Fri, 3 Jul 2020 01:16:13 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id bj10so7149990plb.11; Fri, 03 Jul 2020 01:16:13 -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=dX1y3EZXLwuCJAuG+s638H9srGw+Bv0i5V3KBJVUxbU=; b=HY9dYLnm3ErI+evPVxOOELTSXIrSfRXLyBecauxWz+4akfnnMTqeBHYlJ451fUPJJN nWCJDx0OyqnWliWCFUyRi2agBVfLxFPIJyaD57p1oPUynCuMYU/01uIWxkyPhwPhnYL3 Oy0kE9SGnQEl4LcpTR4JIpYR/QncK76BYew3gOH2XMWDwOssy1obyTQqdoFiuQuD0q9Z qDK91+lQS5p8fTYJBsShymdiKb4+L/Fpyzi7Sipw+4WMVGLSOVyxCKgNMblxZ4BiR7YO 2ty+ZbQ19OCGlOIB7idbdZS6JjgLj/ydJZ8dCvRP6JVnaphdtqIn+13rO8+zvJHuEuC/ 9W1w== 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=dX1y3EZXLwuCJAuG+s638H9srGw+Bv0i5V3KBJVUxbU=; b=kSLtJJ6rhTgwdKxiYP1t2xU1QPJSWZMmUCJvifDZKFRZ/XJN5+lZ98spHVG/DuPKCs 441FT1Y+Ns69tS9y9P+IzlfxUN/mFxy19APe2PjWx7oPR5wwIDMsr5byVa6lZeZ6nHHt sGBvKI3bltDp1quPpB29qeAqLHfChOGFwrMKJk/uSsul2Tf4XP75gGtgZB0eo71fhDes ioyK0T52wDj0ujLzyheMhwH7IAyqoar0hpcjUWde/WHri1cfNBzEK8LQLVqSvSEu0rJN aIlRVKnekwjw50HEtjmVGZ1xuoB/QxpRcVqSkolAlauVoUxyp7AOwqbkqsplD6OlhFSg MHYg== X-Gm-Message-State: AOAM533D+EJIruRhe5UGaavjcV9VxaGxsgDSU5m5BZYOcLr4K/BYzeRt SH6WgI8EVi2VBtMpLc9r8GA= X-Received: by 2002:a17:90a:728d:: with SMTP id e13mr22595947pjg.51.1593764173155; Fri, 03 Jul 2020 01:16:13 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.153.57]) by smtp.gmail.com with ESMTPSA id y198sm8437085pfg.116.2020.07.03.01.16.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 01:16:12 -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 v2 0/4] drivers: ide: use generic power management Date: Fri, 3 Jul 2020 13:44:24 +0530 Message-Id: <20200703081428.1011527-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. V2: Kbuild had modpost error for undefined reference in v1. Testing by: Compiler: gcc (GCC) 10.1.0 Build: make -j$(nproc) W=1 all 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 | 30 +++++------------------- 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, 65 insertions(+), 150 deletions(-) -- 2.27.0