public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Ignore zero-length _CRS descriptors
@ 2004-01-05 17:46 Bjorn Helgaas
  0 siblings, 0 replies; only message in thread
From: Bjorn Helgaas @ 2004-01-05 17:46 UTC (permalink / raw)
  To: linux-ia64

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-05 17:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-05 17:46 [PATCH] Ignore zero-length _CRS descriptors Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox