]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: Adjust dm_pci_read_bar32() to return errors correctly
authorSimon Glass <sjg@chromium.org>
Thu, 9 Apr 2020 16:27:36 +0000 (10:27 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 16 Apr 2020 06:36:28 +0000 (14:36 +0800)
commit9ece4b090fdda97177ac9b3470e9b7de839eb59d
treedaf9ca8161050216214de6d05740dc9633ae645e
parent163085308576139ac0b0c65e3b81be78ab890aa9
pci: Adjust dm_pci_read_bar32() to return errors correctly

At present if reading a BAR returns 0xffffffff then the value is masked
and a different value is returned. This makes it harder to detect the
problem when debugging.

Update the function to avoid masking in this case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pci/pci-uclass.c