Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp53100ybt; Tue, 7 Jul 2020 15:51:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcl9a4oHgQJUF0xwx9Et6FPLsWUi0AuCxISy2/vSsGDvQrB1OvRERMYAgGGgJhk6fkNJmb X-Received: by 2002:a05:6402:234b:: with SMTP id r11mr36425031eda.5.1594162295040; Tue, 07 Jul 2020 15:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594162295; cv=none; d=google.com; s=arc-20160816; b=CXYkjICtisNA1qe1X0NbZQKrxS7ANjvp3u499OmsHw5zA7MMBifkbhpZHMbgFKlmSD 4gcZJ15RbPUZGGTFfXBr3hFsDqbafBB4Ssf1y30MxkTTQEDK8OxDxr61IVgQXQUTGrr5 YBoP9HXrB8QFv03RrnwxzrL5Jn52wiCuveJk7msixdPBh9oLjhxwWOVooYWyAgxQOI57 CfaqN30ylb0cry7wtbvSOH+vXAMxeRSbYUGr6s/iLgfOj+fytSqCB3FbJWMSonJOiNYj JxH3CMGJPIBhEwGrf1bMbBgUbv9kfGG13gemFYeEiQ4daVQ8B7VjKmlLAbE3iAsj3nib TStQ== 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:from:subject:cc:to:message-id:date; bh=E6fEUco2oLzMhVikhuYKx4gCW3EgjNwPPnB5WH0ecj8=; b=roAJy402Mt9RuXY+8i3KAZ9lyJrkHmVg0RFBvFuGK07d4SsSZc8s0jWrUFzMuSBmMR o9FxKhp5kpTRDJ51CL4Utyy7UmDmfdeySMZdLKjZH4cYyNE8aja6UdOA1u9lDpe7cOKp kJyxo4Wp2/vl7xe04dR4YiQB6L33yQgQFbU/9TXFaE8UoORbF8FeMrhlrTQcGUZ6xjjV 7g5CofdS4jl1KLlweGZxU1IqlQxrdAsmDura0VbcQht9raCRRnVgDiBEer2d+7GtcOhP zMEmRmxYwChtIkbmPfqxMitqWnAzHGvb2D4G5qDMKJc8dZppmeKzUVXs7ZAdByWiFL/B /iMg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bv17si15234702ejb.263.2020.07.07.15.51.12; Tue, 07 Jul 2020 15:51:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728847AbgGGWWX (ORCPT + 99 others); Tue, 7 Jul 2020 18:22:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726946AbgGGWWX (ORCPT ); Tue, 7 Jul 2020 18:22:23 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83D0FC061755; Tue, 7 Jul 2020 15:22:23 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id C73D3120F19F6; Tue, 7 Jul 2020 15:22:20 -0700 (PDT) Date: Tue, 07 Jul 2020 15:22:17 -0700 (PDT) Message-Id: <20200707.152217.580419867258219789.davem@davemloft.net> To: vaibhavgupta40@gmail.com Cc: helgaas@kernel.org, bhelgaas@google.com, bjorn@helgaas.com, vaibhav.varodek@gmail.com, kuba@kernel.org, steve.glendinning@shawell.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: Re: [PATCH v2 0/2] smsc: use generic power management From: David Miller In-Reply-To: <20200703030138.25724-1-vaibhavgupta40@gmail.com> References: <20200703030138.25724-1-vaibhavgupta40@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 07 Jul 2020 15:22:21 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vaibhav Gupta Date: Fri, 3 Jul 2020 08:31:36 +0530 > Linux Kernel Mentee: Remove Legacy Power Management. > > The purpose of this patch series is to remove legacy power management callbacks > from smsc 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. > > V2: Kbuild in V1, warning: variable 'err' is used uninitialized whenever 'if' > conditio is false in funcution .resume() . Series applied to net-next, thanks.