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>
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
}
}