Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp781822ybt; Wed, 1 Jul 2020 09:50:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGJiqmgtxBK93wEk1MxbyKqbE7W2OxK6av5yM7Lt+eULunxVtyunT9OcKXMXV5q7UFEKmQ X-Received: by 2002:aa7:da90:: with SMTP id q16mr22887791eds.44.1593622200411; Wed, 01 Jul 2020 09:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593622200; cv=none; d=google.com; s=arc-20160816; b=VreIN02NigovwlSePFD1chkH/FDOCjsjoV9ZShBQAWngTfBsouIl9VYKVwKAGuEYFe 9F2fBzuBapir9q8qpMIhf/qEABhrrrb4jZsdV0/PHRTCiCIFJx8eFHaQQmBkhyBbTQ1D 0KGtXnyXeTfH8t5ueLPTIrnYg1wygIwD+U8GyVoqjRBLiFTE3S+ecE0BjyjOtYdUv3uC 2QlKr3y7e5K4i85cTXzIjmAvqt/heA01qeBfyfNgFmmDzmhRhQNHSfqtLtCqPMIAizQx p/M9QEZrJy+8P8Dykj/KQ2FLf2vYT896pq6J6nBhTwWV9ZLOV1vXNa3jbTTY6BEHth84 EEtA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cgXOYeOBav3lpCc6RnkxnTtxmQ18prKpm12TGEbwf+o=; b=IoHcNhry/3BpUk+cT89YvHuutaF0itOWZbg1F9YmVLivG+SSkE+nQH6/by10+ou2LA cM4A6Jjy4ZgvPP503Ejt/ILCan3K48qCMt0QAggYsyB+SUjiLnW99NII2cT39SQuYxAy Qn9kX7BvEeMpxKJrnxfyAf/2GH3oNdF5dlm5LG1J/VszK9mjiaqrXy04Zrnik0FVEIKm jxsxEAZYua2zXFd2XLbaGw+5mEgmPsphxYwwaSW0V30AK6jVWj2/S8fCJzLRAgQl6s/P l8dibsOQRmTWofdmdBx0Ob/QjTY1EzB33mdkcvkO2dKeFt8gjD9lcz9Mh/c8c0edbK0c Jhiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hzE0Psmc; 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 gu14si4162392ejb.589.2020.07.01.09.49.37; Wed, 01 Jul 2020 09:50:00 -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=hzE0Psmc; 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 S1732514AbgGAQrP (ORCPT + 99 others); Wed, 1 Jul 2020 12:47:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732161AbgGAQrO (ORCPT ); Wed, 1 Jul 2020 12:47:14 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A21EC08C5C1; Wed, 1 Jul 2020 09:47:14 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id w73so9807989ila.11; Wed, 01 Jul 2020 09:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=cgXOYeOBav3lpCc6RnkxnTtxmQ18prKpm12TGEbwf+o=; b=hzE0PsmcjXmfaB3rUYvH7zJ6hDATURfLwN+3G+b5VACszlph4RLjh3fdr9km+bIy6W T+P/x8649noHlVIIyegFH72mxYYGAc/IAOLGfeVlWSfwxwIUvIm3SMXyx6g4wOlzyIgU pWRGx7S+jTL1gHJNAW2zwQ55R00XUnHqt6dgO6YProoBoS6rgTuSo+uAVr3D3eG+3Doh FPA1QRbHBGvyYDiPWWWC1BC+Q748dlZzVN2foYrSFETFTOQzwJBe4Ut3Xt5PA/QnKJ2s bwG8TVjIdibU3DJTeFiegHt5nhrepQbNCuqcvaDQSj/bknwnyMtGOewtkwtrbX6/xSl1 sKfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=cgXOYeOBav3lpCc6RnkxnTtxmQ18prKpm12TGEbwf+o=; b=iJrfcqcqIVcxNq70d3kl4hyttsZAbBeCuv/IS7ClH49S2JW4exMgQxTS3gVeuVY1Ao 25mP3oYg3jXkIKa/W38/AttHfQDueSZRFmk96yTb9M21KRNUJr23CYY8NSYoShK2jZqY CREz12KgPhmONTDHRgHDlZsQgImkm7/FPj2mPhO4e6QvGahZ7XGKNNMdjIm/mPRpKM61 VyyaI6rfyN61wxHapnlMe6tbo8N74kO4YEA6d+UJXKxex9GLtszUK9VCO2wyD3JG3UAK 0NqE3hi23YczXdoneBCVBZAeVBHZdmE1/XD66eY49pGYjYoSJDDIc47PUU7nELZmJtLz TT9w== X-Gm-Message-State: AOAM532XgYFGqkyc1L7EXV3DWteB5JhBmBHqUwUk0ea7estpsshGZgSv qbgMz7NTGAqB2ezwDCYYsvDusJSUkLI9PsedY8o= X-Received: by 2002:a92:5ecf:: with SMTP id f76mr9021204ilg.6.1593622033598; Wed, 01 Jul 2020 09:47:13 -0700 (PDT) MIME-Version: 1.0 References: <20200701125938.639447-1-vaibhavgupta40@gmail.com> <20200701125938.639447-5-vaibhavgupta40@gmail.com> <20200701085805.4dac84fb@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200701085805.4dac84fb@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: Vaibhav Gupta Date: Wed, 1 Jul 2020 22:15:35 +0530 Message-ID: Subject: Re: [PATCH v1 04/11] ena_netdev: use generic power management To: Jakub Kicinski Cc: Vaibhav Gupta , Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, "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 Mailing List , linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org 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 at 21:28, Jakub Kicinski wrote: > > 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. > > > > After upgrading to the generic structure, PCI core will take care of > > required tasks and drivers should do only device-specific operations. > > > > Compile-tested only. > > > > 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=98e= na_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); I forgot to bind it inside "static struct pci_driver ena_pci_driver" : .driver.pm =3D &ena_pm_ops, I am sending v2 of this particular patch. --Vaibhav Gupta