PCI: sysfs: Resume to D0 on function reset
authorLukas Wunner <lukas@wunner.de>
Thu, 19 Jul 2018 22:27:58 +0000 (17:27 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 31 Jul 2018 16:09:36 +0000 (11:09 -0500)
commit82c3fbff6ed3582f2b14b5548fb976c22d7a7255
treec6aa7cceb79465645953b2b31558513283b04613
parent4417aa45c185376ece278430e33b6a1891a1dc36
PCI: sysfs: Resume to D0 on function reset

When performing a function reset via sysfs, the device's config space is
accessed in places such as pcie_flr() and its MMIO space is accessed e.g.
in reset_ivb_igd(), so ensure accessibility by resuming the device to D0.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Yinghai Lu <yinghai@kernel.org>
drivers/pci/pci-sysfs.c