Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp742412ybt; Wed, 1 Jul 2020 08:58:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW4kfD960hGGEg8jjf73dm/GuSWTxdosMsfBnXYi3wTxrBQfVSZgPNJMXsKEKVqm+sW9at X-Received: by 2002:a17:906:1747:: with SMTP id d7mr15461963eje.39.1593619129516; Wed, 01 Jul 2020 08:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593619129; cv=none; d=google.com; s=arc-20160816; b=Hp+FleS9SUeI8La4372iskp0c80Az5ES6e5VC/bLmrZeUknZCvhHhKmmo/9Vx0fp8a l94bJmOa55CFKzGcONlg2iiG9tG6kmjEUqHLaR2d39bJHi4Ug/M6pPJHFBSex91Y7hyj IQ4oCKjlNkSgx7CLYNq4YXq/b/JKp62aELpmR46x2EedgLRrKCos+4NVrsu2vm3GQl6L ORhPdGCxhV+M951AOJwl34/PsHyQymgI2d9yq/TxSP1/Z0U4NhRp+LOS7M+vXZAErIwY rjsxlQIpDn9CznmeKgXT51YyTEL5klkMrTce6K7LMaByspJd3IXrM0BcgUCab+2E9tcv uLHw== 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:subject:cc:to:from:date :dkim-signature; bh=P6FHaa9DQcJ8fmdmXC4yms/wAGy1slZrAxGsLoEgzeA=; b=ooxNO1s+JsFe6Opxk4oS6id61KPkJ2SSMCv+XwikedkLSdnQsjGNSq77q50pfneIuQ aUZX7a4neq6GC2e18HIJs0YQIx+yK8/1f9J87llfgs8kf0bRs8rY7Bvs3nP4GGXjCaBB hiqLFZHs/I1QHuKyCxbXwIQfPsQNROBIGDAERfDweHbfNKe5rgObxhbyVTDFNSQ23s6u snScvfqoYfTKBGTelNf1yRV+L/msleja22IEG1/F1PdP3ejA3+hlEXvpw0hz+vpCe86q ARj49NbXqeTPZltvy/xNqqK+Fwg7qiGnJJMj3TbDPp1AMt40KX7MkwOU7lZlD/tSobBU ZhQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zP1k9Vyg; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si4263113eje.503.2020.07.01.08.58.26; Wed, 01 Jul 2020 08:58:49 -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=@kernel.org header.s=default header.b=zP1k9Vyg; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732158AbgGAP6J (ORCPT + 99 others); Wed, 1 Jul 2020 11:58:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:38370 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729308AbgGAP6J (ORCPT ); Wed, 1 Jul 2020 11:58:09 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B614207BB; Wed, 1 Jul 2020 15:58:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593619088; bh=V1iDW3HLHhSqBPcQehF0Rgg3mQVIlF7VSD1AxxlZohs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=zP1k9VygO6HMuMhSsK3Ri5ecwyhKTBVem6tv7+iZlkO2LfWUPUV8kB5w+xwQCC/yb NPWSYrq7lNKdPGH1kSf357yagD/OZvsRD5rkLejuyYhXie53xsFQIUIwXq5sqVL24C QWNqJuqt4nKNy53k2fBP6LoHQEIv1WZqAY2xP7+A= Date: Wed, 1 Jul 2020 08:58:05 -0700 From: Jakub Kicinski To: Vaibhav Gupta Cc: Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, Vaibhav Gupta , "David S. Miller" , 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 , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: Re: [PATCH v1 04/11] ena_netdev: use generic power management Message-ID: <20200701085805.4dac84fb@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200701125938.639447-5-vaibhavgupta40@gmail.com> References: <20200701125938.639447-1-vaibhavgupta40@gmail.com> <20200701125938.639447-5-vaibhavgupta40@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 1 Jul 2020 18:29:31 +0530 Vaibhav Gupta wrote: > With legacy PM, drivers themselves were responsible for managing the > device's power states and takes care of register states. >=20 > After upgrading to the generic structure, PCI core will take care of > required tasks and drivers should do only device-specific operations. >=20 > Compile-tested only. >=20 > Signed-off-by: Vaibhav Gupta This one produces a warning on a W=3D1 build: drivers/net/ethernet/amazon/ena/ena_netdev.c:4464:26: warning: =E2=80=98ena= _pm_ops=E2=80=99 defined but not used [-Wunused-const-variable=3D] 4464 | static SIMPLE_DEV_PM_OPS(ena_pm_ops, ena_suspend, ena_resume);