diff options
| author | Naveen Kumar Arepalli <naveenk@nvidia.com> | 2017-02-09 06:36:43 -0500 |
|---|---|---|
| committer | Naveen Kumar Arepalli <naveenk@nvidia.com> | 2017-09-29 06:21:58 -0400 |
| commit | 01ee2f1c73cce1009b44789f01211c536d817230 (patch) | |
| tree | 898067a7702f70febf5c5ac8ecb2bd888a2fd7d5 /drivers/scsi | |
| parent | 3b9cbd00b5e6fc219fdea32983a76fee2c0bb15c (diff) | |
ufs: tegra: Set burst closure delay to 0
-Before link start configuration request from Host controller,
burst closure delay needs to be configured to 0.
-This setting is recommended by ASIC team.
Bug 200277026
Change-Id: I7f5b1ab4fa98dcc208329e0d89849c2c663a6349
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/1302085
(cherry picked from commit 4d36e17224bb912386a24e936fc230fadd578233)
Reviewed-on: http://git-master/r/1460449
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Diffstat (limited to 'drivers/scsi')
| -rw-r--r-- | drivers/scsi/ufs/ufs-tegra.c | 4 | ||||
| -rw-r--r-- | drivers/scsi/ufs/ufs-tegra.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufs-tegra.c b/drivers/scsi/ufs/ufs-tegra.c index 42a8ffef1..851eb68a9 100644 --- a/drivers/scsi/ufs/ufs-tegra.c +++ b/drivers/scsi/ufs/ufs-tegra.c | |||
| @@ -1065,6 +1065,10 @@ static void ufs_tegra_unipro_pre_linkup(struct ufs_hba *hba) | |||
| 1065 | { | 1065 | { |
| 1066 | /* Unipro LCC disable */ | 1066 | /* Unipro LCC disable */ |
| 1067 | ufshcd_dme_set(hba, UIC_ARG_MIB(PA_Local_TX_LCC_Enable), 0x0); | 1067 | ufshcd_dme_set(hba, UIC_ARG_MIB(PA_Local_TX_LCC_Enable), 0x0); |
| 1068 | /* Before link start configuration request from Host controller, | ||
| 1069 | * burst closure delay needs to be configured to 0 | ||
| 1070 | */ | ||
| 1071 | ufshcd_dme_set(hba, UIC_ARG_MIB(VS_TXBURSTCLOSUREDELAY), 0x0); | ||
| 1068 | } | 1072 | } |
| 1069 | 1073 | ||
| 1070 | static int ufs_tegra_link_startup_notify(struct ufs_hba *hba, | 1074 | static int ufs_tegra_link_startup_notify(struct ufs_hba *hba, |
diff --git a/drivers/scsi/ufs/ufs-tegra.h b/drivers/scsi/ufs/ufs-tegra.h index 3607990f6..f8cd4bafc 100644 --- a/drivers/scsi/ufs/ufs-tegra.h +++ b/drivers/scsi/ufs/ufs-tegra.h | |||
| @@ -81,6 +81,9 @@ | |||
| 81 | #define VS_DEBUGSAVECONFIGTIME_ST_SCT 0x3 | 81 | #define VS_DEBUGSAVECONFIGTIME_ST_SCT 0x3 |
| 82 | #define SET_ST_SCT(x) ((x) & 0x3) | 82 | #define SET_ST_SCT(x) ((x) & 0x3) |
| 83 | 83 | ||
| 84 | #define VS_TXBURSTCLOSUREDELAY 0xD084 | ||
| 85 | |||
| 86 | |||
| 84 | #define MPHY_ADDR_RANGE 0x1fc | 87 | #define MPHY_ADDR_RANGE 0x1fc |
| 85 | #define UFS_AUX_ADDR_RANGE 0x18 | 88 | #define UFS_AUX_ADDR_RANGE 0x18 |
| 86 | 89 | ||
