xen-platform: Convert to generic power management
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 1 Nov 2019 13:20:40 +0000 (08:20 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 20 Nov 2019 23:35:03 +0000 (17:35 -0600)
commit77b84bb306fd0d5d1d3a4bf1f2acf73dc971e372
treefae83c5b484e47d89bd89bf9c93afd876638f483
parentbaef7f8e5e91f85ce7625c11370479f9f0778fae
xen-platform: Convert to generic power management

Convert xen-platform from the legacy PCI power management callbacks to the
generic operations.  This is one step towards removing support for the
legacy PCI callbacks.

The generic .resume_noirq() operation is called by pci_pm_resume_noirq() at
the same point the legacy PCI .resume_early() callback was, so this patch
should not change the xen-platform behavior.

Link: https://lore.kernel.org/r/20191101204558.210235-5-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: KarimAllah Ahmed <karahmed@amazon.de>
drivers/xen/platform-pci.c