Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3056381ybt; Mon, 29 Jun 2020 14:07:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuKgNyHDDRo+qaqGsL6+dWndhKb210gNtughk3dRpDOdSKqyVTtbZxVrIQdW++pxXM48Td X-Received: by 2002:a05:6402:ca3:: with SMTP id cn3mr20541519edb.64.1593464851250; Mon, 29 Jun 2020 14:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593464851; cv=none; d=google.com; s=arc-20160816; b=syjUTx6WPQ1pyVVZR4hvyR+m899JEvcAwGY8QM1hMCVbeBLbxBO+mfS11wtibz/y9I Kgb8lgesZCwvdBHpkRAYz9KVnZXZXbbTTImJOAs9I/VVdnpyKk6xqm1XI0d5lWKEzE5M 3dWGfszsUNKgzB2q0TURbmjt9lzsfuVse+KLUWRNoNTrdpn6xpGQOF6j2zbvyLZhKRCk krhXIYQwDdmukpw+m8BIrhXAtSEE4tR2YoYkw9y3HqgQ5yQMy3NLbVg422OnS+uknjAq 2D8UqEHVg1DnP1hdgZ2HB+q2LU4LbnUtrLUBOLQUchTicdSwhx5INdbdcZw+t4mx+e9f HX8w== 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=tgDUE0GKIkXmW6aX8lSR4NBOqlcCjZE7PQjmXBJ/lhQ=; b=iMUY/3Lp4O6Rc9WQwO+To7pk9qA5Sg50YhVdF/PI3go5oyMptbk5xZpKo5EZj8MidT goqvX7zU6U+5Rdhf+7P+DKX9XKawpoQfm1XRvjG6Tqn/iEpz6+mW5YXlpYbiOIp65led wTM6oPtGZjRanKc6/1FFVF6s13Hx00qncJbWhFrrh0TuucvXz9TZawnzlTAYtMbd/nsa Wgt4sWIRh6zY2b6vl6AjZvPc5U2TXMJfkdqWlQm4MbiVwEgBZDOQDYo63Oy9nbIYNdhw VyVbrGEdOZkj1d0mY8tgi5e/qeRjCg+XU60SWZHxEU8WezhrWL4aLHcyhnLL7oQZB/li V0Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z1jI6aqn; 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 c102si341977edf.216.2020.06.29.14.07.08; Mon, 29 Jun 2020 14:07:31 -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=Z1jI6aqn; 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 S2387436AbgF2VDr (ORCPT + 99 others); Mon, 29 Jun 2020 17:03:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730459AbgF2TMq (ORCPT ); Mon, 29 Jun 2020 15:12:46 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89800C014A4A for ; Mon, 29 Jun 2020 01:17:14 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id p3so7961709pgh.3 for ; Mon, 29 Jun 2020 01:17:14 -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=tgDUE0GKIkXmW6aX8lSR4NBOqlcCjZE7PQjmXBJ/lhQ=; b=Z1jI6aqnyUAm3q07oAb5HCKKw4uCkN9ddj5DoN/Sg5VrboJwevPNrx5jLcmZc9Dl8O ZRcimyRboN1Mw60EMnIE6sg0WqQspyGB1f47XUPbzFnvcL28gzVoEypDV9PSA492B4qB LMY0EoGnFUAttLxvYWDvZy+U616IqcnR3Wgrjq3C7ebwO/PSzhVk5D6D61MlfjqhrPcH MGdFVCtnMLP+C03SvJiWfyOZSmg78HZ/2Tv10F1tHbg1RZaJEWFtWk5xGCeQHKhIE4Sn eUiAQCmCxLZX4NKVOwTXMuZrMaya1tu3C78hwonMTqzMaIKTD5KAdAxDuVuHJLmmfiP3 7NKg== 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=tgDUE0GKIkXmW6aX8lSR4NBOqlcCjZE7PQjmXBJ/lhQ=; b=hJ4ygH8oTk4CWTjQa/w5axW3ojbPZh3J2j/aq8pxt6+GW9SsMyLVW2p1MsyOTOfzKE SXdFcEvX4HA2eddKyFtrE894UwbkGOv6wDAEDefiMn9Dc+6pi2tKjtwfko9nP6YH12wk vli156ayo2++CAG6TPO5Ic6uhwbqr8aKHh5RHRIf+mHiO6iVc9dwLnXByN+MK9+4KyaS Gg37DKIQQ52pQ/NyFzlkV24Hix1LhVHnrCC1Spy9OCGUClepmPIm4WL4jo0t8kMMYBlG iZWqbgelyq6hQC7iVNqfFn/6Tt5P3eoOOzAxYAbsgJU/fD/GnXEZMDHQ6oTgdCO0AFyR uGTw== X-Gm-Message-State: AOAM530icLzeX9pNWY4a9QBvzUxr2vgMRPuft3t1WpTLK636FiPQXrpy TcIEkI2Fdm21tuAARCuRctc= X-Received: by 2002:a63:6643:: with SMTP id a64mr9557397pgc.246.1593418633762; Mon, 29 Jun 2020 01:17:13 -0700 (PDT) Received: from varodek.localdomain ([106.210.40.90]) by smtp.gmail.com with ESMTPSA id co1sm3345154pjb.34.2020.06.29.01.17.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 01:17:13 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, Vaibhav Gupta , Arnd Bergmann , Greg Kroah-Hartman , Jiri Slaby , Alex Dubov Cc: Vaibhav Gupta , linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: [PATCH v1 0/5] misc: use generic power management Date: Mon, 29 Jun 2020 13:45:26 +0530 Message-Id: <20200629081531.214734-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 amd ethernet drivers. The callbacks performing suspend() and resume() operations are still calling pci_save_state(), pci_set_power_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 (5): cb710/core.c: use generic power management cardreader/rtsx_pcr.c: use generic power management misc/tifm_7xx1.c: use generic power management misc/phantom.c: use generic power management misc/pch_phub.c: use generic power management drivers/misc/cardreader/rtsx_pcr.c | 27 +++++++---------- drivers/misc/cb710/core.c | 28 +++++------------ drivers/misc/pch_phub.c | 48 ++++++------------------------ drivers/misc/phantom.c | 20 +++++-------- drivers/misc/tifm_7xx1.c | 30 +++++-------------- 5 files changed, 42 insertions(+), 111 deletions(-) -- 2.27.0