]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:42 +0000 (12:22 +0200)
commit4be323c73797bcebd0f9d1642e4705c13c3749d2
tree1f314f2036ed5ea26a82ba106ece553788405cf3
parent69c712389e1f5e6761fc27fe39a36ca56b0c560c
PCI: layerscape: Add the endpoint linkup notifier support

[ Upstream commit 061cbfab09fb35898f2907d42f936cf9ae271d93 ]

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>
Stable-dep-of: 17cf8661ee0f ("PCI: layerscape: Add workaround for lost link capabilities during reset")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/dwc/pci-layerscape-ep.c