提交 ad245aa2 编写于 作者: J Jiri Slaby 提交者: Greg Kroah-Hartman

TTY: serial/m32r_sio, remove debug macros

DEBUG_AUTOCONF is unused.

Switch DEBUG_INTR to pr_debug. This is only enabled with DEBUG or
dynamic debug when explicitly asked for.
Signed-off-by: NJiri Slaby <jslaby@suse.cz>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c8e7d143
...@@ -49,21 +49,6 @@ ...@@ -49,21 +49,6 @@
#include <linux/serial_core.h> #include <linux/serial_core.h>
#include "m32r_sio_reg.h" #include "m32r_sio_reg.h"
/*
* Debugging.
*/
#if 0
#define DEBUG_AUTOCONF(fmt...) printk(fmt)
#else
#define DEBUG_AUTOCONF(fmt...) do { } while (0)
#endif
#if 0
#define DEBUG_INTR(fmt...) printk(fmt)
#else
#define DEBUG_INTR(fmt...) do { } while (0)
#endif
#define PASS_LIMIT 256 #define PASS_LIMIT 256
/* Standard COM flags */ /* Standard COM flags */
...@@ -334,7 +319,7 @@ static void receive_chars(struct uart_sio_port *up, int *status) ...@@ -334,7 +319,7 @@ static void receive_chars(struct uart_sio_port *up, int *status)
} }
if (*status & UART_LSR_BI) { if (*status & UART_LSR_BI) {
DEBUG_INTR("handling break...."); pr_debug("handling break....\n");
flag = TTY_BREAK; flag = TTY_BREAK;
} else if (*status & UART_LSR_PE) } else if (*status & UART_LSR_PE)
flag = TTY_PARITY; flag = TTY_PARITY;
...@@ -395,7 +380,7 @@ static void transmit_chars(struct uart_sio_port *up) ...@@ -395,7 +380,7 @@ static void transmit_chars(struct uart_sio_port *up)
if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
uart_write_wakeup(&up->port); uart_write_wakeup(&up->port);
DEBUG_INTR("THRE..."); pr_debug("THRE...\n");
if (uart_circ_empty(xmit)) if (uart_circ_empty(xmit))
m32r_sio_stop_tx(&up->port); m32r_sio_stop_tx(&up->port);
...@@ -407,7 +392,7 @@ static void transmit_chars(struct uart_sio_port *up) ...@@ -407,7 +392,7 @@ static void transmit_chars(struct uart_sio_port *up)
static inline void m32r_sio_handle_port(struct uart_sio_port *up, static inline void m32r_sio_handle_port(struct uart_sio_port *up,
unsigned int status) unsigned int status)
{ {
DEBUG_INTR("status = %x...", status); pr_debug("status = %x...\n", status);
if (status & 0x04) if (status & 0x04)
receive_chars(up, &status); receive_chars(up, &status);
...@@ -435,7 +420,7 @@ static irqreturn_t m32r_sio_interrupt(int irq, void *dev_id) ...@@ -435,7 +420,7 @@ static irqreturn_t m32r_sio_interrupt(int irq, void *dev_id)
struct list_head *l, *end = NULL; struct list_head *l, *end = NULL;
int pass_counter = 0; int pass_counter = 0;
DEBUG_INTR("m32r_sio_interrupt(%d)...", irq); pr_debug("m32r_sio_interrupt(%d)...\n", irq);
#ifdef CONFIG_SERIAL_M32R_PLDSIO #ifdef CONFIG_SERIAL_M32R_PLDSIO
// if (irq == PLD_IRQ_SIO0_SND) // if (irq == PLD_IRQ_SIO0_SND)
...@@ -475,7 +460,7 @@ static irqreturn_t m32r_sio_interrupt(int irq, void *dev_id) ...@@ -475,7 +460,7 @@ static irqreturn_t m32r_sio_interrupt(int irq, void *dev_id)
spin_unlock(&i->lock); spin_unlock(&i->lock);
DEBUG_INTR("end.\n"); pr_debug("end.\n");
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册