PCI: dwc: Return directly when num-lanes is not found
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Tue, 20 Aug 2019 07:28:49 +0000 (07:28 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 22 Aug 2019 17:16:24 +0000 (18:16 +0100)
commit66de33f09fd97201847de7e1e2ec8a117242e1d6
tree98b3ede054ba793b5e3f5f16b6d2363cebd6e1ef
parentee4ea764ea03253016034603cab352c0798ce173
PCI: dwc: Return directly when num-lanes is not found

The num-lanes is optional since it is not needed on some platforms
that bring up the link in firmware.

The link programming is based on the num-lanes properties (which is
optional); if it is not present code must return instead of fiddling
with the lanes value to print an error message.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
drivers/pci/controller/dwc/pcie-designware.c