[U-Boot] [PATCH v3 02/10] dm: pci: Add a way to iterate through all PCI devices
Simon Glass
sjg at chromium.org
Wed Aug 12 05:54:51 CEST 2015
On 10 August 2015 at 22:14, Bin Meng <bmeng.cn at gmail.com> wrote:
> On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass <sjg at chromium.org> wrote:
>> These functions allow iteration through all PCI devices including bridges.
>> The children of each PCI bus are returned in turn. This can be useful for
>> configuring, checking or enumerating all the devices.
>>
>> Signed-off-by: Simon Glass <sjg at chromium.org>
>> ---
>>
>> Changes in v3:
>> - Drop the inner while() loop in skip_to_next_device() - it isn't needed
>>
>> Changes in v2:
>> - Add a comment as to why we need to scan multiple PCI controllers
>>
>> drivers/pci/pci-uclass.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++
>> include/pci.h | 25 ++++++++++++++++++++
>> 2 files changed, 85 insertions(+)
>>
[snip]
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Applied to u-boot-x86
More information about the U-Boot
mailing list