projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[target/generic]: refresh 2.6.38 patches with -rc2
[openwrt.git]
/
target
/
linux
/
adm5120
/
patches-2.6.34
/
200-amba_pl010_hacks.patch
diff --git
a/target/linux/adm5120/patches-2.6.34/200-amba_pl010_hacks.patch
b/target/linux/adm5120/patches-2.6.34/200-amba_pl010_hacks.patch
index
41c88a9
..
e458ab7
100644
(file)
--- a/
target/linux/adm5120/patches-2.6.34/200-amba_pl010_hacks.patch
+++ b/
target/linux/adm5120/patches-2.6.34/200-amba_pl010_hacks.patch
@@
-1,6
+1,6
@@
--- a/drivers/serial/amba-pl010.c
+++ b/drivers/serial/amba-pl010.c
--- a/drivers/serial/amba-pl010.c
+++ b/drivers/serial/amba-pl010.c
-@@ -5
0,11 +50
,10 @@
+@@ -5
1,11 +51
,10 @@
#include <asm/io.h>
#include <asm/io.h>
@@
-14,7
+14,7
@@
#define AMBA_ISR_PASS_LIMIT 256
#define AMBA_ISR_PASS_LIMIT 256
-@@ -8
0,9 +79
,9 @@ static void pl010_stop_tx(struct uart_po
+@@ -8
1,9 +80
,9 @@ static void pl010_stop_tx(struct uart_po
struct uart_amba_port *uap = (struct uart_amba_port *)port;
unsigned int cr;
struct uart_amba_port *uap = (struct uart_amba_port *)port;
unsigned int cr;
@@
-26,7
+26,7
@@
}
static void pl010_start_tx(struct uart_port *port)
}
static void pl010_start_tx(struct uart_port *port)
-@@ -9
0,9 +89
,9 @@ static void pl010_start_tx(struct uart_p
+@@ -9
1,9 +90
,9 @@ static void pl010_start_tx(struct uart_p
struct uart_amba_port *uap = (struct uart_amba_port *)port;
unsigned int cr;
struct uart_amba_port *uap = (struct uart_amba_port *)port;
unsigned int cr;
@@
-38,7
+38,7
@@
}
static void pl010_stop_rx(struct uart_port *port)
}
static void pl010_stop_rx(struct uart_port *port)
-@@ -10
0,9 +99
,9 @@ static void pl010_stop_rx(struct uart_po
+@@ -10
1,9 +100
,9 @@ static void pl010_stop_rx(struct uart_po
struct uart_amba_port *uap = (struct uart_amba_port *)port;
unsigned int cr;
struct uart_amba_port *uap = (struct uart_amba_port *)port;
unsigned int cr;
@@
-50,7
+50,7
@@
}
static void pl010_enable_ms(struct uart_port *port)
}
static void pl010_enable_ms(struct uart_port *port)
-@@ -11
0,9 +109
,9 @@ static void pl010_enable_ms(struct uart_
+@@ -11
1,9 +110
,9 @@ static void pl010_enable_ms(struct uart_
struct uart_amba_port *uap = (struct uart_amba_port *)port;
unsigned int cr;
struct uart_amba_port *uap = (struct uart_amba_port *)port;
unsigned int cr;
@@
-62,7
+62,7
@@
}
static void pl010_rx_chars(struct uart_amba_port *uap)
}
static void pl010_rx_chars(struct uart_amba_port *uap)
-@@ -12
0,9 +119
,9 @@ static void pl010_rx_chars(struct uart_a
+@@ -12
1,9 +120
,9 @@ static void pl010_rx_chars(struct uart_a
struct tty_struct *tty = uap->port.state->port.tty;
unsigned int status, ch, flag, rsr, max_count = 256;
struct tty_struct *tty = uap->port.state->port.tty;
unsigned int status, ch, flag, rsr, max_count = 256;
@@
-74,7
+74,7
@@
flag = TTY_NORMAL;
uap->port.icount.rx++;
flag = TTY_NORMAL;
uap->port.icount.rx++;
-@@ -13
1,9 +130
,9 @@ static void pl010_rx_chars(struct uart_a
+@@ -13
2,9 +131
,9 @@ static void pl010_rx_chars(struct uart_a
* Note that the error handling code is
* out of the main execution path
*/
* Note that the error handling code is
* out of the main execution path
*/
@@
-86,7
+86,7
@@
if (rsr & UART01x_RSR_BE) {
rsr &= ~(UART01x_RSR_FE | UART01x_RSR_PE);
if (rsr & UART01x_RSR_BE) {
rsr &= ~(UART01x_RSR_FE | UART01x_RSR_PE);
-@@ -16
3,7 +162
,7 @@ static void pl010_rx_chars(struct uart_a
+@@ -16
4,7 +163
,7 @@ static void pl010_rx_chars(struct uart_a
uart_insert_char(&uap->port, rsr, UART01x_RSR_OE, ch, flag);
ignore_char:
uart_insert_char(&uap->port, rsr, UART01x_RSR_OE, ch, flag);
ignore_char:
@@
-95,7
+95,7
@@
}
spin_unlock(&uap->port.lock);
tty_flip_buffer_push(tty);
}
spin_unlock(&uap->port.lock);
tty_flip_buffer_push(tty);
-@@ -17
6,7 +175
,7 @@ static void pl010_tx_chars(struct uart_a
+@@ -17
7,7 +176
,7 @@ static void pl010_tx_chars(struct uart_a
int count;
if (uap->port.x_char) {
int count;
if (uap->port.x_char) {
@@
-104,7
+104,7
@@
uap->port.icount.tx++;
uap->port.x_char = 0;
return;
uap->port.icount.tx++;
uap->port.x_char = 0;
return;
-@@ -18
8,7 +187
,7 @@ static void pl010_tx_chars(struct uart_a
+@@ -18
9,7 +188
,7 @@ static void pl010_tx_chars(struct uart_a
count = uap->port.fifosize >> 1;
do {
count = uap->port.fifosize >> 1;
do {
@@
-113,7
+113,7
@@
xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
uap->port.icount.tx++;
if (uart_circ_empty(xmit))
xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
uap->port.icount.tx++;
if (uart_circ_empty(xmit))
-@@ -20
6,9 +205
,9 @@ static void pl010_modem_status(struct ua
+@@ -20
7,9 +206
,9 @@ static void pl010_modem_status(struct ua
{
unsigned int status, delta;
{
unsigned int status, delta;
@@
-125,7
+125,7
@@
delta = status ^ uap->old_status;
uap->old_status = status;
delta = status ^ uap->old_status;
uap->old_status = status;
-@@ -23
6,7 +235
,7 @@ static irqreturn_t pl010_int(int irq, vo
+@@ -23
7,7 +236
,7 @@ static irqreturn_t pl010_int(int irq, vo
spin_lock(&uap->port.lock);
spin_lock(&uap->port.lock);
@@
-134,7
+134,7
@@
if (status) {
do {
if (status & (UART010_IIR_RTIS | UART010_IIR_RIS))
if (status) {
do {
if (status & (UART010_IIR_RTIS | UART010_IIR_RIS))
-@@ -2
49,7 +248
,7 @@ static irqreturn_t pl010_int(int irq, vo
+@@ -2
50,7 +249
,7 @@ static irqreturn_t pl010_int(int irq, vo
if (pass_counter-- == 0)
break;
if (pass_counter-- == 0)
break;
@@
-143,7
+143,7
@@
} while (status & (UART010_IIR_RTIS | UART010_IIR_RIS |
UART010_IIR_TIS));
handled = 1;
} while (status & (UART010_IIR_RTIS | UART010_IIR_RIS |
UART010_IIR_TIS));
handled = 1;
-@@ -26
3,7 +262
,7 @@ static irqreturn_t pl010_int(int irq, vo
+@@ -26
4,7 +263
,7 @@ static irqreturn_t pl010_int(int irq, vo
static unsigned int pl010_tx_empty(struct uart_port *port)
{
struct uart_amba_port *uap = (struct uart_amba_port *)port;
static unsigned int pl010_tx_empty(struct uart_port *port)
{
struct uart_amba_port *uap = (struct uart_amba_port *)port;
@@
-152,7
+152,7
@@
return status & UART01x_FR_BUSY ? 0 : TIOCSER_TEMT;
}
return status & UART01x_FR_BUSY ? 0 : TIOCSER_TEMT;
}
-@@ -27
3,7 +272
,7 @@ static unsigned int pl010_get_mctrl(stru
+@@ -27
4,7 +273
,7 @@ static unsigned int pl010_get_mctrl(stru
unsigned int result = 0;
unsigned int status;
unsigned int result = 0;
unsigned int status;
@@
-161,7
+161,7
@@
if (status & UART01x_FR_DCD)
result |= TIOCM_CAR;
if (status & UART01x_FR_DSR)
if (status & UART01x_FR_DCD)
result |= TIOCM_CAR;
if (status & UART01x_FR_DSR)
-@@ -
299,12 +298
,12 @@ static void pl010_break_ctl(struct uart_
+@@ -
300,12 +299
,12 @@ static void pl010_break_ctl(struct uart_
unsigned int lcr_h;
spin_lock_irqsave(&uap->port.lock, flags);
unsigned int lcr_h;
spin_lock_irqsave(&uap->port.lock, flags);
@@
-176,7
+176,7
@@
spin_unlock_irqrestore(&uap->port.lock, flags);
}
spin_unlock_irqrestore(&uap->port.lock, flags);
}
-@@ -33
2,12 +331
,12 @@ static int pl010_startup(struct uart_por
+@@ -33
3,12 +332
,12 @@ static int pl010_startup(struct uart_por
/*
* initialise the old status of the modem signals
*/
/*
* initialise the old status of the modem signals
*/
@@
-191,7
+191,7
@@
uap->port.membase + UART010_CR);
return 0;
uap->port.membase + UART010_CR);
return 0;
-@@ -36
0,10 +359
,10 @@ static void pl010_shutdown(struct uart_p
+@@ -36
1,10 +360
,10 @@ static void pl010_shutdown(struct uart_p
/*
* disable all interrupts, disable the port
*/
/*
* disable all interrupts, disable the port
*/
@@
-204,7
+204,7
@@
~(UART01x_LCRH_BRK | UART01x_LCRH_FEN),
uap->port.membase + UART010_LCRH);
~(UART01x_LCRH_BRK | UART01x_LCRH_FEN),
uap->port.membase + UART010_LCRH);
-@@ -38
5,7 +384
,7 @@ pl010_set_termios(struct uart_port *port
+@@ -38
6,7 +385
,7 @@ pl010_set_termios(struct uart_port *port
/*
* Ask the core to calculate the divisor for us.
*/
/*
* Ask the core to calculate the divisor for us.
*/
@@
-213,7
+213,7
@@
quot = uart_get_divisor(port, baud);
switch (termios->c_cflag & CSIZE) {
quot = uart_get_divisor(port, baud);
switch (termios->c_cflag & CSIZE) {
-@@ -44
8,25 +447
,25 @@ pl010_set_termios(struct uart_port *port
+@@ -44
9,25 +448
,25 @@ pl010_set_termios(struct uart_port *port
uap->port.ignore_status_mask |= UART_DUMMY_RSR_RX;
/* first, disable everything */
uap->port.ignore_status_mask |= UART_DUMMY_RSR_RX;
/* first, disable everything */
@@
-245,7
+245,7
@@
spin_unlock_irqrestore(&uap->port.lock, flags);
}
spin_unlock_irqrestore(&uap->port.lock, flags);
}
-@@ -5
38,7 +537
,7 @@ static struct uart_ops amba_pl010_pops =
+@@ -5
54,7 +553
,7 @@ static struct uart_ops amba_pl010_pops =
.verify_port = pl010_verify_port,
};
.verify_port = pl010_verify_port,
};
@@
-254,7
+254,7
@@
#ifdef CONFIG_SERIAL_AMBA_PL010_CONSOLE
#ifdef CONFIG_SERIAL_AMBA_PL010_CONSOLE
-@@ -5
48,10 +547
,10 @@ static void pl010_console_putchar(struct
+@@ -5
64,10 +563
,10 @@ static void pl010_console_putchar(struct
unsigned int status;
do {
unsigned int status;
do {
@@
-267,7
+267,7
@@
}
static void
}
static void
-@@ -5
65,8 +564,8 @@ pl010_console_write(struct console *co,
+@@ -5
81,8 +580,8 @@ pl010_console_write(struct console *co,
/*
* First save the CR then disable the interrupts
*/
/*
* First save the CR then disable the interrupts
*/
@@
-278,7
+278,7
@@
uart_console_write(&uap->port, s, count, pl010_console_putchar);
uart_console_write(&uap->port, s, count, pl010_console_putchar);
-@@ -5
75,10 +574,10 @@ pl010_console_write(struct console *co,
+@@ -5
91,10 +590,10 @@ pl010_console_write(struct console *co,
* and restore the TCR
*/
do {
* and restore the TCR
*/
do {
@@
-291,7
+291,7
@@
clk_disable(uap->clk);
}
clk_disable(uap->clk);
}
-@@ -
587,9 +586
,9 @@ static void __init
+@@ -
603,9 +602
,9 @@ static void __init
pl010_console_get_options(struct uart_amba_port *uap, int *baud,
int *parity, int *bits)
{
pl010_console_get_options(struct uart_amba_port *uap, int *baud,
int *parity, int *bits)
{
@@
-303,7
+303,7
@@
*parity = 'n';
if (lcr_h & UART01x_LCRH_PEN) {
*parity = 'n';
if (lcr_h & UART01x_LCRH_PEN) {
-@@ -6
04,8 +603
,8 @@ pl010_console_get_options(struct uart_am
+@@ -6
20,8 +619
,8 @@ pl010_console_get_options(struct uart_am
else
*bits = 8;
else
*bits = 8;
@@
-314,7
+314,7
@@
*baud = uap->port.uartclk / (16 * (quot + 1));
}
}
*baud = uap->port.uartclk / (16 * (quot + 1));
}
}
-@@ -6
23,7 +622
,7 @@ static int __init pl010_console_setup(st
+@@ -6
39,7 +638
,7 @@ static int __init pl010_console_setup(st
* if so, search for the first available port that does have
* console support.
*/
* if so, search for the first available port that does have
* console support.
*/
@@
-323,7
+323,7
@@
co->index = 0;
uap = amba_ports[co->index];
if (!uap)
co->index = 0;
uap = amba_ports[co->index];
if (!uap)
-@@ -6
41,7 +640
,7 @@ static int __init pl010_console_setup(st
+@@ -6
57,7 +656
,7 @@ static int __init pl010_console_setup(st
static struct uart_driver amba_reg;
static struct console amba_console = {
static struct uart_driver amba_reg;
static struct console amba_console = {
@@
-332,7
+332,7
@@
.write = pl010_console_write,
.device = uart_console_device,
.setup = pl010_console_setup,
.write = pl010_console_write,
.device = uart_console_device,
.setup = pl010_console_setup,
-@@ -6
57,11 +656
,11 @@ static struct console amba_console = {
+@@ -6
73,11 +672
,11 @@ static struct console amba_console = {
static struct uart_driver amba_reg = {
.owner = THIS_MODULE,
static struct uart_driver amba_reg = {
.owner = THIS_MODULE,
This page took
0.032947 seconds
and
4
git commands to generate.