android_kernel_xiaomi_sm8350/drivers
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
..
acorn
acpi If ACPI doesn't find an irq listed, don't accept 0 as a valid PCI irq. 2005-07-02 10:35:33 -07:00
atm
base [PATCH] Driver core: Use klist_del() instead of klist_remove(). 2005-06-29 22:48:05 -07:00
block [PATCH] Fix get_request nastiness 2005-06-29 08:46:30 -07:00
bluetooth [PATCH] pcmcia: id_table for dtl1_cs.c 2005-06-27 18:03:15 -07:00
cdrom
char [PATCH] PCI: clean up dynamic pci id logic 2005-07-01 13:35:50 -07:00
cpufreq
crypto
dio
eisa
fc4
firmware [IA64-SGI] pcdp: add PCDP pci interface support 2005-06-28 09:09:06 -07:00
i2c [PATCH] openfirmware: generate device table for userspace 2005-07-06 12:55:20 -07:00
ide [PATCH] openfirmware: generate device table for userspace 2005-07-06 12:55:20 -07:00
ieee1394 ieee1394: fix broken signed char assumption. 2005-07-06 13:05:50 -07:00
infiniband
input [PATCH] x86: i8253/i8259A lock cleanup 2005-06-30 08:45:10 -07:00
isdn [PATCH] drivers/isdn/: make some code static 2005-06-28 21:20:31 -07:00
macintosh [PATCH] openfirmware: implement hotplug for macio devices 2005-07-06 12:55:20 -07:00
mca
md [PATCH] md: bio leak fix 2005-06-28 14:53:41 -07:00
media [PATCH] v4l: bttv new insmod parameters 2005-06-28 21:20:36 -07:00
message [PATCH] PCI: make drivers use the pci shutdown callback instead of the driver core callback. 2005-06-27 21:52:47 -07:00
misc
mmc [PATCH] MMC: wbsd cleanups 2005-07-01 13:07:37 +01:00
mtd [PATCH] ARM: 2780/1: AFS partition length calculation fix 2005-06-30 23:01:09 +01:00
net [PATCH] openfirmware: generate device table for userspace 2005-07-06 12:55:20 -07:00
nubus
oprofile
parisc [PATCH] acpi bridge hotadd: ACPI based root bridge hot-add 2005-06-27 21:52:39 -07:00
parport [PATCH] PCI: clean up dynamic pci id logic 2005-07-01 13:35:50 -07:00
pci [PATCH] yet another fix for setup-bus.c/x86 merge 2005-07-06 16:12:58 -07:00
pcmcia [PATCH] pcmcia: fix modalias attribute in sysfs 2005-06-30 08:45:08 -07:00
pnp
s390
sbus [SPARC]: bpp: remove sleep_on usage 2005-07-04 13:24:14 -07:00
scsi [PATCH] openfirmware: generate device table for userspace 2005-07-06 12:55:20 -07:00
serial [PATCH] openfirmware: generate device table for userspace 2005-07-06 12:55:20 -07:00
sh
sn
tc
telephony [PATCH] pcmcia: id_table for ixj_pcmcia.c 2005-06-27 18:03:16 -07:00
usb [PATCH] pcmcia id_table for sl811.cs 2005-06-27 18:03:17 -07:00
video [PATCH] openfirmware: generate device table for userspace 2005-07-06 12:55:20 -07:00
w1
zorro
Kconfig
Makefile