projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8500531
)
deal with a bug of spi_uart while receiving data
author
luowei
<lw@rock-chips.com>
Sat, 28 Aug 2010 14:08:42 +0000
(22:08 +0800)
committer
luowei
<lw@rock-chips.com>
Sat, 28 Aug 2010 14:08:42 +0000
(22:08 +0800)
drivers/fpga/spi_uart.c
patch
|
blob
|
history
diff --git
a/drivers/fpga/spi_uart.c
b/drivers/fpga/spi_uart.c
index e0b024296275f62204c819f8c9f225774645630d..69e24dbd08d3334083aeb597bff71fe79952a269 100755
(executable)
--- a/
drivers/fpga/spi_uart.c
+++ b/
drivers/fpga/spi_uart.c
@@
-404,8
+404,8
@@
static void spi_uart_receive_chars(struct spi_uart *uart, unsigned int *status)
int max_count = 1024;
\r
//printk("rx:");
\r
#if SPI_UART_TXRX_BUF
\r
- int ret,count,stat = 0
,num = 0
;
\r
- int i;
\r
+ int ret,count,stat = 0;
\r
+ int i
= 0
;
\r
unsigned char buf[SPI_UART_FIFO_LEN];
\r
while (max_count >0 )
\r
{
\r
@@
-431,7
+431,7
@@
static void spi_uart_receive_chars(struct spi_uart *uart, unsigned int *status)
{
\r
flag = TTY_NORMAL;
\r
uart->icount.rx++;
\r
- ch = buf[
num++
];
\r
+ ch = buf[
i
];
\r
tty_insert_flip_char(tty, ch, flag);
\r
//if(gBaud == 1500000)
\r
//printk("0x%x,",ch);
\r