summaryrefslogtreecommitdiff
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorVenu Byravarasu <vbyravarasu@nvidia.com>2012-10-17 18:28:10 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:39:04 -0700
commit4e7b2999d342494c10f132807e0fd136e0ca368a (patch)
treeaa487f09331be4ea234d84715d7937860cf06f6f /drivers/usb/class
parentbeef3a4baa42be837bbe433cf970020276f056a6 (diff)
usb: cdc-acm: enable need_remote_wakeup by default
This was disabled in a previous commit as it was thought that the flag prevented autosuspend from working. However autosuspend will succeed as long as the modem enumerates with the Remote Wakeup bit set in the bmAttributes field of the Configuration descriptor. Bug 1058567 Change-Id: I79b35f8edec4511da19bcc3f761d666d388c655d Signed-off-by: Neil Patel <neilp@nvidia.com> Reviewed-on: http://git-master/r/147062 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Steve Lin <stlin@nvidia.com> Rebase-Id: Rda8e7689f6c8abc007818ed1219cc4cedf229e60
Diffstat (limited to 'drivers/usb/class')
-rw-r--r--drivers/usb/class/cdc-acm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 89f67685eb1a..113e94d43134 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -554,7 +554,7 @@ static int acm_port_activate(struct tty_port *port, struct tty_struct *tty)
* memory is really nasty...
*/
set_bit(TTY_NO_WRITE_SPLIT, &tty->flags);
- acm->control->needs_remote_wakeup = 0;
+ acm->control->needs_remote_wakeup = 1;
if (acm_submit_read_urbs(acm, GFP_KERNEL))
goto error_submit_urb;