[RAMEN9610-18380][LV] scsi: scsi_sysfs: Remove async_suspend.
authorJaeHun Jung <jh0801.jung@samsung.com>
Thu, 25 Jul 2019 04:05:09 +0000 (13:05 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Wed, 31 Jul 2019 01:48:56 +0000 (09:48 +0800)
async_suspend sometimes make watchdog reset when suspend.
So, Disable async_suspend.

Change-Id: Ifb9286003ef25aee9f89599c32e4ea6f370806de
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
drivers/scsi/scsi_sysfs.c

index 528ac9070efed6c11b949535658f5a5428127480..a8839cd92365df0141ffc7ada5ce83ce96927a3b 100644 (file)
@@ -1213,7 +1213,6 @@ static int scsi_target_add(struct scsi_target *starget)
 
        pm_runtime_set_active(&starget->dev);
        pm_runtime_enable(&starget->dev);
-       device_enable_async_suspend(&starget->dev);
 
        return 0;
 }
@@ -1237,7 +1236,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 +1260,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,