summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie/portdrv_core.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-06-07 00:32:31 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-06-17 12:30:24 +0200
commit0c7376ada9508141becec9b897d73b65ce66a15a (patch)
tree147fa29efa806061702fcb07fee2f1ac911ec6a8 /drivers/pci/pcie/portdrv_core.c
parent234f223d63d8f7db64a682ccf02871d40d38db52 (diff)
downloadlinux-0c7376ada9508141becec9b897d73b65ce66a15a.tar.bz2
PCI: PM: Replace pci_dev_keep_suspended() with two functions
The code in pci_dev_keep_suspended() is relatively hard to follow due to the negative checks in it and in its callers and the function has a possible side-effect (disabling the PME) which doesn't really match its role. For this reason, move the PME disabling from pci_dev_keep_suspended() to a separate function and change the semantics (and name) of the rest of it, so that 'true' is returned when the device needs to be resumed (and not the other way around). Change the callers of pci_dev_keep_suspended() accordingly. While at it, make the code flow in pci_pm_poweroff() reflect the pci_pm_suspend() more closely to avoid arbitrary differences between them. This is a cosmetic change with no intention to alter behavior. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/pci/pcie/portdrv_core.c')
0 files changed, 0 insertions, 0 deletions