aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-18 04:58:57 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-18 04:58:57 -0400
commit59d33f2fc2d63796296b1b76143e039d6e7cf532 (patch)
treee754135e560ab7478694c942fe65bc4ea325053b /drivers
parent82760526e6d2e1d1e815abaf3eae42b8bb82968c (diff)
USB: serial: remove debug parameter from usb_serial_debug_data()
We should use dev_dbg() for usb_serial_debug_data() like all of the rest of the usb-serial drivers use, so remove the debug parameter as it's not needed. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/serial/ark3116.c3
-rw-r--r--drivers/usb/serial/belkin_sa.c3
-rw-r--r--drivers/usb/serial/ch341.c2
-rw-r--r--drivers/usb/serial/cyberjack.c8
-rw-r--r--drivers/usb/serial/cypress_m8.c8
-rw-r--r--drivers/usb/serial/f81232.c2
-rw-r--r--drivers/usb/serial/garmin_gps.c24
-rw-r--r--drivers/usb/serial/generic.c6
-rw-r--r--drivers/usb/serial/io_edgeport.c15
-rw-r--r--drivers/usb/serial/io_ti.c20
-rw-r--r--drivers/usb/serial/kobil_sct.c3
-rw-r--r--drivers/usb/serial/mct_u232.c3
-rw-r--r--drivers/usb/serial/mos7720.c2
-rw-r--r--drivers/usb/serial/mos7840.c2
-rw-r--r--drivers/usb/serial/navman.c3
-rw-r--r--drivers/usb/serial/omninet.c4
-rw-r--r--drivers/usb/serial/opticon.c5
-rw-r--r--drivers/usb/serial/pl2303.c2
-rw-r--r--drivers/usb/serial/sierra.c6
-rw-r--r--drivers/usb/serial/symbolserial.c3
-rw-r--r--drivers/usb/serial/ti_usb_3410_5052.c8
-rw-r--r--drivers/usb/serial/visor.c7
-rw-r--r--drivers/usb/serial/whiteheat.c3
23 files changed, 58 insertions, 84 deletions
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c
index f8ce97d8b0ad..07956e4f494f 100644
--- a/drivers/usb/serial/ark3116.c
+++ b/drivers/usb/serial/ark3116.c
@@ -650,8 +650,7 @@ static void ark3116_read_int_callback(struct urb *urb)
650 /* 650 /*
651 * Not sure what this data meant... 651 * Not sure what this data meant...
652 */ 652 */
653 usb_serial_debug_data(debug, &port->dev, 653 usb_serial_debug_data(&port->dev, __func__,
654 __func__,
655 urb->actual_length, 654 urb->actual_length,
656 urb->transfer_buffer); 655 urb->transfer_buffer);
657 break; 656 break;
diff --git a/drivers/usb/serial/belkin_sa.c b/drivers/usb/serial/belkin_sa.c
index 6b7365632951..1eff29eae9e8 100644
--- a/drivers/usb/serial/belkin_sa.c
+++ b/drivers/usb/serial/belkin_sa.c
@@ -206,8 +206,7 @@ static void belkin_sa_read_int_callback(struct urb *urb)
206 goto exit; 206 goto exit;
207 } 207 }
208 208
209 usb_serial_debug_data(debug, &port->dev, __func__, 209 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data);
210 urb->actual_length, data);
211 210
212 /* Handle known interrupt data */ 211 /* Handle known interrupt data */
213 /* ignore data[0] and data[1] */ 212 /* ignore data[0] and data[1] */
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c
index 9aae210c378f..b07009b6f4e1 100644
--- a/drivers/usb/serial/ch341.c
+++ b/drivers/usb/serial/ch341.c
@@ -463,7 +463,7 @@ static void ch341_read_int_callback(struct urb *urb)
463 goto exit; 463 goto exit;
464 } 464 }
465 465
466 usb_serial_debug_data(debug, &port->dev, __func__, 466 usb_serial_debug_data(&port->dev, __func__,
467 urb->actual_length, urb->transfer_buffer); 467 urb->actual_length, urb->transfer_buffer);
468 468
469 if (actual_length >= 4) { 469 if (actual_length >= 4) {
diff --git a/drivers/usb/serial/cyberjack.c b/drivers/usb/serial/cyberjack.c
index 9c90575cf354..17066daeae46 100644
--- a/drivers/usb/serial/cyberjack.c
+++ b/drivers/usb/serial/cyberjack.c
@@ -222,8 +222,7 @@ static int cyberjack_write(struct tty_struct *tty,
222 /* Copy data */ 222 /* Copy data */
223 memcpy(priv->wrbuf + priv->wrfilled, buf, count); 223 memcpy(priv->wrbuf + priv->wrfilled, buf, count);
224 224
225 usb_serial_debug_data(debug, dev, __func__, count, 225 usb_serial_debug_data(dev, __func__, count, priv->wrbuf + priv->wrfilled);
226 priv->wrbuf + priv->wrfilled);
227 priv->wrfilled += count; 226 priv->wrfilled += count;
228 227
229 if (priv->wrfilled >= 3) { 228 if (priv->wrfilled >= 3) {
@@ -295,7 +294,7 @@ static void cyberjack_read_int_callback(struct urb *urb)
295 if (status) 294 if (status)
296 return; 295 return;
297 296
298 usb_serial_debug_data(debug, dev, __func__, urb->actual_length, data); 297 usb_serial_debug_data(dev, __func__, urb->actual_length, data);
299 298
300 /* React only to interrupts signaling a bulk_in transfer */ 299 /* React only to interrupts signaling a bulk_in transfer */
301 if (urb->actual_length == 4 && data[0] == 0x01) { 300 if (urb->actual_length == 4 && data[0] == 0x01) {
@@ -348,8 +347,7 @@ static void cyberjack_read_bulk_callback(struct urb *urb)
348 int result; 347 int result;
349 int status = urb->status; 348 int status = urb->status;
350 349
351 usb_serial_debug_data(debug, &port->dev, __func__, 350 usb_serial_debug_data(dev, __func__, urb->actual_length, data);
352 urb->actual_length, data);
353 if (status) { 351 if (status) {
354 dev_dbg(dev, "%s - nonzero read bulk status received: %d\n", 352 dev_dbg(dev, "%s - nonzero read bulk status received: %d\n",
355 __func__, status); 353 __func__, status);
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c
index 872a45dbcfd0..19f22e968d13 100644
--- a/drivers/usb/serial/cypress_m8.c
+++ b/drivers/usb/serial/cypress_m8.c
@@ -769,9 +769,8 @@ send:
769 actual_size = count + 769 actual_size = count +
770 (priv->pkt_fmt == packet_format_1 ? 2 : 1); 770 (priv->pkt_fmt == packet_format_1 ? 2 : 1);
771 771
772 usb_serial_debug_data(debug, &port->dev, __func__, 772 usb_serial_debug_data(dev, __func__, port->interrupt_out_size,
773 port->interrupt_out_size, 773 port->interrupt_out_urb->transfer_buffer);
774 port->interrupt_out_urb->transfer_buffer);
775 774
776 usb_fill_int_urb(port->interrupt_out_urb, port->serial->dev, 775 usb_fill_int_urb(port->interrupt_out_urb, port->serial->dev,
777 usb_sndintpipe(port->serial->dev, port->interrupt_out_endpointAddress), 776 usb_sndintpipe(port->serial->dev, port->interrupt_out_endpointAddress),
@@ -1187,8 +1186,7 @@ static void cypress_read_int_callback(struct urb *urb)
1187 goto continue_read; 1186 goto continue_read;
1188 } 1187 }
1189 1188
1190 usb_serial_debug_data(debug, &port->dev, __func__, 1189 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data);
1191 urb->actual_length, data);
1192 1190
1193 spin_lock_irqsave(&priv->lock, flags); 1191 spin_lock_irqsave(&priv->lock, flags);
1194 /* check to see if status has changed */ 1192 /* check to see if status has changed */
diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c
index 499b15fd82f1..9413688613fc 100644
--- a/drivers/usb/serial/f81232.c
+++ b/drivers/usb/serial/f81232.c
@@ -85,7 +85,7 @@ static void f81232_read_int_callback(struct urb *urb)
85 goto exit; 85 goto exit;
86 } 86 }
87 87
88 usb_serial_debug_data(debug, &port->dev, __func__, 88 usb_serial_debug_data(&port->dev, __func__,
89 urb->actual_length, urb->transfer_buffer); 89 urb->actual_length, urb->transfer_buffer);
90 90
91 f81232_update_line_status(port, data, actual_length); 91 f81232_update_line_status(port, data, actual_length);
diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c
index 11029dfe48ce..0e406102757b 100644
--- a/drivers/usb/serial/garmin_gps.c
+++ b/drivers/usb/serial/garmin_gps.c
@@ -258,10 +258,7 @@ static void send_to_tty(struct usb_serial_port *port,
258 struct tty_struct *tty = tty_port_tty_get(&port->port); 258 struct tty_struct *tty = tty_port_tty_get(&port->port);
259 259
260 if (tty && actual_length) { 260 if (tty && actual_length) {
261 261 usb_serial_debug_data(&port->dev, __func__, actual_length, data);
262 usb_serial_debug_data(debug, &port->dev,
263 __func__, actual_length, data);
264
265 tty_insert_flip_string(tty, data, actual_length); 262 tty_insert_flip_string(tty, data, actual_length);
266 tty_flip_buffer_push(tty); 263 tty_flip_buffer_push(tty);
267 } 264 }
@@ -410,8 +407,8 @@ static int gsp_rec_packet(struct garmin_data *garmin_data_p, int count)
410 int pktid = recpkt[0]; 407 int pktid = recpkt[0];
411 int size = recpkt[1]; 408 int size = recpkt[1];
412 409
413 usb_serial_debug_data(debug, &garmin_data_p->port->dev, 410 usb_serial_debug_data(&garmin_data_p->port->dev, __func__,
414 __func__, count-GSP_INITIAL_OFFSET, recpkt); 411 count-GSP_INITIAL_OFFSET, recpkt);
415 412
416 if (size != (count-GSP_INITIAL_OFFSET-3)) { 413 if (size != (count-GSP_INITIAL_OFFSET-3)) {
417 dev_dbg(dev, "%s - invalid size, expected %d bytes, got %d\n", 414 dev_dbg(dev, "%s - invalid size, expected %d bytes, got %d\n",
@@ -642,8 +639,8 @@ static int gsp_send(struct garmin_data *garmin_data_p,
642 639
643 /* garmin_data_p->outbuffer now contains a complete packet */ 640 /* garmin_data_p->outbuffer now contains a complete packet */
644 641
645 usb_serial_debug_data(debug, &garmin_data_p->port->dev, 642 usb_serial_debug_data(&garmin_data_p->port->dev, __func__, k,
646 __func__, k, garmin_data_p->outbuffer); 643 garmin_data_p->outbuffer);
647 644
648 garmin_data_p->outsize = 0; 645 garmin_data_p->outsize = 0;
649 646
@@ -1038,7 +1035,7 @@ static int garmin_write_bulk(struct usb_serial_port *port,
1038 1035
1039 memcpy(buffer, buf, count); 1036 memcpy(buffer, buf, count);
1040 1037
1041 usb_serial_debug_data(debug, &port->dev, __func__, count, buffer); 1038 usb_serial_debug_data(&port->dev, __func__, count, buffer);
1042 1039
1043 usb_fill_bulk_urb(urb, serial->dev, 1040 usb_fill_bulk_urb(urb, serial->dev,
1044 usb_sndbulkpipe(serial->dev, 1041 usb_sndbulkpipe(serial->dev,
@@ -1084,7 +1081,7 @@ static int garmin_write(struct tty_struct *tty, struct usb_serial_port *port,
1084 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port); 1081 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port);
1085 __le32 *privpkt = (__le32 *)garmin_data_p->privpkt; 1082 __le32 *privpkt = (__le32 *)garmin_data_p->privpkt;
1086 1083
1087 usb_serial_debug_data(debug, dev, __func__, count, buf); 1084 usb_serial_debug_data(dev, __func__, count, buf);
1088 1085
1089 if (garmin_data_p->state == STATE_RESET) 1086 if (garmin_data_p->state == STATE_RESET)
1090 return -EIO; 1087 return -EIO;
@@ -1225,8 +1222,7 @@ static void garmin_read_bulk_callback(struct urb *urb)
1225 return; 1222 return;
1226 } 1223 }
1227 1224
1228 usb_serial_debug_data(debug, &port->dev, 1225 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data);
1229 __func__, urb->actual_length, data);
1230 1226
1231 garmin_read_process(garmin_data_p, data, urb->actual_length, 1); 1227 garmin_read_process(garmin_data_p, data, urb->actual_length, 1);
1232 1228
@@ -1284,8 +1280,8 @@ static void garmin_read_int_callback(struct urb *urb)
1284 return; 1280 return;
1285 } 1281 }
1286 1282
1287 usb_serial_debug_data(debug, &port->dev, __func__, 1283 usb_serial_debug_data(&port->dev, __func__, urb->actual_length,
1288 urb->actual_length, urb->transfer_buffer); 1284 urb->transfer_buffer);
1289 1285
1290 if (urb->actual_length == sizeof(GARMIN_BULK_IN_AVAIL_REPLY) && 1286 if (urb->actual_length == sizeof(GARMIN_BULK_IN_AVAIL_REPLY) &&
1291 0 == memcmp(data, GARMIN_BULK_IN_AVAIL_REPLY, 1287 0 == memcmp(data, GARMIN_BULK_IN_AVAIL_REPLY,
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c
index 9b026bf7afef..47e228030922 100644
--- a/drivers/usb/serial/generic.c
+++ b/drivers/usb/serial/generic.c
@@ -171,8 +171,7 @@ retry:
171 urb->transfer_buffer, 171 urb->transfer_buffer,
172 port->bulk_out_size); 172 port->bulk_out_size);
173 urb->transfer_buffer_length = count; 173 urb->transfer_buffer_length = count;
174 usb_serial_debug_data(debug, &port->dev, __func__, count, 174 usb_serial_debug_data(&port->dev, __func__, count, urb->transfer_buffer);
175 urb->transfer_buffer);
176 spin_lock_irqsave(&port->lock, flags); 175 spin_lock_irqsave(&port->lock, flags);
177 port->tx_bytes += count; 176 port->tx_bytes += count;
178 spin_unlock_irqrestore(&port->lock, flags); 177 spin_unlock_irqrestore(&port->lock, flags);
@@ -365,8 +364,7 @@ void usb_serial_generic_read_bulk_callback(struct urb *urb)
365 return; 364 return;
366 } 365 }
367 366
368 usb_serial_debug_data(debug, &port->dev, __func__, 367 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data);
369 urb->actual_length, data);
370 port->serial->type->process_read_urb(urb); 368 port->serial->type->process_read_urb(urb);
371 369
372 /* Throttle the device if requested by tty */ 370 /* Throttle the device if requested by tty */
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c
index 1a826973017b..06159fd03777 100644
--- a/drivers/usb/serial/io_edgeport.c
+++ b/drivers/usb/serial/io_edgeport.c
@@ -599,7 +599,7 @@ static void edge_interrupt_callback(struct urb *urb)
599 599
600 /* process this interrupt-read even if there are no ports open */ 600 /* process this interrupt-read even if there are no ports open */
601 if (length) { 601 if (length) {
602 usb_serial_debug_data(debug, dev, __func__, length, data); 602 usb_serial_debug_data(dev, __func__, length, data);
603 603
604 if (length > 1) { 604 if (length > 1) {
605 bytes_avail = data[0] | (data[1] << 8); 605 bytes_avail = data[0] | (data[1] << 8);
@@ -705,7 +705,7 @@ static void edge_bulk_in_callback(struct urb *urb)
705 dev = &edge_serial->serial->dev->dev; 705 dev = &edge_serial->serial->dev->dev;
706 raw_data_length = urb->actual_length; 706 raw_data_length = urb->actual_length;
707 707
708 usb_serial_debug_data(debug, dev, __func__, raw_data_length, data); 708 usb_serial_debug_data(dev, __func__, raw_data_length, data);
709 709
710 spin_lock(&edge_serial->es_lock); 710 spin_lock(&edge_serial->es_lock);
711 711
@@ -1178,8 +1178,7 @@ static int edge_write(struct tty_struct *tty, struct usb_serial_port *port,
1178 1178
1179 /* now copy our data */ 1179 /* now copy our data */
1180 memcpy(&fifo->fifo[fifo->head], data, firsthalf); 1180 memcpy(&fifo->fifo[fifo->head], data, firsthalf);
1181 usb_serial_debug_data(debug, &port->dev, __func__, 1181 usb_serial_debug_data(&port->dev, __func__, firsthalf, &fifo->fifo[fifo->head]);
1182 firsthalf, &fifo->fifo[fifo->head]);
1183 1182
1184 /* update the index and size */ 1183 /* update the index and size */
1185 fifo->head += firsthalf; 1184 fifo->head += firsthalf;
@@ -1194,8 +1193,7 @@ static int edge_write(struct tty_struct *tty, struct usb_serial_port *port,
1194 if (secondhalf) { 1193 if (secondhalf) {
1195 dev_dbg(&port->dev, "%s - copy rest of data %d\n", __func__, secondhalf); 1194 dev_dbg(&port->dev, "%s - copy rest of data %d\n", __func__, secondhalf);
1196 memcpy(&fifo->fifo[fifo->head], &data[firsthalf], secondhalf); 1195 memcpy(&fifo->fifo[fifo->head], &data[firsthalf], secondhalf);
1197 usb_serial_debug_data(debug, &port->dev, __func__, 1196 usb_serial_debug_data(&port->dev, __func__, secondhalf, &fifo->fifo[fifo->head]);
1198 secondhalf, &fifo->fifo[fifo->head]);
1199 /* update the index and size */ 1197 /* update the index and size */
1200 fifo->count += secondhalf; 1198 fifo->count += secondhalf;
1201 fifo->head += secondhalf; 1199 fifo->head += secondhalf;
@@ -1312,8 +1310,7 @@ static void send_more_port_data(struct edgeport_serial *edge_serial,
1312 } 1310 }
1313 1311
1314 if (count) 1312 if (count)
1315 usb_serial_debug_data(debug, &edge_port->port->dev, 1313 usb_serial_debug_data(&edge_port->port->dev, __func__, count, &buffer[2]);
1316 __func__, count, &buffer[2]);
1317 1314
1318 /* fill up the urb with all of our data and submit it */ 1315 /* fill up the urb with all of our data and submit it */
1319 usb_fill_bulk_urb(urb, edge_serial->serial->dev, 1316 usb_fill_bulk_urb(urb, edge_serial->serial->dev,
@@ -2305,7 +2302,7 @@ static int write_cmd_usb(struct edgeport_port *edge_port,
2305 int status = 0; 2302 int status = 0;
2306 struct urb *urb; 2303 struct urb *urb;
2307 2304
2308 usb_serial_debug_data(debug, dev, __func__, length, buffer); 2305 usb_serial_debug_data(dev, __func__, length, buffer);
2309 2306
2310 /* Allocate our next urb */ 2307 /* Allocate our next urb */
2311 urb = usb_alloc_urb(0, GFP_ATOMIC); 2308 urb = usb_alloc_urb(0, GFP_ATOMIC);
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index 54916d724145..c6b82833a157 100644
--- a/drivers/usb/serial/io_ti.c
+++ b/drivers/usb/serial/io_ti.c
@@ -321,8 +321,7 @@ static int read_download_mem(struct usb_device *dev, int start_address,
321 } 321 }
322 322
323 if (read_length > 1) 323 if (read_length > 1)
324 usb_serial_debug_data(debug, &dev->dev, __func__, 324 usb_serial_debug_data(&dev->dev, __func__, read_length, buffer);
325 read_length, buffer);
326 325
327 /* Update pointers/length */ 326 /* Update pointers/length */
328 start_address += read_length; 327 start_address += read_length;
@@ -359,8 +358,7 @@ static int read_boot_mem(struct edgeport_serial *serial,
359 358
360 dev_dbg(&serial->serial->dev->dev, "%s - start_address = %x, length = %d\n", 359 dev_dbg(&serial->serial->dev->dev, "%s - start_address = %x, length = %d\n",
361 __func__, start_address, length); 360 __func__, start_address, length);
362 usb_serial_debug_data(debug, &serial->serial->dev->dev, 361 usb_serial_debug_data(&serial->serial->dev->dev, __func__, length, buffer);
363 __func__, length, buffer);
364 362
365 serial->TiReadI2C = 1; 363 serial->TiReadI2C = 1;
366 364
@@ -398,8 +396,7 @@ static int write_boot_mem(struct edgeport_serial *serial,
398 } 396 }
399 397
400 dev_dbg(&serial->serial->dev->dev, "%s - start_sddr = %x, length = %d\n", __func__, start_address, length); 398 dev_dbg(&serial->serial->dev->dev, "%s - start_sddr = %x, length = %d\n", __func__, start_address, length);
401 usb_serial_debug_data(debug, &serial->serial->dev->dev, 399 usb_serial_debug_data(&serial->serial->dev->dev, __func__, length, buffer);
402 __func__, length, buffer);
403 400
404 return status; 401 return status;
405} 402}
@@ -425,7 +422,7 @@ static int write_i2c_mem(struct edgeport_serial *serial,
425 422
426 dev_dbg(dev, "%s - BytesInFirstPage Addr = %x, length = %d\n", 423 dev_dbg(dev, "%s - BytesInFirstPage Addr = %x, length = %d\n",
427 __func__, start_address, write_length); 424 __func__, start_address, write_length);
428 usb_serial_debug_data(debug, dev, __func__, write_length, buffer); 425 usb_serial_debug_data(dev, __func__, write_length, buffer);
429 426
430 /* Write first page */ 427 /* Write first page */
431 be_start_address = cpu_to_be16(start_address); 428 be_start_address = cpu_to_be16(start_address);
@@ -452,7 +449,7 @@ static int write_i2c_mem(struct edgeport_serial *serial,
452 449
453 dev_dbg(dev, "%s - Page Write Addr = %x, length = %d\n", 450 dev_dbg(dev, "%s - Page Write Addr = %x, length = %d\n",
454 __func__, start_address, write_length); 451 __func__, start_address, write_length);
455 usb_serial_debug_data(debug, dev, __func__, write_length, buffer); 452 usb_serial_debug_data(dev, __func__, write_length, buffer);
456 453
457 /* Write next page */ 454 /* Write next page */
458 be_start_address = cpu_to_be16(start_address); 455 be_start_address = cpu_to_be16(start_address);
@@ -1622,7 +1619,7 @@ static void edge_interrupt_callback(struct urb *urb)
1622 } 1619 }
1623 1620
1624 dev = &edge_serial->serial->dev->dev; 1621 dev = &edge_serial->serial->dev->dev;
1625 usb_serial_debug_data(debug, dev, __func__, length, data); 1622 usb_serial_debug_data(dev, __func__, length, data);
1626 1623
1627 if (length != 2) { 1624 if (length != 2) {
1628 dev_dbg(dev, "%s - expecting packet of size 2, got %d\n", __func__, length); 1625 dev_dbg(dev, "%s - expecting packet of size 2, got %d\n", __func__, length);
@@ -1726,7 +1723,7 @@ static void edge_bulk_in_callback(struct urb *urb)
1726 1723
1727 tty = tty_port_tty_get(&edge_port->port->port); 1724 tty = tty_port_tty_get(&edge_port->port->port);
1728 if (tty && urb->actual_length) { 1725 if (tty && urb->actual_length) {
1729 usb_serial_debug_data(debug, dev, __func__, urb->actual_length, data); 1726 usb_serial_debug_data(dev, __func__, urb->actual_length, data);
1730 if (edge_port->close_pending) 1727 if (edge_port->close_pending)
1731 dev_dbg(dev, "%s - close pending, dropping data on the floor\n", 1728 dev_dbg(dev, "%s - close pending, dropping data on the floor\n",
1732 __func__); 1729 __func__);
@@ -2059,8 +2056,7 @@ static void edge_send(struct tty_struct *tty)
2059 2056
2060 spin_unlock_irqrestore(&edge_port->ep_lock, flags); 2057 spin_unlock_irqrestore(&edge_port->ep_lock, flags);
2061 2058
2062 usb_serial_debug_data(debug, &port->dev, __func__, count, 2059 usb_serial_debug_data(&port->dev, __func__, count, port->write_urb->transfer_buffer);
2063 port->write_urb->transfer_buffer);
2064 2060
2065 /* set up our urb */ 2061 /* set up our urb */
2066 port->write_urb->transfer_buffer_length = count; 2062 port->write_urb->transfer_buffer_length = count;
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c
index a2f72308050b..33d7e18fb012 100644
--- a/drivers/usb/serial/kobil_sct.c
+++ b/drivers/usb/serial/kobil_sct.c
@@ -392,8 +392,7 @@ static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port,
392 392
393 /* Copy data to buffer */ 393 /* Copy data to buffer */
394 memcpy(priv->buf + priv->filled, buf, count); 394 memcpy(priv->buf + priv->filled, buf, count);
395 usb_serial_debug_data(debug, &port->dev, __func__, count, 395 usb_serial_debug_data(&port->dev, __func__, count, priv->buf + priv->filled);
396 priv->buf + priv->filled);
397 priv->filled = priv->filled + count; 396 priv->filled = priv->filled + count;
398 397
399 /* only send complete block. TWIN, KAAN SIM and adapter K 398 /* only send complete block. TWIN, KAAN SIM and adapter K
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c
index ab8f9ff75abd..ef773babc37c 100644
--- a/drivers/usb/serial/mct_u232.c
+++ b/drivers/usb/serial/mct_u232.c
@@ -553,8 +553,7 @@ static void mct_u232_read_int_callback(struct urb *urb)
553 goto exit; 553 goto exit;
554 } 554 }
555 555
556 usb_serial_debug_data(debug, &port->dev, __func__, 556 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data);
557 urb->actual_length, data);
558 557
559 /* 558 /*
560 * Work-a-round: handle the 'usual' bulk-in pipe here 559 * Work-a-round: handle the 'usual' bulk-in pipe here
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c
index 192191ca1d37..049bf6fa283c 100644
--- a/drivers/usb/serial/mos7720.c
+++ b/drivers/usb/serial/mos7720.c
@@ -1266,7 +1266,7 @@ static int mos7720_write(struct tty_struct *tty, struct usb_serial_port *port,
1266 transfer_size = min(count, URB_TRANSFER_BUFFER_SIZE); 1266 transfer_size = min(count, URB_TRANSFER_BUFFER_SIZE);
1267 1267
1268 memcpy(urb->transfer_buffer, current_position, transfer_size); 1268 memcpy(urb->transfer_buffer, current_position, transfer_size);
1269 usb_serial_debug_data(debug, &port->dev, __func__, transfer_size, 1269 usb_serial_debug_data(&port->dev, __func__, transfer_size,
1270 urb->transfer_buffer); 1270 urb->transfer_buffer);
1271 1271
1272 /* fill urb with data and submit */ 1272 /* fill urb with data and submit */
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
index ffbe4eed2057..a4880d6198cc 100644
--- a/drivers/usb/serial/mos7840.c
+++ b/drivers/usb/serial/mos7840.c
@@ -796,7 +796,7 @@ static void mos7840_bulk_in_callback(struct urb *urb)
796 } 796 }
797 797
798 data = urb->transfer_buffer; 798 data = urb->transfer_buffer;
799 usb_serial_debug_data(debug, &port->dev, __func__, urb->actual_length, data); 799 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data);
800 800
801 if (urb->actual_length) { 801 if (urb->actual_length) {
802 tty = tty_port_tty_get(&mos7840_port->port->port); 802 tty = tty_port_tty_get(&mos7840_port->port->port);
diff --git a/drivers/usb/serial/navman.c b/drivers/usb/serial/navman.c
index d95452cc076d..e0b4d4f4a781 100644
--- a/drivers/usb/serial/navman.c
+++ b/drivers/usb/serial/navman.c
@@ -55,8 +55,7 @@ static void navman_read_int_callback(struct urb *urb)
55 goto exit; 55 goto exit;
56 } 56 }
57 57
58 usb_serial_debug_data(debug, &port->dev, __func__, 58 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data);
59 urb->actual_length, data);
60 59
61 tty = tty_port_tty_get(&port->port); 60 tty = tty_port_tty_get(&port->port);
62 if (tty && urb->actual_length) { 61 if (tty && urb->actual_length) {
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c
index f524cd910e2c..7e81ed0c79ca 100644
--- a/drivers/usb/serial/omninet.c
+++ b/drivers/usb/serial/omninet.c
@@ -228,8 +228,8 @@ static int omninet_write(struct tty_struct *tty, struct usb_serial_port *port,
228 memcpy(wport->write_urb->transfer_buffer + OMNINET_DATAOFFSET, 228 memcpy(wport->write_urb->transfer_buffer + OMNINET_DATAOFFSET,
229 buf, count); 229 buf, count);
230 230
231 usb_serial_debug_data(debug, &port->dev, __func__, count, 231 usb_serial_debug_data(&port->dev, __func__, count,
232 wport->write_urb->transfer_buffer); 232 wport->write_urb->transfer_buffer);
233 233
234 header->oh_seq = od->od_outseq++; 234 header->oh_seq = od->od_outseq++;
235 header->oh_len = count; 235 header->oh_len = count;
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c
index 6f05d642362f..d7507726744d 100644
--- a/drivers/usb/serial/opticon.c
+++ b/drivers/usb/serial/opticon.c
@@ -87,8 +87,7 @@ static void opticon_read_bulk_callback(struct urb *urb)
87 goto exit; 87 goto exit;
88 } 88 }
89 89
90 usb_serial_debug_data(debug, &port->dev, __func__, urb->actual_length, 90 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data);
91 data);
92 91
93 if (urb->actual_length > 2) { 92 if (urb->actual_length > 2) {
94 data_length = urb->actual_length - 2; 93 data_length = urb->actual_length - 2;
@@ -276,7 +275,7 @@ static int opticon_write(struct tty_struct *tty, struct usb_serial_port *port,
276 275
277 memcpy(buffer, buf, count); 276 memcpy(buffer, buf, count);
278 277
279 usb_serial_debug_data(debug, &port->dev, __func__, count, buffer); 278 usb_serial_debug_data(&port->dev, __func__, count, buffer);
280 279
281 /* The conncected devices do not have a bulk write endpoint, 280 /* The conncected devices do not have a bulk write endpoint,
282 * to transmit data to de barcode device the control endpoint is used */ 281 * to transmit data to de barcode device the control endpoint is used */
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index 13b8dd6481f5..5eccbe5b81b5 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
@@ -741,7 +741,7 @@ static void pl2303_read_int_callback(struct urb *urb)
741 goto exit; 741 goto exit;
742 } 742 }
743 743
744 usb_serial_debug_data(debug, &port->dev, __func__, 744 usb_serial_debug_data(&port->dev, __func__,
745 urb->actual_length, urb->transfer_buffer); 745 urb->actual_length, urb->transfer_buffer);
746 746
747 pl2303_update_line_status(port, data, actual_length); 747 pl2303_update_line_status(port, data, actual_length);
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c
index 0274710cced5..400bb131fb97 100644
--- a/drivers/usb/serial/sierra.c
+++ b/drivers/usb/serial/sierra.c
@@ -518,7 +518,7 @@ static int sierra_write(struct tty_struct *tty, struct usb_serial_port *port,
518 518
519 memcpy(buffer, buf, writesize); 519 memcpy(buffer, buf, writesize);
520 520
521 usb_serial_debug_data(debug, &port->dev, __func__, writesize, buffer); 521 usb_serial_debug_data(&port->dev, __func__, writesize, buffer);
522 522
523 usb_fill_bulk_urb(urb, serial->dev, 523 usb_fill_bulk_urb(urb, serial->dev,
524 usb_sndbulkpipe(serial->dev, 524 usb_sndbulkpipe(serial->dev,
@@ -595,8 +595,8 @@ static void sierra_indat_callback(struct urb *urb)
595 tty_flip_buffer_push(tty); 595 tty_flip_buffer_push(tty);
596 596
597 tty_kref_put(tty); 597 tty_kref_put(tty);
598 usb_serial_debug_data(debug, &port->dev, 598 usb_serial_debug_data(&port->dev, __func__,
599 __func__, urb->actual_length, data); 599 urb->actual_length, data);
600 } 600 }
601 } else { 601 } else {
602 dev_dbg(&port->dev, "%s: empty read urb" 602 dev_dbg(&port->dev, "%s: empty read urb"
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c
index e53d2aac35c5..d0f1c21dd91c 100644
--- a/drivers/usb/serial/symbolserial.c
+++ b/drivers/usb/serial/symbolserial.c
@@ -71,8 +71,7 @@ static void symbol_int_callback(struct urb *urb)
71 goto exit; 71 goto exit;
72 } 72 }
73 73
74 usb_serial_debug_data(debug, &port->dev, __func__, urb->actual_length, 74 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data);
75 data);
76 75
77 if (urb->actual_length > 1) { 76 if (urb->actual_length > 1) {
78 data_length = urb->actual_length - 1; 77 data_length = urb->actual_length - 1;
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c
index 0b113fa48eed..5dbb74107671 100644
--- a/drivers/usb/serial/ti_usb_3410_5052.c
+++ b/drivers/usb/serial/ti_usb_3410_5052.c
@@ -1161,8 +1161,8 @@ static void ti_bulk_in_callback(struct urb *urb)
1161 tty = tty_port_tty_get(&port->port); 1161 tty = tty_port_tty_get(&port->port);
1162 if (tty) { 1162 if (tty) {
1163 if (urb->actual_length) { 1163 if (urb->actual_length) {
1164 usb_serial_debug_data(debug, dev, __func__, 1164 usb_serial_debug_data(dev, __func__, urb->actual_length,
1165 urb->actual_length, urb->transfer_buffer); 1165 urb->transfer_buffer);
1166 1166
1167 if (!tport->tp_is_open) 1167 if (!tport->tp_is_open)
1168 dev_dbg(dev, "%s - port closed, dropping data\n", 1168 dev_dbg(dev, "%s - port closed, dropping data\n",
@@ -1267,8 +1267,8 @@ static void ti_send(struct ti_port *tport)
1267 1267
1268 spin_unlock_irqrestore(&tport->tp_lock, flags); 1268 spin_unlock_irqrestore(&tport->tp_lock, flags);
1269 1269
1270 usb_serial_debug_data(debug, &port->dev, __func__, count, 1270 usb_serial_debug_data(&port->dev, __func__, count,
1271 port->write_urb->transfer_buffer); 1271 port->write_urb->transfer_buffer);
1272 1272
1273 usb_fill_bulk_urb(port->write_urb, port->serial->dev, 1273 usb_fill_bulk_urb(port->write_urb, port->serial->dev,
1274 usb_sndbulkpipe(port->serial->dev, 1274 usb_sndbulkpipe(port->serial->dev,
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c
index f253c91383da..97fe0059ed8b 100644
--- a/drivers/usb/serial/visor.c
+++ b/drivers/usb/serial/visor.c
@@ -310,8 +310,8 @@ static void visor_read_int_callback(struct urb *urb)
310 * Rumor has it this endpoint is used to notify when data 310 * Rumor has it this endpoint is used to notify when data
311 * is ready to be read from the bulk ones. 311 * is ready to be read from the bulk ones.
312 */ 312 */
313 usb_serial_debug_data(debug, &port->dev, __func__, 313 usb_serial_debug_data(&port->dev, __func__, urb->actual_length,
314 urb->actual_length, urb->transfer_buffer); 314 urb->transfer_buffer);
315 315
316exit: 316exit:
317 result = usb_submit_urb(urb, GFP_ATOMIC); 317 result = usb_submit_urb(urb, GFP_ATOMIC);
@@ -443,8 +443,7 @@ static int palm_os_4_probe(struct usb_serial *serial,
443 dev_err(dev, "%s - error %d getting connection info\n", 443 dev_err(dev, "%s - error %d getting connection info\n",
444 __func__, retval); 444 __func__, retval);
445 else 445 else
446 usb_serial_debug_data(debug, &serial->dev->dev, __func__, 446 usb_serial_debug_data(dev, __func__, retval, transfer_buffer);
447 retval, transfer_buffer);
448 447
449 kfree(transfer_buffer); 448 kfree(transfer_buffer);
450 return 0; 449 return 0;
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c
index d9456b4e5d6e..64d3840673aa 100644
--- a/drivers/usb/serial/whiteheat.c
+++ b/drivers/usb/serial/whiteheat.c
@@ -607,8 +607,7 @@ static void command_port_read_callback(struct urb *urb)
607 return; 607 return;
608 } 608 }
609 609
610 usb_serial_debug_data(debug, &command_port->dev, 610 usb_serial_debug_data(&command_port->dev, __func__, urb->actual_length, data);
611 __func__, urb->actual_length, data);
612 611
613 if (data[0] == WHITEHEAT_CMD_COMPLETE) { 612 if (data[0] == WHITEHEAT_CMD_COMPLETE) {
614 command_info->command_finished = WHITEHEAT_CMD_COMPLETE; 613 command_info->command_finished = WHITEHEAT_CMD_COMPLETE;