usb/host : Disable persist_enable feature for there is risk for mistake.
authorjianqian <jianqiang.tang@intel.com>
Tue, 5 Jun 2012 05:19:12 +0000 (13:19 +0800)
committerbuildbot <buildbot@intel.com>
Fri, 8 Jun 2012 13:08:57 +0000 (06:08 -0700)
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>
drivers/usb/core/quirks.c

index 81ce6a8..1ff66f0 100644 (file)
@@ -126,11 +126,14 @@ void usb_detect_quirks(struct usb_device *udev)
                                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