commit | 2a87f7fdd599172879633faf33cae7005344d666 | [log] [tgz] |
---|---|---|
author | Hou Zhiqiang <Zhiqiang.Hou@nxp.com> | Mon Oct 08 16:35:47 2018 +0800 |
committer | Simon Glass <sjg@chromium.org> | Tue Nov 20 19:14:22 2018 -0700 |
tree | cce5b9bdefdd2f5693fbce627e82da2522640a20 | |
parent | a3e1653ddeb02f39481eba572275016171e9670c [diff] |
dm/pci: Change the first CFG read to Vendor ID in enumeration As the PCIe specification recommend reading the Vendor ID register to determine if a Function is present, read the Vendor ID of a non-existent Function must not result in system error, so we'd better make the first CFG read to Vendor ID instead of Header Type register in the PCIe enumeration. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>