From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] Ignore zero-length _CRS descriptors
Date: Mon, 05 Jan 2004 17:46:34 +0000 [thread overview]
Message-ID: <200401051046.34916.bjorn.helgaas@hp.com> (raw)
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;
reply other threads:[~2004-01-05 17:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200401051046.34916.bjorn.helgaas@hp.com \
--to=bjorn.helgaas@hp.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox