[PATCH] Ignore zero-length _CRS descriptors

From: Bjorn Helgaas <bjorn.helgaas_at_hp.com>
Date: 2004-01-06 04:46:34
ia64: Skip zero-length resources in PCI root bridge _CRS

(add_window): Skip zero-length resources.  It seems to be common
	practice to leave extra descriptors in the _CRS and set
	the _LEN field of unused ones to zero.

===== arch/ia64/pci/pci.c 1.39 vs edited =====
--- 1.39/arch/ia64/pci/pci.c	Tue Nov 25 06:23:17 2003
+++ edited/arch/ia64/pci/pci.c	Mon Jan  5 10:33:32 2004
@@ -223,6 +223,9 @@
 
 	status = acpi_resource_to_address64(res, &addr);
 	if (ACPI_SUCCESS(status)) {
+		if (!addr.address_length)
+			return AE_OK;
+
 		if (addr.resource_type == ACPI_MEMORY_RANGE) {
 			flags = IORESOURCE_MEM;
 			root = &iomem_resource;

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Jan 5 12:46:57 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:21 EST