aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/digi_acceleport.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-03 19:43:59 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-03 19:43:59 -0400
commita1bd88697533b37db292e67d04744a0c9f71c089 (patch)
treec861b6d55a17a57bc28af7a229ec58d521e1f46b /drivers/usb/serial/digi_acceleport.c
parent108feb66ac273ab0f949a3f78526dc0c03ee9d87 (diff)
USB: digi_acceleport.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: Peter Berger <pberger@brimson.com> CC: Al Borchers <alborchers@steinerpoint.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/digi_acceleport.c')
-rw-r--r--drivers/usb/serial/digi_acceleport.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c
index 999f91bf70d..f8dad3a3427 100644
--- a/drivers/usb/serial/digi_acceleport.c
+++ b/drivers/usb/serial/digi_acceleport.c
@@ -657,9 +657,6 @@ static void digi_rx_throttle(struct tty_struct *tty)
657 struct usb_serial_port *port = tty->driver_data; 657 struct usb_serial_port *port = tty->driver_data;
658 struct digi_port *priv = usb_get_serial_port_data(port); 658 struct digi_port *priv = usb_get_serial_port_data(port);
659 659
660
661 dbg("digi_rx_throttle: TOP: port=%d", priv->dp_port_num);
662
663 /* stop receiving characters by not resubmitting the read urb */ 660 /* stop receiving characters by not resubmitting the read urb */
664 spin_lock_irqsave(&priv->dp_port_lock, flags); 661 spin_lock_irqsave(&priv->dp_port_lock, flags);
665 priv->dp_throttled = 1; 662 priv->dp_throttled = 1;
@@ -675,8 +672,6 @@ static void digi_rx_unthrottle(struct tty_struct *tty)
675 struct usb_serial_port *port = tty->driver_data; 672 struct usb_serial_port *port = tty->driver_data;
676 struct digi_port *priv = usb_get_serial_port_data(port); 673 struct digi_port *priv = usb_get_serial_port_data(port);
677 674
678 dbg("digi_rx_unthrottle: TOP: port=%d", priv->dp_port_num);
679
680 spin_lock_irqsave(&priv->dp_port_lock, flags); 675 spin_lock_irqsave(&priv->dp_port_lock, flags);
681 676
682 /* restart read chain */ 677 /* restart read chain */
@@ -904,8 +899,6 @@ static int digi_tiocmget(struct tty_struct *tty)
904 unsigned int val; 899 unsigned int val;
905 unsigned long flags; 900 unsigned long flags;
906 901
907 dbg("%s: TOP: port=%d", __func__, priv->dp_port_num);
908
909 spin_lock_irqsave(&priv->dp_port_lock, flags); 902 spin_lock_irqsave(&priv->dp_port_lock, flags);
910 val = priv->dp_modem_signals; 903 val = priv->dp_modem_signals;
911 spin_unlock_irqrestore(&priv->dp_port_lock, flags); 904 spin_unlock_irqrestore(&priv->dp_port_lock, flags);
@@ -921,8 +914,6 @@ static int digi_tiocmset(struct tty_struct *tty,
921 unsigned int val; 914 unsigned int val;
922 unsigned long flags; 915 unsigned long flags;
923 916
924 dbg("%s: TOP: port=%d", __func__, priv->dp_port_num);
925
926 spin_lock_irqsave(&priv->dp_port_lock, flags); 917 spin_lock_irqsave(&priv->dp_port_lock, flags);
927 val = (priv->dp_modem_signals & ~clear) | set; 918 val = (priv->dp_modem_signals & ~clear) | set;
928 spin_unlock_irqrestore(&priv->dp_port_lock, flags); 919 spin_unlock_irqrestore(&priv->dp_port_lock, flags);
@@ -1013,8 +1004,6 @@ static void digi_write_bulk_callback(struct urb *urb)
1013 int ret = 0; 1004 int ret = 0;
1014 int status = urb->status; 1005 int status = urb->status;
1015 1006
1016 dbg("digi_write_bulk_callback: TOP, status=%d", status);
1017
1018 /* port and serial sanity check */ 1007 /* port and serial sanity check */
1019 if (port == NULL || (priv = usb_get_serial_port_data(port)) == NULL) { 1008 if (port == NULL || (priv = usb_get_serial_port_data(port)) == NULL) {
1020 pr_err("%s: port or port->private is NULL, status=%d\n", 1009 pr_err("%s: port or port->private is NULL, status=%d\n",
@@ -1121,8 +1110,6 @@ static int digi_open(struct tty_struct *tty, struct usb_serial_port *port)
1121 struct digi_port *priv = usb_get_serial_port_data(port); 1110 struct digi_port *priv = usb_get_serial_port_data(port);
1122 struct ktermios not_termios; 1111 struct ktermios not_termios;
1123 1112
1124 dbg("digi_open: TOP: port=%d", priv->dp_port_num);
1125
1126 /* be sure the device is started up */ 1113 /* be sure the device is started up */
1127 if (digi_startup_device(port->serial) != 0) 1114 if (digi_startup_device(port->serial) != 0)
1128 return -ENXIO; 1115 return -ENXIO;
@@ -1160,8 +1147,6 @@ static void digi_close(struct usb_serial_port *port)
1160 unsigned char buf[32]; 1147 unsigned char buf[32];
1161 struct digi_port *priv = usb_get_serial_port_data(port); 1148 struct digi_port *priv = usb_get_serial_port_data(port);
1162 1149
1163 dbg("digi_close: TOP: port=%d", priv->dp_port_num);
1164
1165 mutex_lock(&port->serial->disc_mutex); 1150 mutex_lock(&port->serial->disc_mutex);
1166 /* if disconnected, just clear flags */ 1151 /* if disconnected, just clear flags */
1167 if (port->serial->disconnected) 1152 if (port->serial->disconnected)
@@ -1220,7 +1205,6 @@ exit:
1220 wake_up_interruptible(&priv->dp_close_wait); 1205 wake_up_interruptible(&priv->dp_close_wait);
1221 spin_unlock_irq(&priv->dp_port_lock); 1206 spin_unlock_irq(&priv->dp_port_lock);
1222 mutex_unlock(&port->serial->disc_mutex); 1207 mutex_unlock(&port->serial->disc_mutex);
1223 dbg("digi_close: done");
1224} 1208}
1225 1209
1226 1210
@@ -1269,8 +1253,6 @@ static int digi_startup(struct usb_serial *serial)
1269 struct digi_port *priv; 1253 struct digi_port *priv;
1270 struct digi_serial *serial_priv; 1254 struct digi_serial *serial_priv;
1271 1255
1272 dbg("digi_startup: TOP");
1273
1274 /* allocate the private data structures for all ports */ 1256 /* allocate the private data structures for all ports */
1275 /* number of regular ports + 1 for the out-of-band port */ 1257 /* number of regular ports + 1 for the out-of-band port */
1276 for (i = 0; i < serial->type->num_ports + 1; i++) { 1258 for (i = 0; i < serial->type->num_ports + 1; i++) {
@@ -1325,7 +1307,6 @@ static int digi_startup(struct usb_serial *serial)
1325static void digi_disconnect(struct usb_serial *serial) 1307static void digi_disconnect(struct usb_serial *serial)
1326{ 1308{
1327 int i; 1309 int i;
1328 dbg("digi_disconnect: TOP, in_interrupt()=%ld", in_interrupt());
1329 1310
1330 /* stop reads and writes on all ports */ 1311 /* stop reads and writes on all ports */
1331 for (i = 0; i < serial->type->num_ports + 1; i++) { 1312 for (i = 0; i < serial->type->num_ports + 1; i++) {
@@ -1338,7 +1319,6 @@ static void digi_disconnect(struct usb_serial *serial)
1338static void digi_release(struct usb_serial *serial) 1319static void digi_release(struct usb_serial *serial)
1339{ 1320{
1340 int i; 1321 int i;
1341 dbg("digi_release: TOP, in_interrupt()=%ld", in_interrupt());
1342 1322
1343 /* free the private data structures for all ports */ 1323 /* free the private data structures for all ports */
1344 /* number of regular ports + 1 for the out-of-band port */ 1324 /* number of regular ports + 1 for the out-of-band port */
@@ -1356,8 +1336,6 @@ static void digi_read_bulk_callback(struct urb *urb)
1356 int ret; 1336 int ret;
1357 int status = urb->status; 1337 int status = urb->status;
1358 1338
1359 dbg("digi_read_bulk_callback: TOP");
1360
1361 /* port sanity check, do not resubmit if port is not valid */ 1339 /* port sanity check, do not resubmit if port is not valid */
1362 if (port == NULL) 1340 if (port == NULL)
1363 return; 1341 return;
@@ -1507,9 +1485,6 @@ static int digi_read_oob_callback(struct urb *urb)
1507 int i; 1485 int i;
1508 unsigned int rts; 1486 unsigned int rts;
1509 1487
1510 dbg("digi_read_oob_callback: port=%d, len=%d",
1511 priv->dp_port_num, urb->actual_length);
1512
1513 /* handle each oob command */ 1488 /* handle each oob command */
1514 for (i = 0; i < urb->actual_length - 3;) { 1489 for (i = 0; i < urb->actual_length - 3;) {
1515 opcode = ((unsigned char *)urb->transfer_buffer)[i++]; 1490 opcode = ((unsigned char *)urb->transfer_buffer)[i++];