When trying to access non-existent/unsupported PCI devices in
ls_pcie_read_config(), when ls_pcie_addr_valid() fails it returns
error code and fills in the result with 0xffffffff manually. But it
really should return zero to upper layer codes.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
if (ls_pcie_addr_valid(hose, d)) {
*val = 0xffffffff;
if (ls_pcie_addr_valid(hose, d)) {
*val = 0xffffffff;
}
if (PCI_BUS(d) == hose->first_busno) {
}
if (PCI_BUS(d) == hose->first_busno) {