Re: [PATCH v1 04/11] ena_netdev: use generic power management
From: Jakub Kicinski
Date: Wed Jul 01 2020 - 11:58:11 EST
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 <vaibhavgupta40@xxxxxxxxx>
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);