PCI/ASPM: Allow re-enabling Clock PM
commit58bcfc81c60a2ad85cbf01fba472a53cf9afb25b
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 5 Oct 2019 12:03:57 +0000 (5 14:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:31:16 +0000 (29 16:31 +0200)
treec49072159c578810d724ef04af7d4bbb7038d162
parent8b1ab979c63d5077adc25ffd4a3c61d0133bf848
PCI/ASPM: Allow re-enabling Clock PM

[ Upstream commit 35efea32b26f9aacc99bf07e0d2cdfba2028b099 ]

Previously Clock PM could not be re-enabled after being disabled by
pci_disable_link_state() because clkpm_capable was reset.  Change this by
adding a clkpm_disable field similar to aspm_disable.

Link: https://lore.kernel.org/r/4e8a66db-7d53-4a66-c26c-f0037ffaa705@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/pcie/aspm.c