]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda5f31a7cb239a434fdc0e1a83e29296c9f0a266
tree98b3ede054ba793b5e3f5f16b6d2363cebd6e1ef
parent4a4fdd28aa395b42e600828072d3b41fcab18c13
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