summaryrefslogtreecommitdiff
path: root/packages/linux/linux-openzaurus-2.6.11/pxa-serial-hack.patch
blob: 5624572fa13c121b9862f879a28bc555e5c9f868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Index: 2.6-bk/drivers/serial/8250.c
===================================================================
--- 2.6-bk.orig/drivers/serial/8250.c	2004-09-15 11:00:58.000000000 +0100
+++ 2.6-bk/drivers/serial/8250.c	2004-09-30 13:23:22.202968787 +0100
@@ -2033,7 +2033,12 @@
 	.devfs_name		= "tts/",
 	.dev_name		= "ttyS",
 	.major			= TTY_MAJOR,
+#ifdef CONFIG_SERIAL_PXA
+	.minor			= 64 + 3,
+	.name_base		= 3,
+#else
 	.minor			= 64,
+#endif
 	.nr			= UART_NR,
 	.cons			= SERIAL8250_CONSOLE,
 };
Index: 2.6-bk/drivers/serial/serial_core.c
===================================================================
--- 2.6-bk.orig/drivers/serial/serial_core.c	2004-09-30 09:03:27.000000000 +0100
+++ 2.6-bk/drivers/serial/serial_core.c	2004-09-30 13:23:22.205967977 +0100
@@ -1958,7 +1958,7 @@
 static inline void
 uart_report_port(struct uart_driver *drv, struct uart_port *port)
 {
-	printk("%s%d", drv->dev_name, port->line);
+	printk("%s%d", drv->dev_name, port->line + drv->name_base);
 	printk(" at ");
 	switch (port->iotype) {
 	case UPIO_PORT:
@@ -2127,6 +2127,7 @@
 	normal->driver_name	= drv->driver_name;
 	normal->devfs_name	= drv->devfs_name;
 	normal->name		= drv->dev_name;
+	normal->name_base	= drv->name_base;
 	normal->major		= drv->major;
 	normal->minor_start	= drv->minor;
 	normal->type		= TTY_DRIVER_TYPE_SERIAL;
Index: 2.6-bk/include/linux/serial_core.h
===================================================================
--- 2.6-bk.orig/include/linux/serial_core.h	2004-09-15 11:00:59.000000000 +0100
+++ 2.6-bk/include/linux/serial_core.h	2004-09-30 13:23:22.206967707 +0100
@@ -290,6 +290,7 @@
 	const char		*driver_name;
 	const char		*dev_name;
 	const char		*devfs_name;
+	int			 name_base;
 	int			 major;
 	int			 minor;
 	int			 nr;