OSDN Git Service

PCI/ASPM: Refactor L1 PM Substates Control Register programming
authorVidya Sagar <vidyas@nvidia.com>
Tue, 13 Sep 2022 13:18:21 +0000 (18:48 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 5 Oct 2022 01:32:39 +0000 (20:32 -0500)
commit5e85eba6f50dc288c22083a7e213152bcc4b8208
tree0d7b2cc23f3bf171dfd5c8fef55404ea995533b0
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
PCI/ASPM: Refactor L1 PM Substates Control Register programming

Refactor the code to extract the common code to program Control
Registers 1 and 2 of the L1 PM Substates capability to a new function
aspm_program_l1ss() and call it for both parent and child devices.

[bhelgaas: squash in update to preserve fields we're not updating from
https://lore.kernel.org/r/36fa13c5-e0f8-022f-77f7-7908e4df98b8@nvidia.com]
Link: https://lore.kernel.org/r/20220913131822.16557-2-vidyas@nvidia.com
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aspm.c