[RAMEN9610-20756][RAMEN9610-18204][COMMON] scsi: ufs: Change timeout for start_stop...
authorJaeHun Jung <jh0801.jung@samsung.com>
Fri, 19 Jul 2019 08:07:59 +0000 (17:07 +0900)
committerrobot <robot@samsung.com>
Sun, 27 Oct 2019 17:54:11 +0000 (02:54 +0900)
Watchdog is 26s.
60s is too long in mobile device.
So, Change it.

Change-Id: Ic874ce9dca62649e9d33d25ee6251cc123e2001d
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
Signed-off-by: Kim Gunho <gunho.kim@samsung.com>
drivers/scsi/ufs/ufshcd.c

index 704ffb0aef85e6c49c964efe8f90a2c1dc007334..01f9bccf166079e2826c1f2dc5221f0e96e7ec78 100644 (file)
@@ -7797,8 +7797,10 @@ static int ufshcd_set_dev_pwr_mode(struct ufs_hba *hba,
         * callbacks hence set the RQF_PM flag so that it doesn't resume the
         * already suspended childs.
         */
+       pr_info("%s %d\n", __func__, __LINE__);
        ret = scsi_execute(sdp, cmd, DMA_NONE, NULL, 0, NULL, &sshdr,
-                       START_STOP_TIMEOUT, 0, 0, RQF_PM, NULL);
+                       (5 * HZ), 0, 0, RQF_PM, NULL);
+       pr_info("%s %d\n", __func__, __LINE__);
        if (ret) {
                sdev_printk(KERN_WARNING, sdp,
                            "START_STOP failed for power mode: %d, result %x\n",
@@ -8131,9 +8133,7 @@ enable_gating:
        ufshcd_release(hba);
 out:
        hba->pm_op_in_progress = 0;
-
-       if (hba->monitor.flag & UFSHCD_MONITOR_LEVEL1)
-               dev_info(hba->dev, "UFS suspend done\n");
+       dev_info(hba->dev, "UFS suspend done\n");
 
        return ret;
 }