Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3054793ybt; Mon, 29 Jun 2020 14:05:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPg2GoWCRvx9ArIhsGBOGIB62kyzl8vN+XXRsTA8mrmGNvkaF6GvhsDnRHlj/bDIN6U1P4 X-Received: by 2002:a17:906:1d1b:: with SMTP id n27mr16187342ejh.272.1593464713453; Mon, 29 Jun 2020 14:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593464713; cv=none; d=google.com; s=arc-20160816; b=YNd/ZP7LIc0wVvus8X8qmn+hG3HrbTd/LRoqRqRbczvwPMQcoMPiymBMXE7RTjjnHf Qzhk/7F69cNQMF7C1IdlAjEOPLyuHWUtrch90fZs1+5LOi7vyEF4ksoKxeTsjNmVed2o GdjYJ0/OaLTdTQYGZI9sIO0tECAp6IYWiinyJ/U6/af7l+tJG4bH0RXFv1habeKf6ju5 4n5thiRziZRK9mX/xIk7ZBIrJ+U2O9QqYM65uf9EjZ+U92/wVZsEexU0mzvhktaaxIid CI7CiRj930ZX8FxKwky5ctqo+vq56wxTINI4V0gs4mjvZNkdYs8PFdg9tjzcZvE93t2o yDEA== 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=Ld538JaKDXIGo10uVIPf/OU9ypVMHtMKsndOQ0uoERY=; b=ScvwNZi5W4CNh1PVV+z7I4wCPpBdUOikTIonqG/Rcq+DNp8to9ujxKn12n7fBmiF0z UWjFMDQEspzHw6wtrKgr5BCBIABm9M/aoyhh/oFhaFo+BLlwK1Le1MfjfQOUkgLt5d4Y rZzPw+cgX7izjijvLZm6BDaFRIeJlaHMLaD/AmJozKmGQG3VgY2pldG0aM/eiouQZvHj jzfmmw8b7vrNgZOtdcp0VDJklRkR4ECvDDpTWAqiYFqYbxQrKUFoU7T58NmXFa9PrEKA IS+G8uTk5jCsw/t9Qgz4F9VSo5KAL3VjolYRTXoGXLTYC4bx/VIUk0SY0n6KtCG/2p9B CRcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="kNVV8i+/"; 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 mb4si364538ejb.173.2020.06.29.14.04.50; Mon, 29 Jun 2020 14:05:13 -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="kNVV8i+/"; 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 S1731143AbgF2VDM (ORCPT + 99 others); Mon, 29 Jun 2020 17:03:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730887AbgF2TMs (ORCPT ); Mon, 29 Jun 2020 15:12:48 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84F22C0086D9; Mon, 29 Jun 2020 02:31:13 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id f9so7673116pfn.0; Mon, 29 Jun 2020 02:31: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=Ld538JaKDXIGo10uVIPf/OU9ypVMHtMKsndOQ0uoERY=; b=kNVV8i+/97Zn5s/MHxIAt2QNER/BXTzL3YDs1qt3DOpG5XCX9RXz4wHmmN94H4DwkU M4Q0UuZJp/0kinhl4WxCtg7mewPv210DRtDVqjPKOY/XxfNtT0yRUsHMVT17dMliME1A k1yZh2RgyG5uhLj91imY9haypvx73lMIct0B78mnsGKgPMbqpWshBN6mCMzJ4DxSqqrA 0e1LosaeH0fKz5NeWHnV73cfBwtWZXMfQWGR2lkdYI02wRq/A8jrJQ/ZZ+yWlW6F0GH3 3zxdkuWiMu9miFniSuZM7WE0K9uvwTGKj4JhR8BeVctJuIy0HIJZ/+fzmzjymQ0kNFi+ n/6Q== 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=Ld538JaKDXIGo10uVIPf/OU9ypVMHtMKsndOQ0uoERY=; b=KsYH72Qe13wzG1Ti4JphxFWbWWBJZv375dpQwSKt55997037jPOgaStdHEw3oNm/bl zYZJwlaB6/mJcU19O8O0ihtcRC9fd7wbOacrZkRJI4jt9jabbZ9uUHgwS55CVyZTV537 zHZNTp/5FY/9YpDhI+Y/1NqyUhZoheLl05lAkwfs/1lc4GLPJch7w4NAHIvoDzb0LSnR nZ4bwAoTOaWfscRS4i7B7lkNutksdJt/WGLP0LKfu88kgDkU4krojpqEQ7ceRAHkWnKJ x0PUaACvXIKZU6YSy+G/7N6qwpCSl/ELZQBT0iCdCjMR4d7UsTBR55QG+y4lWkVGUl4u VRUg== X-Gm-Message-State: AOAM5325HoNOiA83JtTU/74z3uWy8IJT++8JeNXMNke03Yi4VPhii4D0 Dz4uQLxd6B6De3nVceHnAKo= X-Received: by 2002:a63:fc52:: with SMTP id r18mr3397847pgk.334.1593423072881; Mon, 29 Jun 2020 02:31:12 -0700 (PDT) Received: from varodek.localdomain ([106.210.40.90]) by smtp.gmail.com with ESMTPSA id q20sm2921286pfn.111.2020.06.29.02.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 02:31:12 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, Vaibhav Gupta , "David S. Miller" , Jakub Kicinski , Jeff Kirsher Cc: Vaibhav Gupta , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: [PATCH v1 0/5] ethernet: intel: Convert to generic power management Date: Mon, 29 Jun 2020 14:59:38 +0530 Message-Id: <20200629092943.227910-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): iavf: use generic power management igbvf: netdev: use generic power management ixgbe: use generic power management ixgbevf: use generic power management e100: use generic power management drivers/net/ethernet/intel/e100.c | 31 ++++------ drivers/net/ethernet/intel/iavf/iavf_main.c | 45 ++++---------- drivers/net/ethernet/intel/igbvf/netdev.c | 37 +++-------- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 61 +++++-------------- .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 44 +++---------- 5 files changed, 58 insertions(+), 160 deletions(-) -- 2.27.0