Re: [U-Boot] [PATCH 03/10] dm: pci: Tidy up auto-config error handling

2015-10-18 Thread Simon Glass
On 14 September 2015 at 06:15, Bin Meng wrote: > On Wed, Sep 9, 2015 at 7:52 AM, Simon Glass wrote: >> When the auto-configuration process fails for a device (generally due to >> lack of memory) we should return the error correctly so that we don't >> continue to try memory allocations which will

Re: [U-Boot] [PATCH 03/10] dm: pci: Tidy up auto-config error handling

2015-09-14 Thread Bin Meng
On Wed, Sep 9, 2015 at 7:52 AM, Simon Glass wrote: > When the auto-configuration process fails for a device (generally due to > lack of memory) we should return the error correctly so that we don't > continue to try memory allocations which will fail. > > Adjust the code to check for errors and ab

[U-Boot] [PATCH 03/10] dm: pci: Tidy up auto-config error handling

2015-09-08 Thread Simon Glass
When the auto-configuration process fails for a device (generally due to lack of memory) we should return the error correctly so that we don't continue to try memory allocations which will fail. Adjust the code to check for errors and abort if something goes wrong. Signed-off-by: Simon Glass ---