]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm: tegra: baseband: enable wake out of low power modes
authorNeil Patel <neilp@nvidia.com>
Thu, 6 Dec 2012 16:09:34 +0000 (11:09 -0500)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:44:56 +0000 (12:44 -0700)
For modem devices supporting remote wake the kernel device wakeup
flag should be set to true. This ensures the SET_FEATURE remote
wakeup request is sent to the device before the AP enters LP0.

Bug 1191502

Change-Id: I4da5f332fc024c213aae0052d50bf5b884523840
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/169086
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
arch/arm/mach-tegra/tegra_usb_modem_power.c

index 5bc79166dae983f5b47f43ea56fbcffa6b6c4f11..ab37c3d3f8132eb9fa674491f70bd7c5e25be5f6 100644 (file)
@@ -239,6 +239,12 @@ static void device_add_handler(struct tegra_usb_modem *modem,
                        pr_info("enable autosuspend for %s %s\n",
                                udev->manufacturer, udev->product);
                }
+
+               /* allow the device to wake up the system */
+               if (udev->actconfig->desc.bmAttributes &
+                   USB_CONFIG_ATT_WAKEUP)
+                       device_set_wakeup_enable(&udev->dev, true);
+
 #endif
        }
 }