From: JaeHun Jung Date: Thu, 25 Jul 2019 04:05:09 +0000 (+0900) Subject: [RAMEN9610-18380][LV] scsi: scsi_sysfs: Remove async_suspend. X-Git-Tag: MMI-PSB29.39-49-7~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9708c920f291882ce7374912db1e2a1de61ef75;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 --- 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,