As Peter Zaitcev and others have pointed out, they can use simple
pointer comparisons here on the pci_dev struct.
> Right, one could do that and then all the large machine architectures would have
> their own implementation for the same problem. That's not necessarily a bad
> thing, but some commonality I think would be a good thing.
Well, if the claim is that your suggested changes provide this
"commonality", I totally disagree. Your changes do no more than
provide hooks where no hooks are needed. The hooks are there,
and are why we have "sysdata" and all the drivers/pci/setup-*.c
buisness. If ppc64 cannot fit itself into the drivers/pci/setup-*.c
infrastructure, either fix the infrastructure or concede that "our
stuff is too weird to solve with generic code" and do what sparc64
does with driving it's own PCI probing layer.
Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/