PCI/PME: Add pcie_walk_rcec() to RCEC PME handling
authorSean V Kelley <sean.v.kelley@intel.com>
Sat, 21 Nov 2020 00:10:35 +0000 (16:10 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 5 Dec 2020 21:26:02 +0000 (15:26 -0600)
commit9a2f604f44979e0effa8cf067e5a8ecda729f23b
treef16d5d5336df79199ea0355723877e2bbc2206e6
parentaf113553d9610b2d811d05da96263b4f666f44f0
PCI/PME: Add pcie_walk_rcec() to RCEC PME handling

Root Complex Event Collectors (RCEC) appear as peers of Root Ports and also
have the PME capability. As with AER, there is a need to be able to walk
the RCiEPs associated with their RCEC for purposes of acting upon them with
callbacks.

Add RCEC support through the use of pcie_walk_rcec() to the current PME
service driver and attach the PME service driver to the RCEC device.

Co-developed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Link: https://lore.kernel.org/r/20201121001036.8560-15-sean.v.kelley@intel.com
Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # non-native/no RCEC
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Sean V Kelley <sean.v.kelley@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/pme.c
drivers/pci/pcie/portdrv_core.c