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)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Thu, 24 Aug 2023 08:08:25 +0000 (10:08 +0200)
commit17cf8661ee0f065c08152e611a568dd1fb0285f1
tree73ac40bc3fc1a550f86a131d6bdd68df888d8461
parentd28c0d84ca40e8cbc5c9f4e94f4ec78469d6c07b
PCI: layerscape: Add workaround for lost link capabilities during reset

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>
drivers/pci/controller/dwc/pci-layerscape-ep.c