]> git.baikalelectronics.ru Git - uboot.git/commit
fix: mvebu: pcie_dw: Allow probing empty PCIe slots
authorKonstantin Porotchkin <kostap@marvell.com>
Tue, 28 Mar 2017 15:36:34 +0000 (18:36 +0300)
committerStefan Roese <sr@denx.de>
Tue, 9 May 2017 11:38:17 +0000 (13:38 +0200)
commit66537a71bbb1465aa025da11108cbae2fde44b02
treef6a77a1b9a6a240330f8968adbb3d7c75c9201c2
parentb60e4af5cd8c595792bc3bc2c1d799a9095c92e1
fix: mvebu: pcie_dw: Allow probing empty PCIe slots

This patch allows probing all PCIe nodes defined in DTS
even if there no device connected to such node (no link).
Without this fix the driver returns -ENODEV when the PCIe
link is down. As result the pci_init function stops
scanning bus on first empty PCIe slot and all devices
located in higher numbered buses are not discovered.

Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Igal Liberman <igall@marvell.com>
Cc: Nadav Haklai <nadavh@marvell.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pcie_dw_mvebu.c