diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-11-03 01:10:07 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-11-03 01:10:07 -0500 |
commit | 7a53c7f56bbfc9b0ef892e68f5cfae3d902544d1 (patch) | |
tree | 19dec256fc80ad06d631ece78b9eb68a457ce66b /drivers/usb/class/cdc-acm.c | |
parent | e57130698fe3dd2b7d617d90bbf86474473cb40c (diff) | |
parent | 012abeea669ea49636cf952d13298bb68654146a (diff) |
Merge commit 'v2.6.32-rc5' into for-linus
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
-rw-r--r-- | drivers/usb/class/cdc-acm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 2bfc41ece0e1..e3861b21e776 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c | |||
@@ -59,6 +59,7 @@ | |||
59 | #include <linux/init.h> | 59 | #include <linux/init.h> |
60 | #include <linux/slab.h> | 60 | #include <linux/slab.h> |
61 | #include <linux/tty.h> | 61 | #include <linux/tty.h> |
62 | #include <linux/serial.h> | ||
62 | #include <linux/tty_driver.h> | 63 | #include <linux/tty_driver.h> |
63 | #include <linux/tty_flip.h> | 64 | #include <linux/tty_flip.h> |
64 | #include <linux/module.h> | 65 | #include <linux/module.h> |
@@ -609,6 +610,7 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp) | |||
609 | acm->throttle = 0; | 610 | acm->throttle = 0; |
610 | 611 | ||
611 | tasklet_schedule(&acm->urb_task); | 612 | tasklet_schedule(&acm->urb_task); |
613 | set_bit(ASYNCB_INITIALIZED, &acm->port.flags); | ||
612 | rv = tty_port_block_til_ready(&acm->port, tty, filp); | 614 | rv = tty_port_block_til_ready(&acm->port, tty, filp); |
613 | done: | 615 | done: |
614 | mutex_unlock(&acm->mutex); | 616 | mutex_unlock(&acm->mutex); |
@@ -858,10 +860,7 @@ static void acm_tty_set_termios(struct tty_struct *tty, | |||
858 | if (!ACM_READY(acm)) | 860 | if (!ACM_READY(acm)) |
859 | return; | 861 | return; |
860 | 862 | ||
861 | /* FIXME: Needs to support the tty_baud interface */ | 863 | newline.dwDTERate = cpu_to_le32(tty_get_baud_rate(tty)); |
862 | /* FIXME: Broken on sparc */ | ||
863 | newline.dwDTERate = cpu_to_le32p(acm_tty_speed + | ||
864 | (termios->c_cflag & CBAUD & ~CBAUDEX) + (termios->c_cflag & CBAUDEX ? 15 : 0)); | ||
865 | newline.bCharFormat = termios->c_cflag & CSTOPB ? 2 : 0; | 864 | newline.bCharFormat = termios->c_cflag & CSTOPB ? 2 : 0; |
866 | newline.bParityType = termios->c_cflag & PARENB ? | 865 | newline.bParityType = termios->c_cflag & PARENB ? |
867 | (termios->c_cflag & PARODD ? 1 : 2) + | 866 | (termios->c_cflag & PARODD ? 1 : 2) + |