X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/bb1657ec553d594c18f6aa98881b9dd74b0a248f..d2d50ad0de3e25c7ff27beb44a5fdf2db16b5e3a:/target/linux/ixp4xx/patches-2.6.37/191-cambria_optional_uart.patch?ds=sidebyside diff --git a/target/linux/ixp4xx/patches-2.6.37/191-cambria_optional_uart.patch b/target/linux/ixp4xx/patches-2.6.37/191-cambria_optional_uart.patch index 099980b80..603cf3cc6 100644 --- a/target/linux/ixp4xx/patches-2.6.37/191-cambria_optional_uart.patch +++ b/target/linux/ixp4xx/patches-2.6.37/191-cambria_optional_uart.patch @@ -124,7 +124,7 @@ unsigned int custom_divisor; --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c -@@ -412,6 +412,20 @@ static void mem_serial_out(struct uart_p +@@ -413,6 +413,20 @@ static void mem_serial_out(struct uart_p writeb(value, p->membase + offset); } @@ -145,7 +145,7 @@ static void mem32_serial_out(struct uart_port *p, int offset, int value) { offset = map_8250_out_reg(p, offset) << p->regshift; -@@ -503,6 +517,11 @@ static void set_io_from_upio(struct uart +@@ -504,6 +518,11 @@ static void set_io_from_upio(struct uart p->serial_out = mem32_serial_out; break; @@ -157,7 +157,7 @@ case UPIO_AU: p->serial_in = au_serial_in; p->serial_out = au_serial_out; -@@ -534,6 +553,7 @@ serial_out_sync(struct uart_8250_port *u +@@ -535,6 +554,7 @@ serial_out_sync(struct uart_8250_port *u switch (p->iotype) { case UPIO_MEM: case UPIO_MEM32: @@ -165,7 +165,7 @@ case UPIO_AU: case UPIO_DWAPB: p->serial_out(p, offset, value); -@@ -2476,6 +2496,7 @@ static int serial8250_request_std_resour +@@ -2477,6 +2497,7 @@ static int serial8250_request_std_resour case UPIO_MEM32: case UPIO_MEM: case UPIO_DWAPB: @@ -173,7 +173,7 @@ if (!up->port.mapbase) break; -@@ -2513,6 +2534,7 @@ static void serial8250_release_std_resou +@@ -2514,6 +2535,7 @@ static void serial8250_release_std_resou case UPIO_MEM32: case UPIO_MEM: case UPIO_DWAPB: @@ -181,7 +181,7 @@ if (!up->port.mapbase) break; -@@ -3024,6 +3046,7 @@ static int __devinit serial8250_probe(st +@@ -3025,6 +3047,7 @@ static int __devinit serial8250_probe(st port.set_termios = p->set_termios; port.pm = p->pm; port.dev = &dev->dev; @@ -189,7 +189,7 @@ port.irqflags |= irqflag; ret = serial8250_register_port(&port); if (ret < 0) { -@@ -3173,6 +3196,7 @@ int serial8250_register_port(struct uart +@@ -3174,6 +3197,7 @@ int serial8250_register_port(struct uart uart->port.iotype = port->iotype; uart->port.flags = port->flags | UPF_BOOT_AUTOCONF; uart->port.mapbase = port->mapbase; @@ -199,7 +199,7 @@ uart->port.dev = port->dev; --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c -@@ -2130,6 +2130,7 @@ uart_report_port(struct uart_driver *drv +@@ -2129,6 +2129,7 @@ uart_report_port(struct uart_driver *drv snprintf(address, sizeof(address), "I/O 0x%lx offset 0x%x", port->iobase, port->hub6); break; @@ -207,7 +207,7 @@ case UPIO_MEM: case UPIO_MEM32: case UPIO_AU: -@@ -2550,6 +2551,7 @@ int uart_match_port(struct uart_port *po +@@ -2549,6 +2550,7 @@ int uart_match_port(struct uart_port *po case UPIO_HUB6: return (port1->iobase == port2->iobase) && (port1->hub6 == port2->hub6);