aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/pl2303.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/pl2303.c')
-rw-r--r--drivers/usb/serial/pl2303.c106
1 files changed, 53 insertions, 53 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index 1fbb4dbdf23d..2b4ab371c762 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
@@ -410,7 +410,7 @@ static int set_control_lines(struct usb_device *dev, u8 value)
410 retval = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), 410 retval = usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
411 SET_CONTROL_REQUEST, SET_CONTROL_REQUEST_TYPE, 411 SET_CONTROL_REQUEST, SET_CONTROL_REQUEST_TYPE,
412 value, 0, NULL, 0, 100); 412 value, 0, NULL, 0, 100);
413 dbg("%s - value = %d, retval = %d", __FUNCTION__, value, retval); 413 dbg("%s - value = %d, retval = %d", __func__, value, retval);
414 return retval; 414 return retval;
415} 415}
416 416
@@ -420,7 +420,7 @@ static void pl2303_send(struct usb_serial_port *port)
420 struct pl2303_private *priv = usb_get_serial_port_data(port); 420 struct pl2303_private *priv = usb_get_serial_port_data(port);
421 unsigned long flags; 421 unsigned long flags;
422 422
423 dbg("%s - port %d", __FUNCTION__, port->number); 423 dbg("%s - port %d", __func__, port->number);
424 424
425 spin_lock_irqsave(&priv->lock, flags); 425 spin_lock_irqsave(&priv->lock, flags);
426 426
@@ -441,7 +441,7 @@ static void pl2303_send(struct usb_serial_port *port)
441 441
442 spin_unlock_irqrestore(&priv->lock, flags); 442 spin_unlock_irqrestore(&priv->lock, flags);
443 443
444 usb_serial_debug_data(debug, &port->dev, __FUNCTION__, count, 444 usb_serial_debug_data(debug, &port->dev, __func__, count,
445 port->write_urb->transfer_buffer); 445 port->write_urb->transfer_buffer);
446 446
447 port->write_urb->transfer_buffer_length = count; 447 port->write_urb->transfer_buffer_length = count;
@@ -449,7 +449,7 @@ static void pl2303_send(struct usb_serial_port *port)
449 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); 449 result = usb_submit_urb(port->write_urb, GFP_ATOMIC);
450 if (result) { 450 if (result) {
451 dev_err(&port->dev, "%s - failed submitting write urb," 451 dev_err(&port->dev, "%s - failed submitting write urb,"
452 " error %d\n", __FUNCTION__, result); 452 " error %d\n", __func__, result);
453 priv->write_urb_in_use = 0; 453 priv->write_urb_in_use = 0;
454 // TODO: reschedule pl2303_send 454 // TODO: reschedule pl2303_send
455 } 455 }
@@ -463,7 +463,7 @@ static int pl2303_write(struct usb_serial_port *port, const unsigned char *buf,
463 struct pl2303_private *priv = usb_get_serial_port_data(port); 463 struct pl2303_private *priv = usb_get_serial_port_data(port);
464 unsigned long flags; 464 unsigned long flags;
465 465
466 dbg("%s - port %d, %d bytes", __FUNCTION__, port->number, count); 466 dbg("%s - port %d, %d bytes", __func__, port->number, count);
467 467
468 if (!count) 468 if (!count)
469 return count; 469 return count;
@@ -483,13 +483,13 @@ static int pl2303_write_room(struct usb_serial_port *port)
483 int room = 0; 483 int room = 0;
484 unsigned long flags; 484 unsigned long flags;
485 485
486 dbg("%s - port %d", __FUNCTION__, port->number); 486 dbg("%s - port %d", __func__, port->number);
487 487
488 spin_lock_irqsave(&priv->lock, flags); 488 spin_lock_irqsave(&priv->lock, flags);
489 room = pl2303_buf_space_avail(priv->buf); 489 room = pl2303_buf_space_avail(priv->buf);
490 spin_unlock_irqrestore(&priv->lock, flags); 490 spin_unlock_irqrestore(&priv->lock, flags);
491 491
492 dbg("%s - returns %d", __FUNCTION__, room); 492 dbg("%s - returns %d", __func__, room);
493 return room; 493 return room;
494} 494}
495 495
@@ -499,13 +499,13 @@ static int pl2303_chars_in_buffer(struct usb_serial_port *port)
499 int chars = 0; 499 int chars = 0;
500 unsigned long flags; 500 unsigned long flags;
501 501
502 dbg("%s - port %d", __FUNCTION__, port->number); 502 dbg("%s - port %d", __func__, port->number);
503 503
504 spin_lock_irqsave(&priv->lock, flags); 504 spin_lock_irqsave(&priv->lock, flags);
505 chars = pl2303_buf_data_avail(priv->buf); 505 chars = pl2303_buf_data_avail(priv->buf);
506 spin_unlock_irqrestore(&priv->lock, flags); 506 spin_unlock_irqrestore(&priv->lock, flags);
507 507
508 dbg("%s - returns %d", __FUNCTION__, chars); 508 dbg("%s - returns %d", __func__, chars);
509 return chars; 509 return chars;
510} 510}
511 511
@@ -521,7 +521,7 @@ static void pl2303_set_termios(struct usb_serial_port *port,
521 int i; 521 int i;
522 u8 control; 522 u8 control;
523 523
524 dbg("%s - port %d", __FUNCTION__, port->number); 524 dbg("%s - port %d", __func__, port->number);
525 525
526 spin_lock_irqsave(&priv->lock, flags); 526 spin_lock_irqsave(&priv->lock, flags);
527 if (!priv->termios_initialized) { 527 if (!priv->termios_initialized) {
@@ -545,7 +545,7 @@ static void pl2303_set_termios(struct usb_serial_port *port,
545 545
546 buf = kzalloc(7, GFP_KERNEL); 546 buf = kzalloc(7, GFP_KERNEL);
547 if (!buf) { 547 if (!buf) {
548 dev_err(&port->dev, "%s - out of memory.\n", __FUNCTION__); 548 dev_err(&port->dev, "%s - out of memory.\n", __func__);
549 return; 549 return;
550 } 550 }
551 551
@@ -563,11 +563,11 @@ static void pl2303_set_termios(struct usb_serial_port *port,
563 default: 563 default:
564 case CS8: buf[6] = 8; break; 564 case CS8: buf[6] = 8; break;
565 } 565 }
566 dbg("%s - data bits = %d", __FUNCTION__, buf[6]); 566 dbg("%s - data bits = %d", __func__, buf[6]);
567 } 567 }
568 568
569 baud = tty_get_baud_rate(port->tty);; 569 baud = tty_get_baud_rate(port->tty);;
570 dbg("%s - baud = %d", __FUNCTION__, baud); 570 dbg("%s - baud = %d", __func__, baud);
571 if (baud) { 571 if (baud) {
572 buf[0] = baud & 0xff; 572 buf[0] = baud & 0xff;
573 buf[1] = (baud >> 8) & 0xff; 573 buf[1] = (baud >> 8) & 0xff;
@@ -580,10 +580,10 @@ static void pl2303_set_termios(struct usb_serial_port *port,
580 /* For reference buf[4]=2 is 2 stop bits */ 580 /* For reference buf[4]=2 is 2 stop bits */
581 if (cflag & CSTOPB) { 581 if (cflag & CSTOPB) {
582 buf[4] = 2; 582 buf[4] = 2;
583 dbg("%s - stop bits = 2", __FUNCTION__); 583 dbg("%s - stop bits = 2", __func__);
584 } else { 584 } else {
585 buf[4] = 0; 585 buf[4] = 0;
586 dbg("%s - stop bits = 1", __FUNCTION__); 586 dbg("%s - stop bits = 1", __func__);
587 } 587 }
588 588
589 if (cflag & PARENB) { 589 if (cflag & PARENB) {
@@ -594,14 +594,14 @@ static void pl2303_set_termios(struct usb_serial_port *port,
594 /* For reference buf[5]=4 is space parity */ 594 /* For reference buf[5]=4 is space parity */
595 if (cflag & PARODD) { 595 if (cflag & PARODD) {
596 buf[5] = 1; 596 buf[5] = 1;
597 dbg("%s - parity = odd", __FUNCTION__); 597 dbg("%s - parity = odd", __func__);
598 } else { 598 } else {
599 buf[5] = 2; 599 buf[5] = 2;
600 dbg("%s - parity = even", __FUNCTION__); 600 dbg("%s - parity = even", __func__);
601 } 601 }
602 } else { 602 } else {
603 buf[5] = 0; 603 buf[5] = 0;
604 dbg("%s - parity = none", __FUNCTION__); 604 dbg("%s - parity = none", __func__);
605 } 605 }
606 606
607 i = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), 607 i = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
@@ -657,7 +657,7 @@ static void pl2303_close(struct usb_serial_port *port, struct file *filp)
657 long timeout; 657 long timeout;
658 wait_queue_t wait; 658 wait_queue_t wait;
659 659
660 dbg("%s - port %d", __FUNCTION__, port->number); 660 dbg("%s - port %d", __func__, port->number);
661 661
662 /* wait for data to drain from the buffer */ 662 /* wait for data to drain from the buffer */
663 spin_lock_irqsave(&priv->lock, flags); 663 spin_lock_irqsave(&priv->lock, flags);
@@ -695,7 +695,7 @@ static void pl2303_close(struct usb_serial_port *port, struct file *filp)
695 schedule_timeout_interruptible(timeout); 695 schedule_timeout_interruptible(timeout);
696 696
697 /* shutdown our urbs */ 697 /* shutdown our urbs */
698 dbg("%s - shutting down urbs", __FUNCTION__); 698 dbg("%s - shutting down urbs", __func__);
699 usb_kill_urb(port->write_urb); 699 usb_kill_urb(port->write_urb);
700 usb_kill_urb(port->read_urb); 700 usb_kill_urb(port->read_urb);
701 usb_kill_urb(port->interrupt_in_urb); 701 usb_kill_urb(port->interrupt_in_urb);
@@ -719,7 +719,7 @@ static int pl2303_open(struct usb_serial_port *port, struct file *filp)
719 struct pl2303_private *priv = usb_get_serial_port_data(port); 719 struct pl2303_private *priv = usb_get_serial_port_data(port);
720 int result; 720 int result;
721 721
722 dbg("%s - port %d", __FUNCTION__, port->number); 722 dbg("%s - port %d", __func__, port->number);
723 723
724 if (priv->type != HX) { 724 if (priv->type != HX) {
725 usb_clear_halt(serial->dev, port->write_urb->pipe); 725 usb_clear_halt(serial->dev, port->write_urb->pipe);
@@ -737,22 +737,22 @@ static int pl2303_open(struct usb_serial_port *port, struct file *filp)
737 737
738 //FIXME: need to assert RTS and DTR if CRTSCTS off 738 //FIXME: need to assert RTS and DTR if CRTSCTS off
739 739
740 dbg("%s - submitting read urb", __FUNCTION__); 740 dbg("%s - submitting read urb", __func__);
741 port->read_urb->dev = serial->dev; 741 port->read_urb->dev = serial->dev;
742 result = usb_submit_urb(port->read_urb, GFP_KERNEL); 742 result = usb_submit_urb(port->read_urb, GFP_KERNEL);
743 if (result) { 743 if (result) {
744 dev_err(&port->dev, "%s - failed submitting read urb," 744 dev_err(&port->dev, "%s - failed submitting read urb,"
745 " error %d\n", __FUNCTION__, result); 745 " error %d\n", __func__, result);
746 pl2303_close(port, NULL); 746 pl2303_close(port, NULL);
747 return -EPROTO; 747 return -EPROTO;
748 } 748 }
749 749
750 dbg("%s - submitting interrupt urb", __FUNCTION__); 750 dbg("%s - submitting interrupt urb", __func__);
751 port->interrupt_in_urb->dev = serial->dev; 751 port->interrupt_in_urb->dev = serial->dev;
752 result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); 752 result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
753 if (result) { 753 if (result) {
754 dev_err(&port->dev, "%s - failed submitting interrupt urb," 754 dev_err(&port->dev, "%s - failed submitting interrupt urb,"
755 " error %d\n", __FUNCTION__, result); 755 " error %d\n", __func__, result);
756 pl2303_close(port, NULL); 756 pl2303_close(port, NULL);
757 return -EPROTO; 757 return -EPROTO;
758 } 758 }
@@ -792,7 +792,7 @@ static int pl2303_tiocmget(struct usb_serial_port *port, struct file *file)
792 unsigned int status; 792 unsigned int status;
793 unsigned int result; 793 unsigned int result;
794 794
795 dbg("%s (%d)", __FUNCTION__, port->number); 795 dbg("%s (%d)", __func__, port->number);
796 796
797 if (!usb_get_intfdata(port->serial->interface)) 797 if (!usb_get_intfdata(port->serial->interface))
798 return -ENODEV; 798 return -ENODEV;
@@ -809,7 +809,7 @@ static int pl2303_tiocmget(struct usb_serial_port *port, struct file *file)
809 | ((status & UART_RING) ? TIOCM_RI : 0) 809 | ((status & UART_RING) ? TIOCM_RI : 0)
810 | ((status & UART_DCD) ? TIOCM_CD : 0); 810 | ((status & UART_DCD) ? TIOCM_CD : 0);
811 811
812 dbg("%s - result = %x", __FUNCTION__, result); 812 dbg("%s - result = %x", __func__, result);
813 813
814 return result; 814 return result;
815} 815}
@@ -853,15 +853,15 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg)
853static int pl2303_ioctl(struct usb_serial_port *port, struct file *file, 853static int pl2303_ioctl(struct usb_serial_port *port, struct file *file,
854 unsigned int cmd, unsigned long arg) 854 unsigned int cmd, unsigned long arg)
855{ 855{
856 dbg("%s (%d) cmd = 0x%04x", __FUNCTION__, port->number, cmd); 856 dbg("%s (%d) cmd = 0x%04x", __func__, port->number, cmd);
857 857
858 switch (cmd) { 858 switch (cmd) {
859 case TIOCMIWAIT: 859 case TIOCMIWAIT:
860 dbg("%s (%d) TIOCMIWAIT", __FUNCTION__, port->number); 860 dbg("%s (%d) TIOCMIWAIT", __func__, port->number);
861 return wait_modem_info(port, arg); 861 return wait_modem_info(port, arg);
862 862
863 default: 863 default:
864 dbg("%s not supported = 0x%04x", __FUNCTION__, cmd); 864 dbg("%s not supported = 0x%04x", __func__, cmd);
865 break; 865 break;
866 } 866 }
867 867
@@ -874,19 +874,19 @@ static void pl2303_break_ctl(struct usb_serial_port *port, int break_state)
874 u16 state; 874 u16 state;
875 int result; 875 int result;
876 876
877 dbg("%s - port %d", __FUNCTION__, port->number); 877 dbg("%s - port %d", __func__, port->number);
878 878
879 if (break_state == 0) 879 if (break_state == 0)
880 state = BREAK_OFF; 880 state = BREAK_OFF;
881 else 881 else
882 state = BREAK_ON; 882 state = BREAK_ON;
883 dbg("%s - turning break %s", __FUNCTION__, state==BREAK_OFF ? "off" : "on"); 883 dbg("%s - turning break %s", __func__, state==BREAK_OFF ? "off" : "on");
884 884
885 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), 885 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
886 BREAK_REQUEST, BREAK_REQUEST_TYPE, state, 886 BREAK_REQUEST, BREAK_REQUEST_TYPE, state,
887 0, NULL, 0, 100); 887 0, NULL, 0, 100);
888 if (result) 888 if (result)
889 dbg("%s - error sending break = %d", __FUNCTION__, result); 889 dbg("%s - error sending break = %d", __func__, result);
890} 890}
891 891
892static void pl2303_shutdown(struct usb_serial *serial) 892static void pl2303_shutdown(struct usb_serial *serial)
@@ -894,7 +894,7 @@ static void pl2303_shutdown(struct usb_serial *serial)
894 int i; 894 int i;
895 struct pl2303_private *priv; 895 struct pl2303_private *priv;
896 896
897 dbg("%s", __FUNCTION__); 897 dbg("%s", __func__);
898 898
899 for (i = 0; i < serial->num_ports; ++i) { 899 for (i = 0; i < serial->num_ports; ++i) {
900 priv = usb_get_serial_port_data(serial->port[i]); 900 priv = usb_get_serial_port_data(serial->port[i]);
@@ -949,7 +949,7 @@ static void pl2303_read_int_callback(struct urb *urb)
949 int status = urb->status; 949 int status = urb->status;
950 int retval; 950 int retval;
951 951
952 dbg("%s (%d)", __FUNCTION__, port->number); 952 dbg("%s (%d)", __func__, port->number);
953 953
954 switch (status) { 954 switch (status) {
955 case 0: 955 case 0:
@@ -959,16 +959,16 @@ static void pl2303_read_int_callback(struct urb *urb)
959 case -ENOENT: 959 case -ENOENT:
960 case -ESHUTDOWN: 960 case -ESHUTDOWN:
961 /* this urb is terminated, clean up */ 961 /* this urb is terminated, clean up */
962 dbg("%s - urb shutting down with status: %d", __FUNCTION__, 962 dbg("%s - urb shutting down with status: %d", __func__,
963 status); 963 status);
964 return; 964 return;
965 default: 965 default:
966 dbg("%s - nonzero urb status received: %d", __FUNCTION__, 966 dbg("%s - nonzero urb status received: %d", __func__,
967 status); 967 status);
968 goto exit; 968 goto exit;
969 } 969 }
970 970
971 usb_serial_debug_data(debug, &port->dev, __FUNCTION__, 971 usb_serial_debug_data(debug, &port->dev, __func__,
972 urb->actual_length, urb->transfer_buffer); 972 urb->actual_length, urb->transfer_buffer);
973 973
974 pl2303_update_line_status(port, data, actual_length); 974 pl2303_update_line_status(port, data, actual_length);
@@ -978,7 +978,7 @@ exit:
978 if (retval) 978 if (retval)
979 dev_err(&urb->dev->dev, 979 dev_err(&urb->dev->dev,
980 "%s - usb_submit_urb failed with result %d\n", 980 "%s - usb_submit_urb failed with result %d\n",
981 __FUNCTION__, retval); 981 __func__, retval);
982} 982}
983 983
984static void pl2303_read_bulk_callback(struct urb *urb) 984static void pl2303_read_bulk_callback(struct urb *urb)
@@ -994,32 +994,32 @@ static void pl2303_read_bulk_callback(struct urb *urb)
994 u8 line_status; 994 u8 line_status;
995 char tty_flag; 995 char tty_flag;
996 996
997 dbg("%s - port %d", __FUNCTION__, port->number); 997 dbg("%s - port %d", __func__, port->number);
998 998
999 if (status) { 999 if (status) {
1000 dbg("%s - urb status = %d", __FUNCTION__, status); 1000 dbg("%s - urb status = %d", __func__, status);
1001 if (!port->open_count) { 1001 if (!port->open_count) {
1002 dbg("%s - port is closed, exiting.", __FUNCTION__); 1002 dbg("%s - port is closed, exiting.", __func__);
1003 return; 1003 return;
1004 } 1004 }
1005 if (status == -EPROTO) { 1005 if (status == -EPROTO) {
1006 /* PL2303 mysteriously fails with -EPROTO reschedule 1006 /* PL2303 mysteriously fails with -EPROTO reschedule
1007 * the read */ 1007 * the read */
1008 dbg("%s - caught -EPROTO, resubmitting the urb", 1008 dbg("%s - caught -EPROTO, resubmitting the urb",
1009 __FUNCTION__); 1009 __func__);
1010 urb->dev = port->serial->dev; 1010 urb->dev = port->serial->dev;
1011 result = usb_submit_urb(urb, GFP_ATOMIC); 1011 result = usb_submit_urb(urb, GFP_ATOMIC);
1012 if (result) 1012 if (result)
1013 dev_err(&urb->dev->dev, "%s - failed" 1013 dev_err(&urb->dev->dev, "%s - failed"
1014 " resubmitting read urb, error %d\n", 1014 " resubmitting read urb, error %d\n",
1015 __FUNCTION__, result); 1015 __func__, result);
1016 return; 1016 return;
1017 } 1017 }
1018 dbg("%s - unable to handle the error, exiting.", __FUNCTION__); 1018 dbg("%s - unable to handle the error, exiting.", __func__);
1019 return; 1019 return;
1020 } 1020 }
1021 1021
1022 usb_serial_debug_data(debug, &port->dev, __FUNCTION__, 1022 usb_serial_debug_data(debug, &port->dev, __func__,
1023 urb->actual_length, data); 1023 urb->actual_length, data);
1024 1024
1025 /* get tty_flag from status */ 1025 /* get tty_flag from status */
@@ -1039,7 +1039,7 @@ static void pl2303_read_bulk_callback(struct urb *urb)
1039 tty_flag = TTY_PARITY; 1039 tty_flag = TTY_PARITY;
1040 else if (line_status & UART_FRAME_ERROR) 1040 else if (line_status & UART_FRAME_ERROR)
1041 tty_flag = TTY_FRAME; 1041 tty_flag = TTY_FRAME;
1042 dbg("%s - tty_flag = %d", __FUNCTION__, tty_flag); 1042 dbg("%s - tty_flag = %d", __func__, tty_flag);
1043 1043
1044 tty = port->tty; 1044 tty = port->tty;
1045 if (tty && urb->actual_length) { 1045 if (tty && urb->actual_length) {
@@ -1058,7 +1058,7 @@ static void pl2303_read_bulk_callback(struct urb *urb)
1058 result = usb_submit_urb(urb, GFP_ATOMIC); 1058 result = usb_submit_urb(urb, GFP_ATOMIC);
1059 if (result) 1059 if (result)
1060 dev_err(&urb->dev->dev, "%s - failed resubmitting" 1060 dev_err(&urb->dev->dev, "%s - failed resubmitting"
1061 " read urb, error %d\n", __FUNCTION__, result); 1061 " read urb, error %d\n", __func__, result);
1062 } 1062 }
1063 1063
1064 return; 1064 return;
@@ -1071,7 +1071,7 @@ static void pl2303_write_bulk_callback(struct urb *urb)
1071 int result; 1071 int result;
1072 int status = urb->status; 1072 int status = urb->status;
1073 1073
1074 dbg("%s - port %d", __FUNCTION__, port->number); 1074 dbg("%s - port %d", __func__, port->number);
1075 1075
1076 switch (status) { 1076 switch (status) {
1077 case 0: 1077 case 0:
@@ -1081,21 +1081,21 @@ static void pl2303_write_bulk_callback(struct urb *urb)
1081 case -ENOENT: 1081 case -ENOENT:
1082 case -ESHUTDOWN: 1082 case -ESHUTDOWN:
1083 /* this urb is terminated, clean up */ 1083 /* this urb is terminated, clean up */
1084 dbg("%s - urb shutting down with status: %d", __FUNCTION__, 1084 dbg("%s - urb shutting down with status: %d", __func__,
1085 status); 1085 status);
1086 priv->write_urb_in_use = 0; 1086 priv->write_urb_in_use = 0;
1087 return; 1087 return;
1088 default: 1088 default:
1089 /* error in the urb, so we have to resubmit it */ 1089 /* error in the urb, so we have to resubmit it */
1090 dbg("%s - Overflow in write", __FUNCTION__); 1090 dbg("%s - Overflow in write", __func__);
1091 dbg("%s - nonzero write bulk status received: %d", __FUNCTION__, 1091 dbg("%s - nonzero write bulk status received: %d", __func__,
1092 status); 1092 status);
1093 port->write_urb->transfer_buffer_length = 1; 1093 port->write_urb->transfer_buffer_length = 1;
1094 port->write_urb->dev = port->serial->dev; 1094 port->write_urb->dev = port->serial->dev;
1095 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); 1095 result = usb_submit_urb(port->write_urb, GFP_ATOMIC);
1096 if (result) 1096 if (result)
1097 dev_err(&urb->dev->dev, "%s - failed resubmitting write" 1097 dev_err(&urb->dev->dev, "%s - failed resubmitting write"
1098 " urb, error %d\n", __FUNCTION__, result); 1098 " urb, error %d\n", __func__, result);
1099 else 1099 else
1100 return; 1100 return;
1101 } 1101 }