lkml.org 
[lkml]   [2003]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: [PATCH] ACPI serial fix
Date
On Wednesday 08 October 2003 12:41 pm, Bjorn Helgaas wrote:
> Here's another little fix for ACPI serial discovery in 2.6.

Rats. Ignore the previous patch and use this, which I've actually
tested with the next step (removal of all the stuff in asm-ia64/serial.h):

Intel 870 firmware reports an extra zero-length IO port range, which
is bogus, as far as I can tell. Ignore it.

===== drivers/serial/8250_acpi.c 1.4 vs edited =====
--- 1.4/drivers/serial/8250_acpi.c Mon Oct 6 15:57:02 2003
+++ edited/drivers/serial/8250_acpi.c Wed Oct 8 14:12:46 2003
@@ -38,8 +38,11 @@
static acpi_status acpi_serial_port(struct serial_struct *req,
struct acpi_resource_io *io)
{
- req->port = io->min_base_address;
- req->io_type = SERIAL_IO_PORT;
+ if (io->range_length) {
+ req->port = io->min_base_address;
+ req->io_type = SERIAL_IO_PORT;
+ } else
+ printk(KERN_ERR "%s: zero-length IO port range?\n", __FUNCTION__);
return AE_OK;
}

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.024 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site