From c3ccbcb999841907321b0e5c4e0c08b1f8c713f0 Mon Sep 17 00:00:00 2001 From: hgchu Date: Fri, 12 Jan 2018 20:07:43 +0900 Subject: [PATCH] [COMMON] ufs: exynos: wait 100 ms for the device busy state Change-Id: I4f2607b9cff87da491fd1fcf920ba80af08168a1 Signed-off-by: hgchu --- drivers/scsi/ufs/ufshcd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 71359c7e7bb6..40b8e499e7a7 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4244,6 +4244,9 @@ static int ufshcd_complete_dev_init(struct ufs_hba *hba) err = ufshcd_query_flag_retry(hba, UPIU_QUERY_OPCODE_READ_FLAG, QUERY_FLAG_IDN_FDEVICEINIT, &flag_res); + if (!err && flag_res) + udelay(100); + if (err) dev_err(hba->dev, "%s reading fDeviceInit flag failed with error %d\n", -- 2.20.1