diff options
| author | Vamshi Gajjela <[email protected]> | 2024-07-24 13:51:26 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2024-08-02 01:59:00 +0000 |
| commit | ab9fd06cb8f0db0854291833fc40c789e43a361f (patch) | |
| tree | 1f264e3a47565e072672af9aec25e1c00770181a /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | Merge branch '6.11/scsi-queue' into 6.11/scsi-fixes (diff) | |
| download | kernel-ab9fd06cb8f0db0854291833fc40c789e43a361f.tar.gz kernel-ab9fd06cb8f0db0854291833fc40c789e43a361f.zip | |
scsi: ufs: core: Fix hba->last_dme_cmd_tstamp timestamp updating logic
The ufshcd_add_delay_before_dme_cmd() always introduces a delay of
MIN_DELAY_BEFORE_DME_CMDS_US between DME commands even when it's not
required. The delay is added when the UFS host controller supplies the
quirk UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS.
Fix the logic to update hba->last_dme_cmd_tstamp to ensure subsequent DME
commands have the correct delay in the range of 0 to
MIN_DELAY_BEFORE_DME_CMDS_US.
Update the timestamp at the end of the function to ensure it captures the
latest time after any necessary delay has been applied.
Signed-off-by: Vamshi Gajjela <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Fixes: cad2e03d8607 ("ufs: add support to allow non standard behaviours (quirks)")
Cc: [email protected]
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
