Commit 6d4617a1 authored by Linus Torvalds's avatar Linus Torvalds

Revert AGP card->bridge mapping checks.

They don't work, as per Ben Herrenschmidt:

 "device->bus may be a host bridge, which has no bus->self -> Ooops.

  Unfortunately, there is no sane way to match a host bridge with it's
  eventual "self" device if it has any. The only way would be to scan for
  devices of class host bridge, but that isn't even 100% reliable.

  The result is that the self device (AGP bridge device) is generally a
  sibling of the actual AGP card, which is source of interesting problems,
  especially with power management."

Cset exclude: davej@delerium.kernelslacker.org|ChangeSet|20050223022533|52155
parent 563be234
......@@ -646,12 +646,7 @@ u32 agp_collect_device_status(struct agp_bridge_data *bridge, u32 requested_mode
pci_dev_put(device);
continue;
}
if ((device->bus->self->vendor != bridge->dev->vendor) &&
(device->bus->self->device != bridge->dev->device)) {
pci_dev_put(device);
cap_ptr = 0;
continue;
}
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment