]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: layerscape: Add workaround for lost link capabilities during reset
authorXiaowei Bao <xiaowei.bao@nxp.com>
Thu, 20 Jul 2023 13:58:34 +0000 (09:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:42 +0000 (12:22 +0200)
commitcefcb002c5c9bc107daee807e25636a9afc7aba7
tree519fb60239e24b9fd5c4ba0d685216e23cc02819
parent4be323c73797bcebd0f9d1642e4705c13c3749d2
PCI: layerscape: Add workaround for lost link capabilities during reset

[ Upstream commit 17cf8661ee0f065c08152e611a568dd1fb0285f1 ]

The endpoint controller loses the Maximum Link Width and Supported Link Speed
value from the Link Capabilities Register - initially configured by the Reset
Configuration Word (RCW) - during a link-down or hot reset event.

Address this issue in the endpoint event handler.

Link: https://lore.kernel.org/r/20230720135834.1977616-2-Frank.Li@nxp.com
Fixes: a805770d8a22 ("PCI: layerscape: Add EP mode support")
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Acked-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/dwc/pci-layerscape-ep.c