[PATCH v6 10/29] pci: Adjust dm_pci_read_bar32() to return errors correctly

Bin Meng bmeng.cn at gmail.com
Thu Apr 16 07:33:58 CEST 2020


On Fri, Apr 10, 2020 at 12:28 AM Simon Glass <sjg at chromium.org> wrote:
>
> 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 at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Reviewed-by: Wolfgang Wallner <wolfgang.wallner at br-automation.com>
> ---
>
> Changes in v6:
> - Rework commit message to avoid mention of missing device
>
> Changes in v5: None
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
>
>  drivers/pci/pci-uclass.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
>

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list