linux/drivers/pci
Brice Goglin 47a4d5be7c [PATCH] increment pos before looking for the next cap in __pci_find_next_ht_cap
While testing 2.6.20-rc3 on a machine with some CK804 chipsets, we noticed
that quirk_nvidia_ck804_msi_ht_cap() was not detecting HT MSI capabilities
anymore.  It is actually caused by the MSI mapping on the root chipset
being the 2nd HT capability in the chain.  pci_find_ht_capability() does
not seem to find anything but the first HT cap correctly, because it
forgets to increment the position before looking for the next cap.  The
following patch seems to fix it.

At least, this proves that having a ttl is good idea since the machine
would have been stucked in an infinite loop if we didn't have a ttl :)

We have to pass pos + PCI_CAP_LIST_NEXT to __pci_find_next_cap_ttl to
get the next HT cap instead of the same one again.

Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: Andrew J. Gallatin <gallatin@myri.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2007-01-11 18:18:20 -08:00
..
hotplug Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2006-12-22 18:46:56 -08:00
pcie PCI: pcieport-driver: remove invalid warning message 2006-12-20 10:54:42 -08:00
.gitignore
access.c
bus.c
hotplug.c
htirq.c PCI: Use pci_find_ht_capability() in drivers/pci/htirq.c 2006-12-20 10:54:42 -08:00
Kconfig [PATCH] PCI: disable PCI_MULTITHREAD_PROBE 2007-01-05 12:33:05 -08:00
Makefile
msi.c
msi.h
pci-acpi.c
pci-driver.c PCI: Fix multiple problems with VIA hardware 2006-12-20 10:54:43 -08:00
pci-sysfs.c
pci.c [PATCH] increment pos before looking for the next cap in __pci_find_next_ht_cap 2007-01-11 18:18:20 -08:00
pci.h
probe.c [PATCH] pci/probe: fix macro that confuses kernel-doc 2006-12-30 10:55:55 -08:00
proc.c
quirks.c [PATCH] x86-64: pci quirks MODPOST warning fix 2007-01-11 01:52:44 +01:00
remove.c
rom.c
search.c [PATCH] PCI: prevent down_read when pci_devices is empty 2007-01-05 23:55:21 -08:00
setup-bus.c [PATCH] increase CARDBUS_MEM_SIZE 2006-12-22 08:55:51 -08:00
setup-irq.c
setup-res.c PCI legacy resource fix 2006-12-20 10:54:43 -08:00
syscall.c