Antwort: [PATCH v2 10/39] pci: Adjust dm_pci_read_bar32() to return errors correctly

Wolfgang Wallner wolfgang.wallner at br-automation.com
Mon Mar 9 08:38:34 CET 2020


-----"Simon Glass" <sjg at chromium.org> schrieb: -----
> 
> At present if reading a BAR returns 0xffffffff (e.g. the device is not
> present) 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 at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
> 
> Changes in v2: None
> 
>  drivers/pci/pci-uclass.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)

Reviewed-by: Wolfgang Wallner <wolfgang.wallner at br-automation.com>



More information about the U-Boot mailing list