Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1701605ybg; Wed, 29 Jul 2020 23:44:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRKnV9O+OWJjGRX9scUkxlzY84YTR6EFrojCvNYrqwY1XKuef1xMbVMfa6Qf9AWNM/beZf X-Received: by 2002:a17:906:6146:: with SMTP id p6mr1231556ejl.211.1596091499123; Wed, 29 Jul 2020 23:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596091499; cv=none; d=google.com; s=arc-20160816; b=KiWKsOW1UQCss35FOuzWJ6ezLdmc7WhcXhAB9b4Vkr4jC615IW1WykOkYMmBOiCBQg 4Fxa5WnZh0jDUzfMoBT2i11uxq8PMt4jhDjBQlt1kPt1LsphAYOujmdhlLUaI6BOw1pJ b0M1ju5mVqJ8Ey611Lc2mzZREW3rpUkAJvfMr6hkyl+xKoIlzOx7LrOaUC7vXWMncY4i Y1xXBnZqujKae0UF32M82l8Y+3h/6jAhSTuK30ukJhP4vQ658iOIXEhyPaCc/n5gYLA2 KQKBzmbzuF85cn5GlkgB3GKgIoXDVvuKdxROPF8H9V5KUCY1s1rJuR9oOu4p790o5zTV 58lg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=T0Z6YHYdP/kQD0cMS+cNQldOhqY6T8q1pjXPvT/YgO4=; b=JqU58xTfBxagBiXNBUfPBKCcOcJkAQtw62ND7Wuc/NeobUDTHLxNdPfnUdS+8s05An 6UtqK/WJ5qlHIt2XCLiAXUsNYPI+TL79ajXe+LLj+3tEcd+Sc5gPY4wXqIev/TBQj9Pv 7UolKsZULKo2bM2Qoga7TK4sAdgJfJvgDzA1Pf2/ExUw372tf474hEGxY7kow0cLB5Vi uwMDbTAj5oQflW6iOK93vpYzl1iBmjLT3AFkNWkMC01NQ6nQg1p+9CF6WXz1CWRdkSw9 qcZ9R0SBBGtkosQu1TwPzgih4251F42dQ9z8XxbfsHcMVaY3KeWLaVcbRE9MkHNHDrcN WhOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OiRstPhm; 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 k17si1813537edf.284.2020.07.29.23.44.37; Wed, 29 Jul 2020 23:44:59 -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=OiRstPhm; 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 S1728819AbgG3GoO (ORCPT + 99 others); Thu, 30 Jul 2020 02:44:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbgG3GoO (ORCPT ); Thu, 30 Jul 2020 02:44:14 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D34C061794; Wed, 29 Jul 2020 23:44:13 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id r4so2602681pls.2; Wed, 29 Jul 2020 23:44: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=T0Z6YHYdP/kQD0cMS+cNQldOhqY6T8q1pjXPvT/YgO4=; b=OiRstPhmDEM9j1YxieKFDsmisl0va0TTs8SAgeCbQrA9AWLamk4R9MGSsK4v6bndhB RLewfarih1eCgV3Iputcsb8Fikf0Ts4i1DzVjx+N38MZOsWuNZkJbnGWYYRBMLzi/QnS gWLNvJwgGfa9pyvyYFGPfrF6suBPHMvAA8Pp+dAgRwz7pEIvIVwPBboizcmAW1ewhGnw oyNfRbmQAbZmpzaktT4Tx0ON8SY7SRP9rtF+afdlUt1d0G0UQIhpYsUI4FmTbgULbQSr QN5TpBwhN21MUhS84sWBvKcg/78IQrktg/pOpWQICx27YFOfDNq88Ez46QtYgrlndHW+ F7jw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=T0Z6YHYdP/kQD0cMS+cNQldOhqY6T8q1pjXPvT/YgO4=; b=OGsm1z4+TV9Q8RRpg5P7iD33t/H5RuY0O0rUS7C2hEhTSpPcIh55zUddfTo5KT815d vGPgqj8jx1aIDu3sqJWeuCSOGqqv2/SOrWow6QUny7DCKyNylqOdpcrpXvz3LDQhxiXq GWAYjtZUnBmDhOOzCnMZRElW/N/pfyjxgEb994BY+ToZT5JXk8WmXnLOqDMfQda39yma MOgtFX0LqsAplXN79L85Kk9MgT2DdfzwNA7hLS8YXtuejqRdd2rr7te0xUHlMl3f6SMg vf0y60lFwljAZ7j511x6MsMU8VVEpnRys/3mXbL+jtdh10IEznsGQt5U/wnjf/zYv9Oj trYA== X-Gm-Message-State: AOAM531IOL5hEDWG+nTcuzRom//OFe3n5ZtEAqSW68mcK1mJfdndtZ9o tk6nynk7x+gck8pfz7G5Xd0= X-Received: by 2002:a17:902:c405:: with SMTP id k5mr30039309plk.202.1596091453251; Wed, 29 Jul 2020 23:44:13 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.152.86]) by smtp.gmail.com with ESMTPSA id t19sm4456942pgg.19.2020.07.29.23.44.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 23:44:12 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , "David S. Miller" , Jakub Kicinski , Daniele Venzano , Samuel Chessman , "Michael S. Tsirkin" Cc: Vaibhav Gupta , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Shuah Khan Subject: [PATCH v1 0/3] net: ethernet: use generic power management Date: Thu, 30 Jul 2020 12:12:26 +0530 Message-Id: <20200730064229.174933-1-vaibhavgupta40@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200730051733.113652-1-vaibhavgupta40@gmail.com> References: <20200730051733.113652-1-vaibhavgupta40@gmail.com> 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 upgrade power management in net ethernet drivers. This has been done by upgrading .suspend() and .resume() callbacks. The upgrade makes sure that the involvement of PCI Core does not change the order of operations executed in a driver. Thus, does not change its behavior. In general, drivers with legacy PM, .suspend() and .resume() make use of PCI helper functions like pci_enable/disable_device_mem(), pci_set_power_state(), pci_save/restore_state(), pci_enable/disable_device(), etc. to complete their job. The conversion requires the removal of those function calls, change the callbacks' definition accordingly and make use of dev_pm_ops structure. All patches are compile-tested only. Test tools: - Compiler: gcc (GCC) 10.1.0 - allmodconfig build: make -j$(nproc) W=1 all Vaibhav Gupta (3): sc92031: use generic power management sis900: use generic power management tlan: use generic power management drivers/net/ethernet/silan/sc92031.c | 26 ++++++++--------------- drivers/net/ethernet/sis/sis900.c | 23 +++++++-------------- drivers/net/ethernet/ti/tlan.c | 31 ++++++---------------------- 3 files changed, 22 insertions(+), 58 deletions(-) -- 2.27.0