]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: ufs: ufs-qcom: Align programming sequence of Shared ICE for UFS controller v5
authorPalash Kambar <quic_pkambar@quicinc.com>
Mon, 18 Aug 2025 04:09:05 +0000 (09:39 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 10 Sep 2025 02:34:41 +0000 (22:34 -0400)
commit3126b5fd02270380cce833d06f973a3ffb33a69b
tree132730a552593e16f8bdc6d2061c27e6bf8335e7
parent8791b07894ab75361195094828dc56b7ed449c36
scsi: ufs: ufs-qcom: Align programming sequence of Shared ICE for UFS controller v5

Disabling the AES core in Shared ICE is not supported during power
collapse for UFS Host Controller v5.0, which may lead to data errors
after Hibern8 exit. To comply with hardware programming guidelines and
avoid this issue, issue a sync reset to ICE upon power collapse exit.

Hence follow below steps to reset the ICE upon exiting power collapse
and align with Hw programming guide.

a. Assert the ICE sync reset by setting both SYNC_RST_SEL and
   SYNC_RST_SW bits in UFS_MEM_ICE_CFG

b. Deassert the reset by clearing SYNC_RST_SW in  UFS_MEM_ICE_CFG

Signed-off-by: Palash Kambar <quic_pkambar@quicinc.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-qcom.c
drivers/ufs/host/ufs-qcom.h