uart:fix couldn't use F5+t function bug
authorhhb <hhb@rock-chips.com>
Tue, 16 Aug 2011 02:11:12 +0000 (10:11 +0800)
committerhhb <hhb@rock-chips.com>
Tue, 16 Aug 2011 02:11:12 +0000 (10:11 +0800)
drivers/serial/rk_serial.c

index c12e9db9bb4d2c5c9aa51ab3a6f3c2809a70f0e9..91f35d1669e78ba555798cb21f2e13766ee6d304 100644 (file)
@@ -944,8 +944,13 @@ static void serial_rk_handle_port(struct uart_rk_port *up)
                 */\r
 \r
                if (status & UART_LSR_RFE) {\r
-                       status = serial_in(up, UART_LSR);\r
-                       dev_info(up->port.dev, "error:lsr=0x%x\n", status);\r
+                       \r
+                       if(up->port.line != DBG_PORT){\r
+                               status = serial_in(up, UART_LSR);\r
+                               dev_info(up->port.dev, "error:lsr=0x%x\n", status);\r
+                       }\r
+                       \r
+                       \r
                //      rk29_uart_dump_register(up);\r
                }\r
 \r