2 drivers/serial/8250.c | 5 +++++
3 drivers/serial/serial_core.c | 1 +
4 drivers/serial/serial_cs.c | 12 +++++++++---
5 include/linux/serial_core.h | 1 +
6 4 files changed, 16 insertions(+), 3 deletions(-)
8 Index: linux-2.6.20/drivers/serial/8250.c
9 ===================================================================
10 --- linux-2.6.20.orig/drivers/serial/8250.c 2007-04-27 13:37:26.000000000 +0100
11 +++ linux-2.6.20/drivers/serial/8250.c 2007-04-27 13:38:16.000000000 +0100
12 @@ -2429,7 +2429,12 @@
13 .driver_name = "serial",
16 +#ifdef CONFIG_SERIAL_PXA
23 .cons = SERIAL8250_CONSOLE,
25 Index: linux-2.6.20/drivers/serial/serial_core.c
26 ===================================================================
27 --- linux-2.6.20.orig/drivers/serial/serial_core.c 2007-02-04 18:44:54.000000000 +0000
28 +++ linux-2.6.20/drivers/serial/serial_core.c 2007-04-27 13:39:39.000000000 +0100
30 printk(KERN_INFO "%s%s%s%d at %s (irq = %d) is a %s\n",
31 port->dev ? port->dev->bus_id : "",
32 port->dev ? ": " : "",
33 - drv->dev_name, port->line, address, port->irq, uart_type(port));
34 + drv->dev_name, port->line + drv->name_base, address, port->irq,
40 normal->owner = drv->owner;
41 normal->driver_name = drv->driver_name;
42 normal->name = drv->dev_name;
43 + normal->name_base = drv->name_base;
44 normal->major = drv->major;
45 normal->minor_start = drv->minor;
46 normal->type = TTY_DRIVER_TYPE_SERIAL;
47 Index: linux-2.6.20/include/linux/serial_core.h
48 ===================================================================
49 --- linux-2.6.20.orig/include/linux/serial_core.h 2007-02-04 18:44:54.000000000 +0000
50 +++ linux-2.6.20/include/linux/serial_core.h 2007-04-27 13:37:27.000000000 +0100
53 const char *driver_name;
59 Index: linux-2.6.20/drivers/serial/serial_cs.c
60 ===================================================================
61 --- linux-2.6.20.orig/drivers/serial/serial_cs.c 2007-02-04 18:44:54.000000000 +0000
62 +++ linux-2.6.20/drivers/serial/serial_cs.c 2007-04-27 13:40:34.000000000 +0100
64 kio_addr_t iobase, int irq)
66 struct uart_port port;
68 + int line, linestart;
70 memset(&port, 0, sizeof (struct uart_port));
76 +#if CONFIG_SERIAL_PXA
82 info->line[info->ndev] = line;
83 - sprintf(info->node[info->ndev].dev_name, "ttyS%d", line);
84 + sprintf(info->node[info->ndev].dev_name, "ttyS%d", line+linestart);
85 info->node[info->ndev].major = TTY_MAJOR;
86 - info->node[info->ndev].minor = 0x40 + line;
87 + info->node[info->ndev].minor = 0x40 + line + linestart;
89 info->node[info->ndev - 1].next = &info->node[info->ndev];