diff options
Diffstat (limited to 'drivers/usb/serial/sierra.c')
-rw-r--r-- | drivers/usb/serial/sierra.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index 9d11fe47633b..bcfe0ac1e221 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
@@ -556,7 +556,6 @@ static void sierra_instat_callback(struct urb *urb) | |||
556 | struct sierra_port_private *portdata = usb_get_serial_port_data(port); | 556 | struct sierra_port_private *portdata = usb_get_serial_port_data(port); |
557 | struct usb_serial *serial = port->serial; | 557 | struct usb_serial *serial = port->serial; |
558 | 558 | ||
559 | dev_dbg(&port->dev, "%s\n", __func__); | ||
560 | dev_dbg(&port->dev, "%s: urb %p port %p has data %p\n", __func__, | 559 | dev_dbg(&port->dev, "%s: urb %p port %p has data %p\n", __func__, |
561 | urb, port, portdata); | 560 | urb, port, portdata); |
562 | 561 | ||
@@ -600,12 +599,12 @@ static void sierra_instat_callback(struct urb *urb) | |||
600 | dev_dbg(&port->dev, "%s: error %d\n", __func__, status); | 599 | dev_dbg(&port->dev, "%s: error %d\n", __func__, status); |
601 | 600 | ||
602 | /* Resubmit urb so we continue receiving IRQ data */ | 601 | /* Resubmit urb so we continue receiving IRQ data */ |
603 | if (status != -ESHUTDOWN) { | 602 | if (port->port.count && status != -ESHUTDOWN && status != -ENOENT) { |
604 | urb->dev = serial->dev; | 603 | urb->dev = serial->dev; |
605 | err = usb_submit_urb(urb, GFP_ATOMIC); | 604 | err = usb_submit_urb(urb, GFP_ATOMIC); |
606 | if (err) | 605 | if (err) |
607 | dev_dbg(&port->dev, "%s: resubmit intr urb " | 606 | dev_err(&port->dev, "%s: resubmit intr urb " |
608 | "failed. (%d)\n", __func__, err); | 607 | "failed. (%d)\n", __func__, err); |
609 | } | 608 | } |
610 | } | 609 | } |
611 | 610 | ||