scsi: do not async suspend for scsi devices
authorhgchu <hg.chu@samsung.com>
Fri, 12 Jan 2018 05:30:56 +0000 (14:30 +0900)
committerJaeHun Jung <jh0801.jung@samsung.com>
Tue, 8 May 2018 08:20:31 +0000 (17:20 +0900)
Change-Id: I19209feb10653ef0ddb08c242004cad080469233
Signed-off-by: hgchu <hg.chu@samsung.com>
drivers/scsi/hosts.c
drivers/scsi/scsi_sysfs.c

index dd9464920456fd550f8da9bab2e345ae843d1d15..7fba0e32d9b58488028a9d70405065940d47f082 100644 (file)
@@ -245,7 +245,6 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev,
        pm_runtime_get_noresume(&shost->shost_gendev);
        pm_runtime_set_active(&shost->shost_gendev);
        pm_runtime_enable(&shost->shost_gendev);
-       device_enable_async_suspend(&shost->shost_gendev);
 
        error = device_add(&shost->shost_gendev);
        if (error)
@@ -254,8 +253,6 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev,
        scsi_host_set_state(shost, SHOST_RUNNING);
        get_device(shost->shost_gendev.parent);
 
-       device_enable_async_suspend(&shost->shost_dev);
-
        error = device_add(&shost->shost_dev);
        if (error)
                goto out_del_gendev;
index 528ac9070efed6c11b949535658f5a5428127480..0ffb333d1c6ab211adfed4108ac953dc895c6cf0 100644 (file)
@@ -1237,7 +1237,6 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)
 
        transport_configure_device(&starget->dev);
 
-       device_enable_async_suspend(&sdev->sdev_gendev);
        scsi_autopm_get_target(starget);
        pm_runtime_set_active(&sdev->sdev_gendev);
        pm_runtime_forbid(&sdev->sdev_gendev);
@@ -1262,7 +1261,6 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)
                return error;
        }
 
-       device_enable_async_suspend(&sdev->sdev_dev);
        error = device_add(&sdev->sdev_dev);
        if (error) {
                sdev_printk(KERN_INFO, sdev,