diff options
author | Piotr Gregor <piotrgregor@rsyncme.org> | 2017-08-02 15:42:18 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-03 19:12:56 -0400 |
commit | ab4b8a47abeefad94cdb6b4c0df6a13f4f6ae4e0 (patch) | |
tree | 23d50d4c8bcaabd69e0d93d57342eec8bfa6def7 | |
parent | 16f73eb02d7e1765ccab3d2018e0bd98eb93d973 (diff) |
PCI/PM: Expand description of pci_set_power_state()
Add two reasons for returning 0 value to the description of
pci_set_power_state() to include the cases when:
- the transition is to D1 or D2 but D1 and D2 are not supported
- the transition is to D3 but D3 is not supported
Signed-off-by: Piotr Gregor <piotrgregor@rsyncme.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | drivers/pci/pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index af0cc3456dc1..9528781db4d3 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -892,7 +892,9 @@ EXPORT_SYMBOL_GPL(__pci_complete_power_transition); | |||
892 | * -EINVAL if the requested state is invalid. | 892 | * -EINVAL if the requested state is invalid. |
893 | * -EIO if device does not support PCI PM or its PM capabilities register has a | 893 | * -EIO if device does not support PCI PM or its PM capabilities register has a |
894 | * wrong version, or device doesn't support the requested state. | 894 | * wrong version, or device doesn't support the requested state. |
895 | * 0 if the transition is to D1 or D2 but D1 and D2 are not supported. | ||
895 | * 0 if device already is in the requested state. | 896 | * 0 if device already is in the requested state. |
897 | * 0 if the transition is to D3 but D3 is not supported. | ||
896 | * 0 if device's power state has been successfully changed. | 898 | * 0 if device's power state has been successfully changed. |
897 | */ | 899 | */ |
898 | int pci_set_power_state(struct pci_dev *dev, pci_power_t state) | 900 | int pci_set_power_state(struct pci_dev *dev, pci_power_t state) |