BZ: 34381
[PATCH 1/3]
Disable persist_enable feature for there is risk for mistake
and can not turn on screen.
Change-Id: I6ac51eb4e67b6ebc7698682a46c2a29111ca0846
Signed-off-by: jianqian <jianqiang.tang@intel.com>
Reviewed-on: http://android.intel.com:8080/51378
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
udev->quirks);
/* For the present, all devices default to USB-PERSIST enabled */
-#if 0 /* was: #ifdef CONFIG_PM */
+#ifdef CONFIG_PM/* was: #ifdef CONFIG_PM */
+#if 0
/* Hubs are automatically enabled for USB-PERSIST */
if (udev->descriptor.bDeviceClass == USB_CLASS_HUB)
udev->persist_enabled = 1;
-
+#else
+ udev->persist_enabled = 0;
+#endif
#else
/* In the absence of PM, we can safely enable USB-PERSIST
* for all devices. It will affect things like hub resets