Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1697326ybs; Tue, 26 May 2020 01:07:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC3/P8vosl83dH5NCG+CaQYaIFvrKBUJFSfBWGjfftMCv4mSzvKGclBybOQwJsOJzrZvVL X-Received: by 2002:a17:906:1f09:: with SMTP id w9mr81251ejj.508.1590480426157; Tue, 26 May 2020 01:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590480426; cv=none; d=google.com; s=arc-20160816; b=eVaWekedxaDtC1vNEoHmGQ2lxZzzaPIeW1CsPpZS1IsJ87M4uzzcS//aA0TmtvTbGR /q73613LvJ0AHW3QI6butdFI9xggD1DczbKX24lY+/y+6Gy7CLkD4ThoywmoIiXOvIyh 4Cw2MqBp8s/gyoBDC1BskMn1xJ+rbWw0iIB3zboQTNlbLLtAzJU+w0lx2zrNRKaFWQDo 6tk6FzO+FZSQOY5iXkUY3Ut0ZwC9FUPSNk5QcCT6mp6GXBSys4783At4dg6c1u7VVKAA 06dRaWHmeWMFabTsYGv/yrOW+lO4VLs0UsUW8DEIaz0jAmGudFpy0tuDHUoamd85Wf5u qcHQ== 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=s99asDh3KqWhbtaAWLoxUL9KkIJuoxOh8yq3KY5BrWQ=; b=byqYO9bUqj2jbQb34XFvt90LGCX1aeYHcqWjrs+teMeEc1OeyDGKNLt1VkVEC1KHOg XlkdF1YVHGy+z+An6L1ROKE6fOTXW32FXkONDmGnZYcKB5ti2IKmwfeaOCP09gRfG7Sq TxTDUQri6W3zNSkAUgPQMqO7/D2wMrvgsn74xWhC82hYzrEzpUe92TY/EMCedQVHI6wu 5WRSTF0mL1UaQ12FbQ3UvScyUViemW1qQWBdcvaQu7iX69zm2gv1yNUD5YqMtVUv7rPQ epWgnG5syRiEGDGvcZO3ijROluJtL2InEKXIZc4MhKPREi463zPd85tjBc8HeQ19XLlN X4gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Tz1zKCSo; 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 hb5si10565290ejb.426.2020.05.26.01.06.43; Tue, 26 May 2020 01:07:06 -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=Tz1zKCSo; 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 S1731453AbgEZIE4 (ORCPT + 99 others); Tue, 26 May 2020 04:04:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727900AbgEZIEy (ORCPT ); Tue, 26 May 2020 04:04:54 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67DE1C03E97E; Tue, 26 May 2020 01:04:53 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id bg4so3034802plb.3; Tue, 26 May 2020 01:04:53 -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=s99asDh3KqWhbtaAWLoxUL9KkIJuoxOh8yq3KY5BrWQ=; b=Tz1zKCSoTHHucRUc2yQMyukp4e4qrrwhsUh8b0LQrY+j7riVutzUZ3CdlTFW/zCDVc dnKevt+yNUl38GN2jcDl4l5Kvb2EIC6LSqa8H8/JFf55FpvMUDy0e60PpgI6GXxxC4Qe 28awVQt3Hm+8J3+1SFfBLTURZKgQwr2qQAspbd6CoJMSA9M0TCdlwjrXXX6/RULjc2T8 nc7NDHCX/ajltPg/trR5I8CnaKcaAFDRewfBGqkpphf4ryBTZelSLJEELCJCLHQKR/Bd +WGauubie/aXE4QWdEIzL/I8XvsvJFMu+RPerGK9qY5r62v44NBvdMtTmKVABFYdoYW6 ms+A== 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=s99asDh3KqWhbtaAWLoxUL9KkIJuoxOh8yq3KY5BrWQ=; b=PBbtXGvDrgxbV8fUNOjY8eGAvFBh35iBk+KSPFKL7KdvJbAMTQ/HKKaHQh4yABerug 76I54eUnjURUDEUz6ygORPctZyTJap5u1qWp75kf95D8/8DXDbnLlqJf89ZE8yv0Tj3t VGDq4NKnSmiWar6qk+i7WAxzP6JihOwsPz+YOnxPOXBdzTyrkFSMAZNegCJ/6lz8heFi u/A9+ODygq4pTvMgYUA+X3QbnLRNqS9EOn9tPjG/g3F+QVR7RBxnBX/r5TjH+iBa5JrA cwP3jbsLuiJsITJrVe9sjVpuAyHxx33puqUS5j8Xbwa4S+k62cmGwTGWHQyNRSrA7RFH 1S1g== X-Gm-Message-State: AOAM531qdMwwDrH5ORR32mj/B6aJdoCMiNp8FjNPi6ky7AnxrnB75QgB wdbrxQ9jfAL34AIxkHYzMFI= X-Received: by 2002:a17:90b:3d7:: with SMTP id go23mr16352740pjb.9.1590480292908; Tue, 26 May 2020 01:04:52 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.152.209]) by smtp.gmail.com with ESMTPSA id fa19sm8614477pjb.18.2020.05.26.01.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 01:04:52 -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: [RFC PATCH v1 0/3] ethernet: amd: Convert to generic power management Date: Tue, 26 May 2020 13:33:21 +0530 Message-Id: <20200526080324.69828-1-vaibhavgupta40@gmail.com> X-Mailer: git-send-email 2.26.2 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 mangement 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 | 17 +++++++------- 3 files changed, 31 insertions(+), 38 deletions(-) -- 2.26.2