]> git.neil.brown.name Git - history.git/commit
[PATCH] PCI: setup-xx fixes
authorIvan Kokshaysky <ink@jurassic.park.msu.ru>
Sat, 21 Dec 2002 05:24:28 +0000 (21:24 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 21 Dec 2002 05:24:28 +0000 (21:24 -0800)
commit2ce208e5689cba4398a4719121ddaf6248b8958f
tree86c445dfeba357d517ceee79d31ebd24ffe2b09f
parent9dd405aa97c57f038be44f7df53f59f0d9ae3b26
[PATCH] PCI: setup-xx fixes

Don't disable PCI devices before changing the BARs, as discussed
recently.  Disabling PCI_COMMAND_MASTER bit is an obvious bug.

Further, pdev_enable_device() is a leftover from very old (2.0, I guess)
alpha PCI code.  It's used in pci_assign_unassigned_resources() to
enable *every* PCI device in the system.  So, if we have two graphic
cards on the same bus, both with legacy VGA IO...  oops.

Actually, only alpha relied on that due to the lack of
pcibios_enable_device (which has been already fixed).
drivers/pci/setup-bus.c
drivers/pci/setup-res.c