Revert "PCI: PM: Do not read power state in pci_enable_device_flags()"
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Jun 2021 15:35:18 +0000 (17:35 +0200)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:48:57 +0000 (08:48 -0400)
commite9695e4d26d210b81c9c8a11f6983c1190a3a9cc
tree2c83d4e7291b04274e10071e94655ac11c97e948
parentd4f08316ad339b7c3b0fd55c2947f4c320ee32d0
Revert "PCI: PM: Do not read power state in pci_enable_device_flags()"

[ Upstream commit 4d6035f9bf4ea12776322746a216e856dfe46698 ]

Revert commit 4514d991d992 ("PCI: PM: Do not read power state in
pci_enable_device_flags()") that is reported to cause PCI device
initialization issues on some systems.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=213481
Link: https://lore.kernel.org/linux-acpi/YNDoGICcg0V8HhpQ@eldamar.lan
Reported-by: Michael <phyre@rogers.com>
Reported-by: Salvatore Bonaccorso <carnil@debian.org>
Fixes: 4514d991d992 ("PCI: PM: Do not read power state in pci_enable_device_flags()")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/pci.c