Thread (15 messages) 15 messages, 3 authors, 2020-07-01

Re: [Linux-kernel-mentees] [PATCH v1 04/11] ena_netdev: use generic power management

From: Vaibhav Gupta <hidden>
Date: 2020-07-01 16:47:16
Also in: lkml, netdev

On Wed, 1 Jul 2020 at 21:28, Jakub Kicinski [off-list ref] wrote:
On Wed,  1 Jul 2020 18:29:31 +0530 Vaibhav Gupta wrote:
quoted
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 <vaibhavgupta40@gmail.com>
This one produces a warning on a W=1 build:

drivers/net/ethernet/amazon/ena/ena_netdev.c:4464:26: warning: ‘ena_pm_ops’ defined but not used [-Wunused-const-variable=]
  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 = &ena_pm_ops,

I am sending v2 of this particular patch.

--Vaibhav Gupta
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help