Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp600045ybt; Wed, 1 Jul 2020 06:02:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx99jdxMpyrBXWo0IG78dWMB4fbXL88m42DVr4+w1jLp1H5C7bYLkhgZDfO8YpZ5a0SPLKc X-Received: by 2002:a17:906:f752:: with SMTP id jp18mr22576214ejb.538.1593608527122; Wed, 01 Jul 2020 06:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593608527; cv=none; d=google.com; s=arc-20160816; b=F31t+RbQiMTt1/8ZdGVYZwE/WShlJEIkCxyH7nG4vMY26ZHcI2dKtIf5lr0YHaOmG+ flG3fBZLfR4QKVDCq6KFKZx9H3eg0jrcbmBfbPeWGQWJiVexMzUGpKv1GIIJf2aZMWIx oMdvszPVPpcJB6/k+Zzj2FEw/rxUU6WDxLFQ4Hd9irwArbG3jGDBJg+yfM0PinMJolNm t81HLusfd1Opy6cgCfBmrh3evKGyOOc0ijTQDxT90WjrBu6lByBRQQlSqkLNnuj5kEnj INj+bS4hKJG0QrTsEiF/y3k3SMwMW2vd019jIqzzEohSiFg34GMnFc/ebhJ7Jtt8xWh/ VwCA== 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=VJuhLyKx0l/petl/Rvjp0iqv9iNt+v6qKlOcfit+AJ4=; b=YAZeQl1VX0AKo0d0/dmloVLrjkSV/f58tEhfVI60gvpf5JHZpHBTSnapGk8vLcLNK5 ra3dNnasZXU9MwihdkDQ65A9SBuF3fuq57dLTGrP4aTSy3KxNadgn9vnpk4syxW6ozMZ 6FL6RPxlvNm/nJGCkQnHTp57M6fxbJuJmTQJ5BBp6IU0KN+D0bKQHLfln9KBSpxNMbD0 pOJHUcfWnSizYK1Flo+/36rZw27pRRx9ExNLnvGjteqvbOrlBrvQy9SsVncK2wJOXDN+ CT5zc0gssRIsr1cWqgak7TO+uxb7x7UAzKocZyCrPooG72SJr9Zz+5BFMqWaKUV84/ib TkHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aIfoTf9a; 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 dj5si3688994edb.367.2020.07.01.06.01.42; Wed, 01 Jul 2020 06:02:07 -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=aIfoTf9a; 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 S1730672AbgGANBM (ORCPT + 99 others); Wed, 1 Jul 2020 09:01:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730271AbgGANBL (ORCPT ); Wed, 1 Jul 2020 09:01:11 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32CC9C03E979; Wed, 1 Jul 2020 06:01:11 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id cm21so1630257pjb.3; Wed, 01 Jul 2020 06:01:11 -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=VJuhLyKx0l/petl/Rvjp0iqv9iNt+v6qKlOcfit+AJ4=; b=aIfoTf9aApBl06YRh9QdqwTktxo7ifaiaKRMMUT2fop5u7VRORc6pQV6sVf6ZMbT2f g6ZBp4FiMVDOjREmzUXAFtE038jkevv28skhmfoRN291ZQze1m74696Cg+yD7TJ1kJS8 EEMUXwIpzdcImcD0p0D0O7BJCIG6uLpt8wmEBiAhYLJ4hpldEr6fEhVc9jsec7eBMeBd c9USZfRwFvVUHppP6NYyT1fbkfsbMPcE6TLjR2B2Ues6clXYKy6vom3G4bJO0lX7wyNf 16bZtOHTsmb59xeHm2B7Ce2HIh5EuWKasfDlaF2r+ZnvZ7U9ZJkkMgFNp2UeUBZlljm8 U5Pw== 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=VJuhLyKx0l/petl/Rvjp0iqv9iNt+v6qKlOcfit+AJ4=; b=BttrqN5FABXmj8yMDdmo3Ye9yiu/LsBe9AN3v6Z/FX/xozvVIRBr8Nj/3XdL7QgaCY 3izdmPAjDaMud7Gz+SRAfyFo0RHdbmK5ph+EL4dHLMhmaVd/zuHZYp6bdCdyHjnnyIbT lP4t8rppO5s4dKGB/p68W8nXw9nYI+jD0/si0gdOl0dzGpH/ufLTNdBy7E7RiaM2oya2 uapPBHiLtvtOh1DbduJrhcgsXAFya/RRJRFFYWe1MqJNM0S7cfvZsCg/tA3gC2S+Ob7U ry5FS0nm0BsadkSNeYxsg8ifoPUNHSAQKfM5qL2evGM9ib2VxR1xy6XZLT4qJdqG50Ud Jyfw== X-Gm-Message-State: AOAM533CMJXxx2iJlBID7gf2wkzRwaij4daJ206cvlaR49mwehrzZ324 MHZYUelHGTJRnWlfciT/x3c= X-Received: by 2002:a17:902:7c13:: with SMTP id x19mr328651pll.74.1593608470657; Wed, 01 Jul 2020 06:01:10 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.153.57]) by smtp.gmail.com with ESMTPSA id d9sm6070908pgv.45.2020.07.01.06.01.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 06:01:10 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, Vaibhav Gupta , "David S. Miller" , Jakub Kicinski , David Dillow , Ion Badulescu , Netanel Belgazal , Arthur Kiyanovski , Guy Tzalik , Saeed Bishara , Zorik Machulsky , Derek Chickles , Satanand Burla , Felix Manlunas , Denis Kirjanov , Ajit Khaparde , Sriharsha Basavapatna , Somnath Kotur , Tariq Toukan , Jon Mason Cc: Vaibhav Gupta , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: [PATCH v1 00/11] net: ethernet: use generic power management Date: Wed, 1 Jul 2020 18:29:27 +0530 Message-Id: <20200701125938.639447-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 (11): typhoon: use generic power management ne2k-pci: use generic power management starfire: use generic power management ena_netdev: use generic power management liquidio: use generic power management sundance: use generic power management benet: use generic power management mlx4: use generic power management ksz884x: use generic power management vxge: use generic power management natsemi: use generic power management drivers/net/ethernet/3com/typhoon.c | 53 +++++++++++-------- drivers/net/ethernet/8390/ne2k-pci.c | 29 +++------- drivers/net/ethernet/adaptec/starfire.c | 23 +++----- drivers/net/ethernet/amazon/ena/ena_netdev.c | 21 +++----- .../net/ethernet/cavium/liquidio/lio_main.c | 31 ++--------- drivers/net/ethernet/dlink/sundance.c | 27 +++------- drivers/net/ethernet/emulex/benet/be_main.c | 22 +++----- drivers/net/ethernet/mellanox/mlx4/main.c | 11 ++-- drivers/net/ethernet/micrel/ksz884x.c | 25 ++++----- drivers/net/ethernet/natsemi/natsemi.c | 26 +++------ .../net/ethernet/neterion/vxge/vxge-main.c | 14 ++--- 11 files changed, 100 insertions(+), 182 deletions(-) -- 2.27.0