From: hhb <hhb@rock-chips.com>
Date: Fri, 8 Mar 2013 08:11:45 +0000 (+0800)
Subject: rk_serial: set DBG_PORT to CONFIG_RK_DEBUG_UART and close DEBUG
X-Git-Tag: firefly_0821_release~7448
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=04f174f09249f1efaffb09a21e02539216e02038;p=firefly-linux-kernel-4.4.55.git

rk_serial: set DBG_PORT to CONFIG_RK_DEBUG_UART and close DEBUG
---

diff --git a/drivers/tty/serial/rk_serial.c b/drivers/tty/serial/rk_serial.c
index 682e62c04309..3157ce2f1e47 100644
--- a/drivers/tty/serial/rk_serial.c
+++ b/drivers/tty/serial/rk_serial.c
@@ -135,8 +135,13 @@ static struct uart_driver serial_rk_reg;
 #ifdef CONFIG_ARCH_RK29
 #define DBG_PORT 1   //DBG_PORT which uart is used to print log message
 #else
-#define DBG_PORT -1   //DBG_PORT which uart is used to print log message
+#ifndef CONFIG_RK_DEBUG_UART   //DBG_PORT which uart is used to print log message
+#define DBG_PORT 2
+#else
+#define DBG_PORT CONFIG_RK_DEBUG_UART
+#endif
 #endif
+
 #ifdef CONFIG_SERIAL_CORE_CONSOLE
 #define uart_console(port)	((port)->cons && (port)->cons->index == (port)->line)
 #else
@@ -158,7 +163,7 @@ static void dbg(const char *fmt, ...)
 }
 
 //enable log output
-#define DEBUG 1
+#define DEBUG 0
 static int log_port = -1;
 module_param(log_port, int, S_IRUGO|S_IWUSR);