1 |
Author: mpagano |
2 |
Date: 2009-09-28 15:44:45 +0000 (Mon, 28 Sep 2009) |
3 |
New Revision: 1615 |
4 |
|
5 |
Added: |
6 |
genpatches-2.6/trunk/2.6.31/2300_cdc-acm-set-open-flag.patch |
7 |
Modified: |
8 |
genpatches-2.6/trunk/2.6.31/0000_README |
9 |
Log: |
10 |
Patch to fix cdc-acm regression in open |
11 |
|
12 |
Modified: genpatches-2.6/trunk/2.6.31/0000_README |
13 |
=================================================================== |
14 |
--- genpatches-2.6/trunk/2.6.31/0000_README 2009-09-27 19:18:15 UTC (rev 1614) |
15 |
+++ genpatches-2.6/trunk/2.6.31/0000_README 2009-09-28 15:44:45 UTC (rev 1615) |
16 |
@@ -43,6 +43,10 @@ |
17 |
From: http://www.kernel.org |
18 |
Desc: Linux 2.6.31.1 |
19 |
|
20 |
+Patch: 2300_cdc-acm-set-open-flag.patch |
21 |
+From: http://bugs.gentoo.org/show_bug.cgi?id=286761 |
22 |
+Desc: fix cdc-acm regression in open |
23 |
+ |
24 |
Patch: 2900_cc1-option-fPIC-check.patch |
25 |
From: http://bugs.gentoo.org/show_bug.cgi?id=282201 |
26 |
Desc: fix cc1 options check to ensure we do not use -fPIC when compiling |
27 |
|
28 |
Added: genpatches-2.6/trunk/2.6.31/2300_cdc-acm-set-open-flag.patch |
29 |
=================================================================== |
30 |
--- genpatches-2.6/trunk/2.6.31/2300_cdc-acm-set-open-flag.patch (rev 0) |
31 |
+++ genpatches-2.6/trunk/2.6.31/2300_cdc-acm-set-open-flag.patch 2009-09-28 15:44:45 UTC (rev 1615) |
32 |
@@ -0,0 +1,39 @@ |
33 |
+From: Oliver Neukum <oliver@××××××.org> |
34 |
+Date: Tue, 8 Sep 2009 21:51:28 +0000 (+0200) |
35 |
+Subject: USB: fix cdc-acm regression in open |
36 |
+X-Git-Tag: v2.6.32-rc1~174^2~135 |
37 |
+X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=7af25b4b34a2439020d78da765a3bed0ff73f25c |
38 |
+ |
39 |
+USB: fix cdc-acm regression in open |
40 |
+ |
41 |
+cdc-acm needs to set a flag during open to tell the |
42 |
+tty layer that the device is initialized |
43 |
+ |
44 |
+Signed-off-by: Oliver Neukum <oliver@××××××.org> |
45 |
+Cc: Marcel Holtmann <marcel@××××××××.org> |
46 |
+Cc: Paul Martin <pm@××××××.org> |
47 |
+Cc: stable <stable@××××××.org> |
48 |
+Signed-off-by: Greg Kroah-Hartman <gregkh@××××.de> |
49 |
+--- |
50 |
+ |
51 |
+diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c |
52 |
+index 85a1a55..e3861b2 100644 |
53 |
+--- a/drivers/usb/class/cdc-acm.c |
54 |
++++ b/drivers/usb/class/cdc-acm.c |
55 |
+@@ -59,6 +59,7 @@ |
56 |
+ #include <linux/init.h> |
57 |
+ #include <linux/slab.h> |
58 |
+ #include <linux/tty.h> |
59 |
++#include <linux/serial.h> |
60 |
+ #include <linux/tty_driver.h> |
61 |
+ #include <linux/tty_flip.h> |
62 |
+ #include <linux/module.h> |
63 |
+@@ -609,6 +610,7 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp) |
64 |
+ acm->throttle = 0; |
65 |
+ |
66 |
+ tasklet_schedule(&acm->urb_task); |
67 |
++ set_bit(ASYNCB_INITIALIZED, &acm->port.flags); |
68 |
+ rv = tty_port_block_til_ready(&acm->port, tty, filp); |
69 |
+ done: |
70 |
+ mutex_unlock(&acm->mutex); |
71 |
+ |