Match the specific MPC106 host bridge PCI ID rather than all

generic host bridges: this avoids a race with the UniNorth
generic match.
This commit is contained in:
Peter Grehan 2004-04-01 07:34:36 +00:00
parent cd587b1397
commit 6611d6692f

View File

@ -513,18 +513,15 @@ grackle_disable_config(struct grackle_softc *sc)
/*
* Driver to swallow Grackle host bridges from the PCI bus side.
* Same as the UniNorth 'swallower', so whoever probes first will win out.
* Maybe the UniNorth/Grackle code should be consolidated.
*/
static int
grackle_hb_probe(device_t dev)
{
if (pci_get_class(dev) == PCIC_BRIDGE &&
pci_get_subclass(dev) == PCIS_BRIDGE_HOST) {
device_set_desc(dev, "Host to PCI bridge");
if (pci_get_devid(dev) == 0x00021057) {
device_set_desc(dev, "Grackle Host to PCI bridge");
device_quiet(dev);
return (-10000);
return (0);
}
return (ENXIO);