[U-Boot] [PATCH] fdtdec: Improve fdtdec_get_pci_bdf() documentation

Simon Glass sjg at chromium.org
Wed Mar 25 23:34:23 CET 2015


On 5 March 2015 at 12:48, Simon Glass <sjg at chromium.org> wrote:
> On 4 March 2015 at 00:08, Bin Meng <bmeng.cn at gmail.com> wrote:
>> Add the description that how the compatible property is involved in
>> the fdtdec_get_pci_bdf() documentation.
>>
>> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>> ---
>>
>>  include/fdtdec.h | 5 ++++-
>>  1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/include/fdtdec.h b/include/fdtdec.h
>> index 1bc70db..eef78a7 100644
>> --- a/include/fdtdec.h
>> +++ b/include/fdtdec.h
>> @@ -346,7 +346,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
>> --
>> 1.8.2.1
>>
>
> Acked-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-x86, thanks!


More information about the U-Boot mailing list