[U-Boot] Question re vendor check in drivers/pci/pci.c
Gregory Fong
gregory.0xf0 at gmail.com
Wed Dec 14 05:46:15 CET 2016
Hello all,
In pci_hose_scan_bus(), there is this check:
if (vendor == 0xffff || vendor == 0x0000)
continue;
The test against the special invalid vendor value of 0xffff is
definitely correct. But is it necessarily wrong for a vendor ID to be
0? Of course it's not used in the PCI vendor ID database, but AFAIK
it's not an illegal value. I'm not 100% confident in that knowledge,
so hopefully someone more knowledgeable about PCI can speak up :-).
Would be happy to submit a patch if so.
Thanks and regards,
Gregory
More information about the U-Boot
mailing list