int ret,count,stat = *status;\r
int i = 0;\r
unsigned char buf[SPI_UART_FIFO_LEN];\r
- while (max_count >0)\r
+ while (stat & UART_LSR_DR)\r
{\r
- if((((stat >> 8) & 0x3f) != 0) && (!(stat & UART_LSR_DR)))\r
- printk("%s:warning:no receive data but count =%d \n",__FUNCTION__,((stat >> 8) & 0x3f));\r
- if(!(stat & UART_LSR_DR))\r
- break;\r
ret = spi_in(port, UART_RX, SEL_UART);\r
count = (ret >> 8) & 0x3f; \r
DBG("%s:count=%d\n",__FUNCTION__,count);\r
}\r
tty_flip_buffer_push(tty); \r
DBG("\n");\r
+ stat = spi_in(port, UART_LSR, SEL_UART) & 0xff;\r
} \r
\r
DBG("\n");\r