kernel-ark/drivers/pci
Ivan Kokshaysky 960b846654 [PATCH] yet another fix for setup-bus.c/x86 merge
There is a slight disagreement between setup-bus.c code and traditional
x86 PCI setup wrt which recourses are invalid vs resources that are free
for further allocations.

In particular, in the setup-bus.c, if we failed to allocate some resource,
we nullify "start" and "flags" fields, but *not* the "end" one.

But x86 pcibios_enable_resources() does the following check:

	if (!r->start && r->end) {
		printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", pci_name(dev));
		return -EINVAL;

which means that the device owning the offending resource cannot be
enabled.

In particular, this breaks cardbus behind the normal decode p2p bridge -
the cardbus code from setup-bus.c requests rather large IO and MEM
windows, and if it fails, the socket is completely unavailable.  Which
is wrong, as the yenta code is capable to allocate smaller windows.

Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-06 16:12:58 -07:00
..
hotplug
pcie [PATCH] PCI: acpi tg3 ethernet not coming back properly after S3 suspendon DellM70 2005-07-01 13:35:51 -07:00
access.c
bus.c
gen-devlist.c
hotplug.c [PATCH] PCI: Remove newline from pci MODALIAS variable 2005-07-01 13:35:51 -07:00
Kconfig
Makefile [PATCH] gregkh-pci-pci-assign-unassigned-resources fix 2005-07-01 13:35:52 -07:00
msi.c
msi.h
names.c
pci-acpi.c
pci-driver.c [PATCH] PCI: fix !CONFIG_HOTPLUG pci build problem 2005-07-06 09:22:45 -07:00
pci-sysfs.c
pci.c [PATCH] pci: cleanup argument comments for pci_{save,restore}_state 2005-07-01 13:35:52 -07:00
pci.h
pci.ids
probe.c
proc.c
quirks.c
remove.c
rom.c
search.c
setup-bus.c [PATCH] yet another fix for setup-bus.c/x86 merge 2005-07-06 16:12:58 -07:00
setup-irq.c
setup-res.c
syscall.c