PCI/ASPM: Restore parent state to parent, child state to child
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Mon, 6 May 2024 05:16:02 +0000 (13:16 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 6 May 2024 19:12:40 +0000 (14:12 -0500)
commitf3d049b35b01fff656d720606fcbab0b819f26d1
treeb156ee452ca10431268529052acb36fd388cd6f8
parent2e0239d47d75e08f9a39f8360610e490c39ea696
PCI/ASPM: Restore parent state to parent, child state to child

There's a typo that makes parent device uses child LNKCTL value and vice
versa. This causes Micron NVMe to trigger a reboot upon system resume.

Correct the typo to fix the issue.

Fixes: 64dbb2d70744 ("PCI/ASPM: Disable L1 before configuring L1 Substates")
Link: https://lore.kernel.org/r/20240506051602.1990743-1-kai.heng.feng@canonical.com
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
[bhelgaas: update subject]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/pci/pcie/aspm.c