]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
fdtdec: Improve fdtdec_get_pci_bdf() documentation
authorBin Meng <bmeng.cn@gmail.com>
Wed, 4 Mar 2015 07:08:26 +0000 (15:08 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:34:17 +0000 (14:34 +0200)
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>
include/fdtdec.h

index 5ac515d87d2da35a42b649440933e686f23af904..11a7b86007e6613e61efff0d7cdef07be0aabe3e 100644 (file)
@@ -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