Commit 3363155b authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: mos7840.c: remove dbg() tracing calls

dbg() was used a lot a long time ago to trace code flow.  Now that we have
ftrace, this isn't needed at all, so remove these calls.

CC: Johan Hovold <jhovold@gmail.com>
CC: Donald Lee <donald@asix.com.tw>
CC: Rusty Russell <rusty@rustcorp.com.au>
CC: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ca09907d
...@@ -667,8 +667,6 @@ static void mos7840_interrupt_callback(struct urb *urb) ...@@ -667,8 +667,6 @@ static void mos7840_interrupt_callback(struct urb *urb)
__u16 wval, wreg = 0; __u16 wval, wreg = 0;
int status = urb->status; int status = urb->status;
dbg("%s", " : Entering");
switch (status) { switch (status) {
case 0: case 0:
/* success */ /* success */
...@@ -842,12 +840,8 @@ static void mos7840_bulk_in_callback(struct urb *urb) ...@@ -842,12 +840,8 @@ static void mos7840_bulk_in_callback(struct urb *urb)
return; return;
} }
dbg("%s", "Entering... ");
data = urb->transfer_buffer; data = urb->transfer_buffer;
dbg("%s", "Entering ...........");
if (urb->actual_length) { if (urb->actual_length) {
tty = tty_port_tty_get(&mos7840_port->port->port); tty = tty_port_tty_get(&mos7840_port->port->port);
if (tty) { if (tty) {
...@@ -919,8 +913,6 @@ static void mos7840_bulk_out_data_callback(struct urb *urb) ...@@ -919,8 +913,6 @@ static void mos7840_bulk_out_data_callback(struct urb *urb)
return; return;
} }
dbg("%s", "Entering .........");
tty = tty_port_tty_get(&mos7840_port->port->port); tty = tty_port_tty_get(&mos7840_port->port->port);
if (tty && mos7840_port->open) if (tty && mos7840_port->open)
tty_wakeup(tty); tty_wakeup(tty);
...@@ -962,8 +954,6 @@ static int mos7840_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -962,8 +954,6 @@ static int mos7840_open(struct tty_struct *tty, struct usb_serial_port *port)
struct moschip_port *mos7840_port; struct moschip_port *mos7840_port;
struct moschip_port *port0; struct moschip_port *port0;
dbg ("%s enter", __func__);
if (mos7840_port_paranoia_check(port, __func__)) { if (mos7840_port_paranoia_check(port, __func__)) {
dbg("%s", "Port Paranoia failed"); dbg("%s", "Port Paranoia failed");
return -ENODEV; return -ENODEV;
...@@ -1235,10 +1225,7 @@ static int mos7840_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -1235,10 +1225,7 @@ static int mos7840_open(struct tty_struct *tty, struct usb_serial_port *port)
dbg("usb_serial serial:%p mos7840_port:%p\n usb_serial_port port:%p", dbg("usb_serial serial:%p mos7840_port:%p\n usb_serial_port port:%p",
serial, mos7840_port, port); serial, mos7840_port, port);
dbg ("%s leave", __func__);
return 0; return 0;
} }
/***************************************************************************** /*****************************************************************************
...@@ -1259,18 +1246,14 @@ static int mos7840_chars_in_buffer(struct tty_struct *tty) ...@@ -1259,18 +1246,14 @@ static int mos7840_chars_in_buffer(struct tty_struct *tty)
unsigned long flags; unsigned long flags;
struct moschip_port *mos7840_port; struct moschip_port *mos7840_port;
dbg("%s", " mos7840_chars_in_buffer:entering ...........");
if (mos7840_port_paranoia_check(port, __func__)) { if (mos7840_port_paranoia_check(port, __func__)) {
dbg("%s", "Invalid port"); dbg("%s", "Invalid port");
return 0; return 0;
} }
mos7840_port = mos7840_get_port_private(port); mos7840_port = mos7840_get_port_private(port);
if (mos7840_port == NULL) { if (mos7840_port == NULL)
dbg("%s", "mos7840_break:leaving ...........");
return 0; return 0;
}
spin_lock_irqsave(&mos7840_port->pool_lock, flags); spin_lock_irqsave(&mos7840_port->pool_lock, flags);
for (i = 0; i < NUM_URBS; ++i) for (i = 0; i < NUM_URBS; ++i)
...@@ -1295,8 +1278,6 @@ static void mos7840_close(struct usb_serial_port *port) ...@@ -1295,8 +1278,6 @@ static void mos7840_close(struct usb_serial_port *port)
int j; int j;
__u16 Data; __u16 Data;
dbg("%s", "mos7840_close:entering...");
if (mos7840_port_paranoia_check(port, __func__)) { if (mos7840_port_paranoia_check(port, __func__)) {
dbg("%s", "Port Paranoia failed"); dbg("%s", "Port Paranoia failed");
return; return;
...@@ -1371,8 +1352,6 @@ static void mos7840_close(struct usb_serial_port *port) ...@@ -1371,8 +1352,6 @@ static void mos7840_close(struct usb_serial_port *port)
mos7840_set_uart_reg(port, INTERRUPT_ENABLE_REGISTER, Data); mos7840_set_uart_reg(port, INTERRUPT_ENABLE_REGISTER, Data);
mos7840_port->open = 0; mos7840_port->open = 0;
dbg("%s", "Leaving ............");
} }
/************************************************************************ /************************************************************************
...@@ -1427,9 +1406,6 @@ static void mos7840_break(struct tty_struct *tty, int break_state) ...@@ -1427,9 +1406,6 @@ static void mos7840_break(struct tty_struct *tty, int break_state)
struct usb_serial *serial; struct usb_serial *serial;
struct moschip_port *mos7840_port; struct moschip_port *mos7840_port;
dbg("%s", "Entering ...........");
dbg("mos7840_break: Start");
if (mos7840_port_paranoia_check(port, __func__)) { if (mos7840_port_paranoia_check(port, __func__)) {
dbg("%s", "Port Paranoia failed"); dbg("%s", "Port Paranoia failed");
return; return;
...@@ -1479,8 +1455,6 @@ static int mos7840_write_room(struct tty_struct *tty) ...@@ -1479,8 +1455,6 @@ static int mos7840_write_room(struct tty_struct *tty)
unsigned long flags; unsigned long flags;
struct moschip_port *mos7840_port; struct moschip_port *mos7840_port;
dbg("%s", " mos7840_write_room:entering ...........");
if (mos7840_port_paranoia_check(port, __func__)) { if (mos7840_port_paranoia_check(port, __func__)) {
dbg("%s", "Invalid port"); dbg("%s", "Invalid port");
dbg("%s", " mos7840_write_room:leaving ..........."); dbg("%s", " mos7840_write_room:leaving ...........");
...@@ -1529,9 +1503,6 @@ static int mos7840_write(struct tty_struct *tty, struct usb_serial_port *port, ...@@ -1529,9 +1503,6 @@ static int mos7840_write(struct tty_struct *tty, struct usb_serial_port *port,
/* __u16 Data; */ /* __u16 Data; */
const unsigned char *current_position = data; const unsigned char *current_position = data;
unsigned char *data1; unsigned char *data1;
dbg("%s", "entering ...........");
/* dbg("mos7840_write: mos7840_port->shadowLCR is %x",
mos7840_port->shadowLCR); */
#ifdef NOTMOS7840 #ifdef NOTMOS7840
Data = 0x00; Data = 0x00;
...@@ -1694,8 +1665,6 @@ static void mos7840_throttle(struct tty_struct *tty) ...@@ -1694,8 +1665,6 @@ static void mos7840_throttle(struct tty_struct *tty)
return; return;
} }
dbg("%s", "Entering ..........");
/* if we are implementing XON/XOFF, send the stop character */ /* if we are implementing XON/XOFF, send the stop character */
if (I_IXOFF(tty)) { if (I_IXOFF(tty)) {
unsigned char stop_char = STOP_CHAR(tty); unsigned char stop_char = STOP_CHAR(tty);
...@@ -1738,8 +1707,6 @@ static void mos7840_unthrottle(struct tty_struct *tty) ...@@ -1738,8 +1707,6 @@ static void mos7840_unthrottle(struct tty_struct *tty)
return; return;
} }
dbg("%s", "Entering ..........");
/* if we are implementing XON/XOFF, send the start character */ /* if we are implementing XON/XOFF, send the start character */
if (I_IXOFF(tty)) { if (I_IXOFF(tty)) {
unsigned char start_char = START_CHAR(tty); unsigned char start_char = START_CHAR(tty);
...@@ -1768,8 +1735,6 @@ static int mos7840_tiocmget(struct tty_struct *tty) ...@@ -1768,8 +1735,6 @@ static int mos7840_tiocmget(struct tty_struct *tty)
int status; int status;
mos7840_port = mos7840_get_port_private(port); mos7840_port = mos7840_get_port_private(port);
dbg("%s - port %d", __func__, port->number);
if (mos7840_port == NULL) if (mos7840_port == NULL)
return -ENODEV; return -ENODEV;
...@@ -1796,8 +1761,6 @@ static int mos7840_tiocmset(struct tty_struct *tty, ...@@ -1796,8 +1761,6 @@ static int mos7840_tiocmset(struct tty_struct *tty,
unsigned int mcr; unsigned int mcr;
int status; int status;
dbg("%s - port %d", __func__, port->number);
mos7840_port = mos7840_get_port_private(port); mos7840_port = mos7840_get_port_private(port);
if (mos7840_port == NULL) if (mos7840_port == NULL)
...@@ -1838,7 +1801,6 @@ static int mos7840_tiocmset(struct tty_struct *tty, ...@@ -1838,7 +1801,6 @@ static int mos7840_tiocmset(struct tty_struct *tty,
static int mos7840_calc_baud_rate_divisor(int baudRate, int *divisor, static int mos7840_calc_baud_rate_divisor(int baudRate, int *divisor,
__u16 *clk_sel_val) __u16 *clk_sel_val)
{ {
dbg("%s - %d", __func__, baudRate); dbg("%s - %d", __func__, baudRate);
if (baudRate <= 115200) { if (baudRate <= 115200) {
...@@ -1931,8 +1893,6 @@ static int mos7840_send_cmd_write_baud_rate(struct moschip_port *mos7840_port, ...@@ -1931,8 +1893,6 @@ static int mos7840_send_cmd_write_baud_rate(struct moschip_port *mos7840_port,
return -1; return -1;
} }
dbg("%s", "Entering ..........");
number = mos7840_port->port->number - mos7840_port->port->serial->minor; number = mos7840_port->port->number - mos7840_port->port->serial->minor;
dbg("%s - port = %d, baud = %d", __func__, dbg("%s - port = %d, baud = %d", __func__,
...@@ -2058,8 +2018,6 @@ static void mos7840_change_port_settings(struct tty_struct *tty, ...@@ -2058,8 +2018,6 @@ static void mos7840_change_port_settings(struct tty_struct *tty,
return; return;
} }
dbg("%s", "Entering ..........");
lData = LCR_BITS_8; lData = LCR_BITS_8;
lStop = LCR_STOP_1; lStop = LCR_STOP_1;
lParity = LCR_PAR_NONE; lParity = LCR_PAR_NONE;
...@@ -2200,7 +2158,7 @@ static void mos7840_set_termios(struct tty_struct *tty, ...@@ -2200,7 +2158,7 @@ static void mos7840_set_termios(struct tty_struct *tty,
unsigned int cflag; unsigned int cflag;
struct usb_serial *serial; struct usb_serial *serial;
struct moschip_port *mos7840_port; struct moschip_port *mos7840_port;
dbg("mos7840_set_termios: START");
if (mos7840_port_paranoia_check(port, __func__)) { if (mos7840_port_paranoia_check(port, __func__)) {
dbg("%s", "Invalid port"); dbg("%s", "Invalid port");
return; return;
...@@ -2499,9 +2457,7 @@ static int mos7840_startup(struct usb_serial *serial) ...@@ -2499,9 +2457,7 @@ static int mos7840_startup(struct usb_serial *serial)
struct moschip_port *mos7840_port; struct moschip_port *mos7840_port;
struct usb_device *dev; struct usb_device *dev;
int i, status; int i, status;
__u16 Data; __u16 Data;
dbg("%s", "mos7840_startup :Entering..........");
if (!serial) { if (!serial) {
dbg("%s", "Invalid Handler"); dbg("%s", "Invalid Handler");
...@@ -2510,9 +2466,6 @@ static int mos7840_startup(struct usb_serial *serial) ...@@ -2510,9 +2466,6 @@ static int mos7840_startup(struct usb_serial *serial)
dev = serial->dev; dev = serial->dev;
dbg("%s", "Entering...");
dbg ("mos7840_startup: serial = %p", serial);
/* we set up the pointers to the endpoints in the mos7840_open * /* we set up the pointers to the endpoints in the mos7840_open *
* function, as the structures aren't created yet. */ * function, as the structures aren't created yet. */
...@@ -2768,7 +2721,6 @@ static void mos7840_disconnect(struct usb_serial *serial) ...@@ -2768,7 +2721,6 @@ static void mos7840_disconnect(struct usb_serial *serial)
int i; int i;
unsigned long flags; unsigned long flags;
struct moschip_port *mos7840_port; struct moschip_port *mos7840_port;
dbg("%s", " disconnect :entering..........");
if (!serial) { if (!serial) {
dbg("%s", "Invalid Handler"); dbg("%s", "Invalid Handler");
...@@ -2790,9 +2742,6 @@ static void mos7840_disconnect(struct usb_serial *serial) ...@@ -2790,9 +2742,6 @@ static void mos7840_disconnect(struct usb_serial *serial)
usb_kill_urb(mos7840_port->control_urb); usb_kill_urb(mos7840_port->control_urb);
} }
} }
dbg("%s", "Thank u :: ");
} }
/**************************************************************************** /****************************************************************************
...@@ -2804,7 +2753,6 @@ static void mos7840_release(struct usb_serial *serial) ...@@ -2804,7 +2753,6 @@ static void mos7840_release(struct usb_serial *serial)
{ {
int i; int i;
struct moschip_port *mos7840_port; struct moschip_port *mos7840_port;
dbg("%s", " release :entering..........");
if (!serial) { if (!serial) {
dbg("%s", "Invalid Handler"); dbg("%s", "Invalid Handler");
...@@ -2833,9 +2781,6 @@ static void mos7840_release(struct usb_serial *serial) ...@@ -2833,9 +2781,6 @@ static void mos7840_release(struct usb_serial *serial)
kfree(mos7840_port); kfree(mos7840_port);
} }
} }
dbg("%s", "Thank u :: ");
} }
static struct usb_driver io_driver = { static struct usb_driver io_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment