Re: PCI patches (1/3)

Russell King (rmk@arm.linux.org.uk)
Sat, 22 Mar 2003 16:55:56 +0000


# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1130 -> 1.1131
# drivers/pci/setup-res.c 1.15 -> 1.16
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/03/22 ink@undisclosed.(none) 1.1131
# [PCI] Don't call pci_update_resource() for bridge resources.
#
# Minor cleanup: don't call pci_update_resource() for bridges,
# get rid of bogus "trying to set non-standard region" messages thus.
# --------------------------------------------
#
diff -Nru a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c
--- a/drivers/pci/setup-res.c Sat Mar 22 16:51:48 2003
+++ b/drivers/pci/setup-res.c Sat Mar 22 16:51:48 2003
@@ -59,9 +59,7 @@
reg = dev->rom_base_reg;
} else {
/* Hmm, non-standard resource. */
- printk("PCI: trying to set non-standard region %s/%d\n",
- dev->slot_name, resno);
- return;
+ BUG();
}

pci_write_config_dword(dev, reg, new);
@@ -141,7 +139,7 @@
if (ret) {
printk(KERN_ERR "PCI: Failed to allocate resource %d(%lx-%lx) for %s\n",
resno, res->start, res->end, dev->slot_name);
- } else {
+ } else if (resno < PCI_BRIDGE_RESOURCES) {
pci_update_resource(dev, res, resno);
}

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/