diff options
author | Simon Glass | 2020-04-09 10:27:36 -0600 |
---|---|---|
committer | Bin Meng | 2020-04-16 14:36:28 +0800 |
commit | 9ece4b090fdda97177ac9b3470e9b7de839eb59d (patch) | |
tree | daf9ca8161050216214de6d05740dc9633ae645e /tools/gpimage-common.c | |
parent | 163085308576139ac0b0c65e3b81be78ab890aa9 (diff) |
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>
Diffstat (limited to 'tools/gpimage-common.c')
0 files changed, 0 insertions, 0 deletions