From: HeonGwang Chu Date: Wed, 5 Jul 2017 04:27:05 +0000 (+0900) Subject: [COMMON] scsi: ufs: Fix problems in clock enable fail and hibern8 fail cases X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ac4ae4ac4a981ddf53c543a39526d7820042f61;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] scsi: ufs: Fix problems in clock enable fail and hibern8 fail cases We delete the clearing of saved_err and saved_uic_err in hibern8 ctrl and add recovery method when ufs clock enable fail cases.These cases had happened in the previous soc versions. Change-Id: Ia8dc78c58cd89030075fb63cc29e015bdb8411fa Signed-off-by: HeonGwang Chu --- diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index fbf2e95e2a85..06577599c515 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4025,16 +4025,8 @@ static int ufshcd_link_hibern8_ctrl(struct ufs_hba *hba, bool en) else ret = ufshcd_uic_hibern8_exit(hba); - - if (ret || (hba->saved_err & INT_FATAL_ERRORS) || - ((hba->saved_err & UIC_ERROR) && - ((hba->saved_uic_err & UFSHCD_UIC_DL_PA_INIT_ERROR) || - (hba->saved_uic_err & UFSHCD_UIC_DL_ERROR)))) { - - if (!ret) - ret = hba->saved_err; + if (ret) goto out; - } if (hba->monitor.flag & UFSHCD_MONITOR_LEVEL2) { if (en)