diff options
author | Petlozu Pravareshwar <petlozup@nvidia.com> | 2014-01-22 18:05:30 +0530 |
---|---|---|
committer | Petlozu Pravareshwar <petlozup@nvidia.com> | 2014-01-30 22:35:55 -0800 |
commit | 8d49c2b57d7edf721933bda082374f8bcf7915c2 (patch) | |
tree | 5dc95454721d9a9e793979741a438293d871c456 /drivers/hid | |
parent | f85d19f829ec320a5cd91d80f188678942c0a8d8 (diff) |
HID: usbhid: disable autosuspend for usb Keyboards
This change will disable the autosuspend for KBs.
This is to avoid the lag observed on the screen
while we type the characters.
Bug 1390065
Change-Id: Ic6f2247bf4e4fa2332329cd3e8dac15aad56354c
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/358743
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index b89d9d65f81b..006267f9ec62 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c @@ -6,7 +6,7 @@ * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc * Copyright (c) 2007-2008 Oliver Neukum * Copyright (c) 2006-2010 Jiri Kosina - * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved. */ /* @@ -1183,6 +1183,7 @@ static int usbhid_start(struct hid_device *hid) USB_INTERFACE_PROTOCOL_KEYBOARD) { usbhid_set_leds(hid); device_set_wakeup_enable(&dev->dev, 1); + usb_disable_autosuspend(dev); } #ifdef CONFIG_USB_EHCI_TEGRA else if (interface->desc.bInterfaceProtocol == |