Re: [PATCH v2 10/15] scsi: pm_8001: use generic power management

From: Jinpu Wang
Date: Thu Jul 23 2020 - 03:02:51 EST


On Mon, Jul 20, 2020 at 3:38 PM Vaibhav Gupta <vaibhavgupta40@xxxxxxxxx> 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.
>
> The driver was calling pci_save/restore_state(), pci_choose_state(),
> pci_enable/disable_device() and pci_set_power_state() which is no more
> needed.
>
> Compile-tested only.
>
> Signed-off-by: Vaibhav Gupta <vaibhavgupta40@xxxxxxxxx>
nit: subject should be pm8001
Thanks!
Acked-by: Jack Wang <jinpu.wang@xxxxxxxxxxxxxxx>