]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit153c460d8b72fbf1030c54003d4b892e8369e9b1
treef16d5d5336df79199ea0355723877e2bbc2206e6
parent8b0377fc510bf3aadf8fa84f32e795ee4a65a765
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