]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/ASPM: Use correct capability pointer to program LTR_L1.2_THRESHOLD
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 13 Nov 2017 21:05:50 +0000 (15:05 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 14 Nov 2017 14:32:32 +0000 (08:32 -0600)
commitbfc4cdc0b8ff1f8a454eed25388e324e5dd7b90f
tree1476fcba8019b00ad895c2bd0a8b5d7ffad03024
parent5de252cde95d13e9bda919c0cb433e7f5063ad64
PCI/ASPM: Use correct capability pointer to program LTR_L1.2_THRESHOLD

Previously we programmed the LTR_L1.2_THRESHOLD in the parent (upstream)
device using the capability pointer of the *child* (downstream) device,
which corrupted some random word of the parent's config space.

Use the parent's L1 SS capability pointer to program its
LTR_L1.2_THRESHOLD.

Fixes: 683cde44f272 ("PCI/ASPM: Configure L1 substate settings")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
CC: stable@vger.kernel.org # v4.11+
CC: Rajat Jain <rajatja@google.com>
drivers/pci/pcie/aspm.c