From 19447496feab1b2e10eb473d91ac479bf4931e6a Mon Sep 17 00:00:00 2001 From: hgchu Date: Fri, 12 Jan 2018 16:31:51 +0900 Subject: [PATCH] [COMMON] scsi: ufs: exynos: add an auxiliary sfr dump Change-Id: Ib98c369d7b848ad2e1bbc9864e6b300da571975a Signed-off-by: hgchu --- drivers/scsi/ufs/ufshcd.c | 4 ++++ drivers/scsi/ufs/ufshci.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 8492041e84f7..4ec17366f37d 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -6839,6 +6839,10 @@ out: dev_err(hba->dev, "%s failed with err %d, retrying:%d\n", __func__, ret, re_cnt); goto retry; + } else if (ret && re_cnt >= UFS_LINK_SETUP_RETRIES) { + dev_err(hba->dev, "%s failed after retries with err %d\n", + __func__, ret); + exynos_ufs_dump_uic_info(hba); spin_lock_irqsave(hba->host->host_lock, flags); hba->ufshcd_state = UFSHCD_STATE_OPERATIONAL; spin_unlock_irqrestore(hba->host->host_lock, flags); diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h index 095702e50c45..f9b7f2686d1c 100644 --- a/drivers/scsi/ufs/ufshci.h +++ b/drivers/scsi/ufs/ufshci.h @@ -64,6 +64,7 @@ enum { REG_UTP_TRANSFER_REQ_DOOR_BELL = 0x58, REG_UTP_TRANSFER_REQ_LIST_CLEAR = 0x5C, REG_UTP_TRANSFER_REQ_LIST_RUN_STOP = 0x60, + REG_UTP_TRANSFER_REQ_LIST_CNR = 0x64, REG_UTP_TASK_REQ_LIST_BASE_L = 0x70, REG_UTP_TASK_REQ_LIST_BASE_H = 0x74, REG_UTP_TASK_REQ_DOOR_BELL = 0x78, @@ -76,7 +77,7 @@ enum { UFSHCI_REG_SPACE_SIZE = 0xA0, - REG_UFS_CCAP = 0x100, + REG_CRYPTO_CAPABILITY = 0x100, REG_UFS_CRYPTOCAP = 0x104, UFSHCI_CRYPTO_REG_SPACE_SIZE = 0x400, -- 2.20.1