[Linux-kernel-mentees] [PATCH v2 10/15] scsi: pm_8001: use generic power management

Jinpu Wang jinpu.wang at cloud.ionos.com
Thu Jul 23 07:02:36 UTC 2020


On Mon, Jul 20, 2020 at 3:38 PM Vaibhav Gupta <vaibhavgupta40 at gmail.com> 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 at gmail.com>
nit: subject should be pm8001
Thanks!
Acked-by: Jack Wang <jinpu.wang at cloud.ionos.com>


More information about the Linux-kernel-mentees mailing list