Revert "usb: storage: enable auto-suspend for USB storage"
Peter Yu [Tue, 6 Dec 2016 13:37:10 +0000 (21:37 +0800)]
This reverts commit 907a021305c226d8b2130a95cf53be805fcc4f1d.

Bug 200258370
Bug 200255615

Signed-off-by: Peter Yu <pyu@nvidia.com>
Change-Id: I2d2f100f5bb4b030a5cac6848c076526e958eb65
Reviewed-on: http://git-master/r/1265893
GVS: Gerrit_Virtual_Submit
Reviewed-by: ChihMin Cheng <ccheng@nvidia.com>
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

drivers/usb/storage/usb.c

index 1783b7b..5c4fe07 100644 (file)
@@ -13,8 +13,6 @@
  * usb_device_id support by Adam J. Richter (adam@yggdrasil.com):
  *   (c) 2000 Yggdrasil Computing, Inc.
  *
- * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
- *
  * This driver is based on the 'USB Mass Storage Class' document. This
  * describes in detail the protocol used to communicate with such
  * devices.  Clearly, the designers had SCSI and ATAPI commands in
@@ -1009,9 +1007,6 @@ int usb_stor_probe2(struct us_data *us)
                dev_dbg(dev, "waiting for device to settle before scanning\n");
        queue_delayed_work(system_freezable_wq, &us->scan_dwork,
                        delay_use * HZ);
-
-       usb_enable_autosuspend(us->pusb_dev);
-
        return 0;
 
        /* We come here if there are any problems */