Commit a1dda51a authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Russell King

[SERIAL] request resources for ACPI & HCDP ports

Patch from: Bjorn Helgaas

This patch against 2.6.1-rc3 sets UPF_RESOURCES so the
appropriate ranges will show up in /proc/ioports and /proc/iomem.
parent 0ef06869
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
#include <linux/acpi.h> #include <linux/acpi.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/tty.h>
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/serial_core.h>
#include <acpi/acpi_bus.h> #include <acpi/acpi_bus.h>
...@@ -112,11 +114,12 @@ static int acpi_serial_add(struct acpi_device *device) ...@@ -112,11 +114,12 @@ static int acpi_serial_add(struct acpi_device *device)
} }
serial_req.baud_base = BASE_BAUD; serial_req.baud_base = BASE_BAUD;
serial_req.flags = ASYNC_SKIP_TEST|ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ; serial_req.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF | UPF_AUTO_IRQ |
UPF_RESOURCES;
line = register_serial(&serial_req); line = register_serial(&serial_req);
if (line < 0) { if (line < 0) {
printk(KERN_WARNING "Couldn't register serial port %s: %d", printk(KERN_WARNING "Couldn't register serial port %s: %d\n",
device->pnp.bus_id, line); device->pnp.bus_id, line);
return -ENODEV; return -ENODEV;
} }
......
...@@ -185,7 +185,7 @@ setup_serial_hcdp(void *tablep) ...@@ -185,7 +185,7 @@ setup_serial_hcdp(void *tablep)
#else #else
port.irq = gsi; port.irq = gsi;
#endif #endif
port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF; port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF | UPF_RESOURCES;
if (gsi) if (gsi)
port.flags |= ASYNC_AUTO_IRQ; port.flags |= ASYNC_AUTO_IRQ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment