PCI: mvebu: Correctly configure x1/x4 mode
authorPali Rohár <pali@kernel.org>
Tue, 22 Feb 2022 15:50:23 +0000 (16:50 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 22 Feb 2022 16:04:20 +0000 (16:04 +0000)
commit2a81dd9fd9b0b42b42ba7484baf6feb7b4d94d2e
tree383874d4df0c3d9ce5973919c3cf72cf650a5771
parent26b982ca83210684b04191b73a7bbc02cdd3164f
PCI: mvebu: Correctly configure x1/x4 mode

If x1/x4 mode is not set correctly then link with endpoint card is not
established.

Use DTS property 'num-lanes' to deteriminate x1/x4 mode.

Link: https://lore.kernel.org/r/20220222155030.988-6-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-mvebu.c