summaryrefslogtreecommitdiffstats
path: root/include/fdtdec.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-03-04 15:08:26 +0800
committerSimon Glass <sjg@chromium.org>2015-03-24 21:22:37 -0600
commit0eb9dc76e2987a07de9101e026ff26b28fa7496b (patch)
tree5627f52f8536bae24baa4e963279b0ba44e0ba2e /include/fdtdec.h
parent1c854dc5d4d4ce3ddec08a319d1c094ade8dabe7 (diff)
downloadblackbird-obmc-uboot-0eb9dc76e2987a07de9101e026ff26b28fa7496b.tar.gz
blackbird-obmc-uboot-0eb9dc76e2987a07de9101e026ff26b28fa7496b.zip
fdtdec: Improve fdtdec_get_pci_bdf() documentation
Add the description that how the compatible property is involved in the fdtdec_get_pci_bdf() documentation. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/fdtdec.h')
-rw-r--r--include/fdtdec.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/fdtdec.h b/include/fdtdec.h
index 5ac515d87d..11a7b86007 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -347,7 +347,10 @@ int fdtdec_get_pci_vendev(const void *blob, int node,
/**
* Look at the pci address of a device node that represents a PCI device
- * and parse the bus, device and function number from it.
+ * and parse the bus, device and function number from it. For some cases
+ * like the bus number encoded in reg property is not correct after pci
+ * enumeration, this function looks through the node's compatible strings
+ * to get these numbers extracted instead.
*
* @param blob FDT blob
* @param node node to examine
OpenPOWER on IntegriCloud