From a9708c920f291882ce7374912db1e2a1de61ef75 Mon Sep 17 00:00:00 2001 From: JaeHun Jung Date: Thu, 25 Jul 2019 13:05:09 +0900 Subject: [PATCH] [RAMEN9610-18380][LV] scsi: scsi_sysfs: Remove async_suspend. async_suspend sometimes make watchdog reset when suspend. So, Disable async_suspend. Change-Id: Ifb9286003ef25aee9f89599c32e4ea6f370806de Signed-off-by: JaeHun Jung --- drivers/scsi/scsi_sysfs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index 528ac9070efe..a8839cd92365 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c @@ -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, -- 2.20.1