Commit 08624481 authored by Maeda Naoaki's avatar Maeda Naoaki Committed by David Mosberger

ia64: fix /proc/ioports regression in 2.6.6 on Tiger4

This patch fixes a problem that "cat /proc/ioports" loops
on some IA64 machines that use quirk_io_region(). The problem
is caused by redundant resource claim by quirk_io_region()
and pcibios_fixup_device_resources(). The patch prevents 
this condition and is written by Matthew Wilcox.
Signed-off-by: default avatarMaeda Naoaki <maeda.naoaki@jp.fujitsu.com>
parent c282c897
...@@ -323,8 +323,10 @@ pcibios_fixup_device_resources (struct pci_dev *dev, struct pci_bus *bus) ...@@ -323,8 +323,10 @@ pcibios_fixup_device_resources (struct pci_dev *dev, struct pci_bus *bus)
struct pci_controller *controller = PCI_CONTROLLER(dev); struct pci_controller *controller = PCI_CONTROLLER(dev);
struct pci_window *window; struct pci_window *window;
int i, j; int i, j;
int limit = (dev->hdr_type == PCI_HEADER_TYPE_NORMAL) ? \
PCI_ROM_RESOURCE : PCI_NUM_RESOURCES;
for (i = 0; i < PCI_NUM_RESOURCES; i++) { for (i = 0; i < limit; i++) {
if (!dev->resource[i].start) if (!dev->resource[i].start)
continue; 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