diff options
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/pl2303.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 7eab5d4cf3a8..461474176cfb 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -538,8 +538,10 @@ static int pl2303_open (struct usb_serial_port *port, struct file *filp) | |||
538 | 538 | ||
539 | dbg("%s - port %d", __FUNCTION__, port->number); | 539 | dbg("%s - port %d", __FUNCTION__, port->number); |
540 | 540 | ||
541 | usb_clear_halt(serial->dev, port->write_urb->pipe); | 541 | if (priv->type != HX) { |
542 | usb_clear_halt(serial->dev, port->read_urb->pipe); | 542 | usb_clear_halt(serial->dev, port->write_urb->pipe); |
543 | usb_clear_halt(serial->dev, port->read_urb->pipe); | ||
544 | } | ||
543 | 545 | ||
544 | buf = kmalloc(10, GFP_KERNEL); | 546 | buf = kmalloc(10, GFP_KERNEL); |
545 | if (buf==NULL) | 547 | if (buf==NULL) |