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

2020-04-15 Thread Bin Meng
On Fri, Apr 10, 2020 at 12:28 AM Simon Glass wrote: > > At present if reading a BAR returns 0x 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. > >

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

2020-04-09 Thread Simon Glass
On Thu, 9 Apr 2020 at 10:28, Simon Glass wrote: > > At present if reading a BAR returns 0x 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:

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

2020-04-09 Thread Simon Glass
At present if reading a BAR returns 0x 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 Reviewed-by: Bin Meng Reviewed-by: Wolfgang