
12 Aug
2015
12 Aug
'15
5:54 a.m.
On 10 August 2015 at 22:14, Bin Meng bmeng.cn@gmail.com wrote:
On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass sjg@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@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@gmail.com
Applied to u-boot-x86