Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2671851ybt; Mon, 22 Jun 2020 04:20:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/wR4s9rl7aq+1HGhstqb9FNK27F9V0wBAIDM/KGazVDI3qHMRvtTMfR0xg1HSc/Q0E2s7 X-Received: by 2002:a17:906:2581:: with SMTP id m1mr16158289ejb.89.1592824810505; Mon, 22 Jun 2020 04:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592824810; cv=none; d=google.com; s=arc-20160816; b=qZ52yHkrLpH2rnPE6miWOR5YHOOIFzrLInCZSV8iJ+kn7LP/HnB7aq2IKyn+Dv/PO1 rS5BgiuhlGqiCeLYHj7lGEIN1Iz5unCfOm2mPVQZfucM6RebRE+S70KCtP22pnberRWo kfAuIR2Vi17iK9H+2TBBmfgjIuXwmzXrsLauxKWjskpJOJIfXy4iAzfQBj5InNggvUe9 UMkaR9ghyv42kCL6oYZFJK7Hsr70BMR4DDPPmaaqieMO6aElNU+TRQ3XSDs3Ed7VKFnI PUAK5nNgQQLRltzvnFZ0EIg1Mw5vBeWSebIKozrYFdLPGzI+BPTGC5jbUAYCID8IRzTw zfhQ== 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=qYAXPW7DT0kbvzrQebyhhIbPbS864IccOljK5pvAni0=; b=PBnMgAigpY473t0UNpV8SaHlrJjpriV2SAwOsovYO+Tu2mz0TOPuZEaUo7aCwELVmk 4XBbOkdP0JYHTeyQWajc64lYXg+jLIk8kUXAKO+NILmbK2+K2ML6btjKXF4rcrkEEkx/ x/5/WXxMfm08Bns41LuOyD5RZfyiquNPBWTKFcbdwgIvyIezbwyxY8C0S58e802lDtkk edzDVSuBIB9I/QZZ8v1SPVgFzzYwNbzaq+4SEsZp5KwtcyZU/pNaZus3CdU+u7raUvGo TWxT2gnXBEZb7J/v0GCWasII0rt2HONxCKeuczERgo/5yB/9FvW9bwxbqsFG4JXwrb+O omJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lftijr+B; 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 o2si9713462edd.477.2020.06.22.04.19.47; Mon, 22 Jun 2020 04:20:10 -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=lftijr+B; 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 S1728243AbgFVLPS (ORCPT + 99 others); Mon, 22 Jun 2020 07:15:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728247AbgFVLPL (ORCPT ); Mon, 22 Jun 2020 07:15:11 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3358C061794; Mon, 22 Jun 2020 04:15:10 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id j1so8279555pfe.4; Mon, 22 Jun 2020 04:15:10 -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=qYAXPW7DT0kbvzrQebyhhIbPbS864IccOljK5pvAni0=; b=lftijr+BoVI2hKAc7YoyK6NPtN166LMRGO8r4gck9Aa5QzCc6tqZOvR68LxyOR4rOW b3MdgwPqdDDW+/jySMgdBT4pSqbFHM/O3eydto3DTigvIh+fwwLgcICyHKXFAcZ4Aeqg c/qBlBZ2uHXBvXFO1InOJ57M5ErQFNAv5Aj15mtTRcMJOslpucX46ZesUofRzcTe4RJb FtI2kOva6fiKZoUVLWWHTJN7YlLvyQVZE/2CM9X/wXhY+OE0HD4teXffpw73mB2eUIc6 EIu8WSrKdeLX0aPSlKaiLEeGHRL9+cpNUT9Eijng6rEMbEhKugVMaoCM6BFbfqmNJlkE djDg== 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=qYAXPW7DT0kbvzrQebyhhIbPbS864IccOljK5pvAni0=; b=RfiZgW5rWikCAzYBzRON/3+ylCIqTocT7ze38wfSh36xyNIdgiRyFjsnlU1hM+frPL hHA2HZWLLsyHTLAvshbi+tTcXSuYYFsRuNj/6nVCEyUVaKWTV4DlOSAAUZp7NQQ7ClE3 vePuidF2k9g8YXKNy9yZX2snOxkrvkkiOmQJlJnQyFikCL3upMgmmwVtHrasUMDVoKKa vm3LhpNxxCe4wnd5hHb8hO650jrw/Vz4WfUfsLm5C/LSzx2ucFBVllPslmiaenRehmsg sgb9GaArJfgx5NPTGXkW2IdW5k5hGYk7i/kMI2FStAfXFJzkUwBafeat+7iFQl8Uibrp pRmA== X-Gm-Message-State: AOAM531hOs3xpgx57fIc5oezFHmTEMC7smZg45xGq2e/PPXGqQs1Fk14 45YLwWKNFQnOVMplBQOFeBM= X-Received: by 2002:a62:194d:: with SMTP id 74mr20748665pfz.21.1592824510388; Mon, 22 Jun 2020 04:15:10 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.153.57]) by smtp.gmail.com with ESMTPSA id n189sm13950150pfn.108.2020.06.22.04.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 04:15:09 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, Vaibhav Gupta , "David S. Miller" , Jakub Kicinski , Don Fry , Tom Lendacky Cc: Vaibhav Gupta , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [PATCH v2 0/3] ethernet: amd: Convert to generic power management Date: Mon, 22 Jun 2020 16:43:57 +0530 Message-Id: <20200622111400.55956-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 (3): pcnet32: Convert to generic power management amd8111e: Convert to generic power management amd-xgbe: Convert to generic power management drivers/net/ethernet/amd/amd8111e.c | 30 +++++++++--------------- drivers/net/ethernet/amd/pcnet32.c | 22 ++++++++--------- drivers/net/ethernet/amd/xgbe/xgbe-pci.c | 19 +++++++-------- 3 files changed, 31 insertions(+), 40 deletions(-) -- 2.27.0