]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/PM: Set current_state to D3cold if the device is not accessible
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 5 May 2022 18:04:07 +0000 (20:04 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 5 May 2022 19:19:48 +0000 (14:19 -0500)
commitf746084e54cbdcc6a903b43838a37c4913bb50fc
treebaa9281425ce5de8b7ffa84cb227a237f06e622c
parent51746c5ec4c5c5bcdea2ce0112d6e733dc4ce383
PCI/PM: Set current_state to D3cold if the device is not accessible

Make pci_power_up() and pci_set_low_power_state() change current_state
to PCI_D3cold when the device is not accessible along the lines of
pci_update_current_state().

Link: https://lore.kernel.org/r/10104376.nUPlyArG6x@kreacher
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c