On Sat, Feb 6, 2010 at 7:49 PM, Blue Swirl blauwirbel@gmail.com wrote:
I tried to get PCI probing work in cases where the devices are behind multiple bridges. This patch works in many cases (especially current QEMU PPC/Sparc64 setup), but not if I make some arbitrary changes to the bridging setup.
The mysterious "?active-package get-package-path" piece resolves the simple /pci/pci path (which would be identical to any other bridge found) to /pci@1fe0,0/pci@1,1. Is there a better way?
Lookup using "pci" as node name would stop at first node with matching "name" property value. When we assign "reg" property this can break lookup if there are multiple nodes with the same "name" property value. To resolve path to correct node the node path must be reloaded after "reg" property is assigned. "get-package-path" should work.