PCI/MSI: Move power state check out of pci_msi_supported()
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 14 Oct 2019 21:17:05 +0000 (16:17 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 26 Nov 2019 19:10:28 +0000 (13:10 -0600)
commit901c4ddbe277a766fd081ffbbd526d7b4bdbacdf
tree46c929c5f4fa41141df4743837a5b12715327f9e
parentd41b0e64d206f8948212b4d0f30c330db95c9636
PCI/MSI: Move power state check out of pci_msi_supported()

27e20603c54b ("PCI/MSI: Move D0 check into pci_msi_check_device()")
moved the power state check into pci_msi_check_device(), which was
subsequently renamed to pci_msi_supported().  This didn't change the
behavior, since both callers checked the power state.

However, it doesn't fit the current "pci_msi_supported()" name, which
should return what the device is capable of, independent of the power
state.

Move the power state check back into the callers for readability.  No
functional change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/msi.c