diff options
author | Oliver Neukum <oliver@neukum.org> | 2009-09-08 23:51:28 +0200 |
---|---|---|
committer | Alan Tull <r80115@freescale.com> | 2010-09-25 09:50:25 -0500 |
commit | 072ec1840763f9e4d7ea37a08531dc4c1faec85a (patch) | |
tree | 623dc6d9c8b7923f84950381a56de34614bdb8dc /drivers/usb | |
parent | a2ebe76cc916bad2b1fae12985fbc3c544bb0dd9 (diff) |
USB: fix cdc-acm regression in open
cdc-acm needs to set a flag during open to tell the
tty layer that the device is initialized
Signed-off-by: Oliver Neukum <oliver@neukum.org>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Paul Martin <pm@debian.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/class/cdc-acm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 162c95a088ed..40f6d8575e0b 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -596,6 +596,7 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp) acm->throttle = 0; + tasklet_schedule(&acm->urb_task); set_bit(ASYNCB_INITIALIZED, &acm->port.flags); rv = tty_port_block_til_ready(&acm->port, tty, filp); tasklet_schedule(&acm->urb_task); |