PCI: dwc: Return directly when num-lanes is not found
Port of Linux commit 66de33f

    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>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent cbd3f21 commit aff117c41f5eaa3157b70ab9cf2a60b6fe75e7bf
@Sascha Hauer Sascha Hauer authored on 20 Aug 2019
Showing 1 changed file
View
drivers/pci/pcie-designware.c