I found that this additional patch was also needed. Pcie_port_device_iter was added in 5.16 and referenced in the "PCI: pciehp: Ignore Link Down/Up caused by error-induced Hot Reset" patch
commit 3134689f98f9e09004a4727370adc46e7635b4be Author: Lukas Wunner <email address hidden> Date: Fri Oct 15 13:58:40 2021 -0500
PCI/portdrv: Rename pm_iter() to pcie_port_device_iter()
Rename pm_iter() to pcie_port_device_iter() and make it visible outside CONFIG_PM and portdrv_core.c so it can be used for pciehp slot reset recovery.
[bhelgaas: split into its own patch] Link: https://<email address hidden>/ Link: https://lore.kernel.org<email address hidden> Signed-off-by: Lukas Wunner <email address hidden> Signed-off-by: Bjorn Helgaas <email address hidden>
I found that this additional patch was also needed. Pcie_port_ device_ iter was added in 5.16 and referenced in the "PCI: pciehp: Ignore Link Down/Up caused by error-induced Hot Reset" patch
commit 3134689f98f9e09 004a4727370adc4 6e7635b4be
Author: Lukas Wunner <email address hidden>
Date: Fri Oct 15 13:58:40 2021 -0500
PCI/portdrv: Rename pm_iter() to pcie_port_ device_ iter()
Rename pm_iter() to pcie_port_ device_ iter() and make it visible outside
CONFIG_PM and portdrv_core.c so it can be used for pciehp slot reset
recovery.
[bhelgaas: split into its own patch] /lore.kernel. org<email address hidden>
Link: https://<email address hidden>/
Link: https:/
Signed-off-by: Lukas Wunner <email address hidden>
Signed-off-by: Bjorn Helgaas <email address hidden>