linux-stable/drivers/ufs/core
liuderong f103396ae3 scsi: ufs: core: Update compl_time_stamp_local_clock after completing a cqe
lrbp->compl_time_stamp_local_clock is set to zero after sending a sqe
but it is not updated after completing a cqe.  Thus the printed
information in ufshcd_print_tr() will always be zero.

Update lrbp->cmpl_time_stamp_local_clock after completing a cqe.

Log sample:

ufshcd-qcom 1d84000.ufshc: UPIU[8] - issue time 8750227249 us
ufshcd-qcom 1d84000.ufshc: UPIU[8] - complete time 0 us

Fixes: c30d8d010b ("scsi: ufs: core: Prepare for completion in MCQ")
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: liuderong <liuderong@oppo.com>
Link: https://lore.kernel.org/r/1733470182-220841-1-git-send-email-liuderong@oppo.com
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2024-12-09 21:49:08 -05:00
..
Kconfig scsi: ufs: core: Remove HPB support 2023-07-23 16:40:39 -04:00
Makefile scsi: ufs: core: Remove HPB support 2023-07-23 16:40:39 -04:00
ufs_bsg.c scsi: ufs: core: Add ufshcd_send_bsg_uic_cmd() for UFS BSG 2024-11-20 21:59:45 -05:00
ufs_bsg.h
ufs_trace.h scsi: ufs: Move UFS trace events to private header 2024-08-22 20:54:46 -04:00
ufs-debugfs.c
ufs-debugfs.h
ufs-fault-injection.c fault-inject: improve build for CONFIG_FAULT_INJECTION=n 2024-09-01 20:43:33 -07:00
ufs-fault-injection.h scsi: ufs: core: Make fault injection dynamically configurable per HBA 2023-11-24 19:23:35 -05:00
ufs-hwmon.c scsi: ufs: Rename a function argument 2023-07-31 15:17:50 -04:00
ufs-mcq.c SCSI misc on 20241125 2024-11-25 18:50:55 -08:00
ufs-sysfs.c scsi: ufs: core: sysfs: Prevent div by zero 2024-12-04 13:22:59 -05:00
ufs-sysfs.h
ufshcd-crypto.c scsi: ufs: core: Add UFSHCD_QUIRK_BROKEN_CRYPTO_ENABLE 2024-07-10 22:32:30 -04:00
ufshcd-crypto.h scsi: ufs: core: Add UFSHCD_QUIRK_KEYS_IN_PRDT 2024-07-10 22:32:30 -04:00
ufshcd-priv.h scsi: ufs: core: Add ufshcd_send_bsg_uic_cmd() for UFS BSG 2024-11-20 21:59:45 -05:00
ufshcd.c scsi: ufs: core: Update compl_time_stamp_local_clock after completing a cqe 2024-12-09 21:49:08 -05:00