Commit b69919ca authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: mct_u232.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: Rusty Russell <rusty@rustcorp.com.au>
CC: Alan Stern <stern@rowland.harvard.edu>
CC: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f65ee14f
...@@ -427,8 +427,6 @@ static void mct_u232_release(struct usb_serial *serial) ...@@ -427,8 +427,6 @@ static void mct_u232_release(struct usb_serial *serial)
struct mct_u232_private *priv; struct mct_u232_private *priv;
int i; int i;
dbg("%s", __func__);
for (i = 0; i < serial->num_ports; ++i) { for (i = 0; i < serial->num_ports; ++i) {
/* My special items, the standard routines free my urbs */ /* My special items, the standard routines free my urbs */
priv = usb_get_serial_port_data(serial->port[i]); priv = usb_get_serial_port_data(serial->port[i]);
...@@ -446,8 +444,6 @@ static int mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -446,8 +444,6 @@ static int mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port)
unsigned char last_lcr; unsigned char last_lcr;
unsigned char last_msr; unsigned char last_msr;
dbg("%s port %d", __func__, port->number);
/* Compensate for a hardware bug: although the Sitecom U232-P25 /* Compensate for a hardware bug: although the Sitecom U232-P25
* device reports a maximum output packet size of 32 bytes, * device reports a maximum output packet size of 32 bytes,
* it seems to be able to accept only 16 bytes (and that's what * it seems to be able to accept only 16 bytes (and that's what
...@@ -528,8 +524,6 @@ static void mct_u232_dtr_rts(struct usb_serial_port *port, int on) ...@@ -528,8 +524,6 @@ static void mct_u232_dtr_rts(struct usb_serial_port *port, int on)
static void mct_u232_close(struct usb_serial_port *port) static void mct_u232_close(struct usb_serial_port *port)
{ {
dbg("%s port %d", __func__, port->number);
if (port->serial->dev) { if (port->serial->dev) {
/* shutdown our urbs */ /* shutdown our urbs */
usb_kill_urb(port->write_urb); usb_kill_urb(port->write_urb);
...@@ -572,7 +566,6 @@ static void mct_u232_read_int_callback(struct urb *urb) ...@@ -572,7 +566,6 @@ static void mct_u232_read_int_callback(struct urb *urb)
return; return;
} }
dbg("%s - port %d", __func__, port->number);
usb_serial_debug_data(debug, &port->dev, __func__, usb_serial_debug_data(debug, &port->dev, __func__,
urb->actual_length, data); urb->actual_length, data);
...@@ -733,8 +726,6 @@ static void mct_u232_break_ctl(struct tty_struct *tty, int break_state) ...@@ -733,8 +726,6 @@ static void mct_u232_break_ctl(struct tty_struct *tty, int break_state)
unsigned char lcr; unsigned char lcr;
unsigned long flags; unsigned long flags;
dbg("%sstate=%d", __func__, break_state);
spin_lock_irqsave(&priv->lock, flags); spin_lock_irqsave(&priv->lock, flags);
lcr = priv->last_lcr; lcr = priv->last_lcr;
...@@ -753,8 +744,6 @@ static int mct_u232_tiocmget(struct tty_struct *tty) ...@@ -753,8 +744,6 @@ static int mct_u232_tiocmget(struct tty_struct *tty)
unsigned int control_state; unsigned int control_state;
unsigned long flags; unsigned long flags;
dbg("%s", __func__);
spin_lock_irqsave(&priv->lock, flags); spin_lock_irqsave(&priv->lock, flags);
control_state = priv->control_state; control_state = priv->control_state;
spin_unlock_irqrestore(&priv->lock, flags); spin_unlock_irqrestore(&priv->lock, flags);
...@@ -771,8 +760,6 @@ static int mct_u232_tiocmset(struct tty_struct *tty, ...@@ -771,8 +760,6 @@ static int mct_u232_tiocmset(struct tty_struct *tty,
unsigned int control_state; unsigned int control_state;
unsigned long flags; unsigned long flags;
dbg("%s", __func__);
spin_lock_irqsave(&priv->lock, flags); spin_lock_irqsave(&priv->lock, flags);
control_state = priv->control_state; control_state = priv->control_state;
...@@ -796,8 +783,6 @@ static void mct_u232_throttle(struct tty_struct *tty) ...@@ -796,8 +783,6 @@ static void mct_u232_throttle(struct tty_struct *tty)
struct mct_u232_private *priv = usb_get_serial_port_data(port); struct mct_u232_private *priv = usb_get_serial_port_data(port);
unsigned int control_state; unsigned int control_state;
dbg("%s - port %d", __func__, port->number);
spin_lock_irq(&priv->lock); spin_lock_irq(&priv->lock);
priv->rx_flags |= THROTTLED; priv->rx_flags |= THROTTLED;
if (C_CRTSCTS(tty)) { if (C_CRTSCTS(tty)) {
...@@ -816,8 +801,6 @@ static void mct_u232_unthrottle(struct tty_struct *tty) ...@@ -816,8 +801,6 @@ static void mct_u232_unthrottle(struct tty_struct *tty)
struct mct_u232_private *priv = usb_get_serial_port_data(port); struct mct_u232_private *priv = usb_get_serial_port_data(port);
unsigned int control_state; unsigned int control_state;
dbg("%s - port %d", __func__, port->number);
spin_lock_irq(&priv->lock); spin_lock_irq(&priv->lock);
if ((priv->rx_flags & THROTTLED) && C_CRTSCTS(tty)) { if ((priv->rx_flags & THROTTLED) && C_CRTSCTS(tty)) {
priv->rx_flags &= ~THROTTLED; priv->rx_flags &= ~THROTTLED;
......
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