PCI: layerscape: Add the endpoint linkup notifier support
authorFrank Li <Frank.Li@nxp.com>
Mon, 15 May 2023 15:10:49 +0000 (11:10 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 Jun 2023 20:06:18 +0000 (15:06 -0500)
commit061cbfab09fb35898f2907d42f936cf9ae271d93
treefc483b581f5323a2caea29705213db11456ac3d4
parent4ab91207fe37cb0b17d73aa7b042218a83908971
PCI: layerscape: Add the endpoint linkup notifier support

Layerscape has PME interrupt, which can be used as linkup notifier.  Set
CFG_READY bit of PEX_PF0_CONFIG to enable accesses from root complex when
linkup detected.

Link: https://lore.kernel.org/r/20230515151049.2797105-1-Frank.Li@nxp.com
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pci-layerscape-ep.c