diff options
author | Bart Van Assche <[email protected]> | 2023-05-29 13:26:40 -0700 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-05-31 11:44:01 -0400 |
commit | 078f4f4b34d6c2dadabb363d3fc6c84b32927dea (patch) | |
tree | a05edb0875099fa511a4080fc1b3b41bee5f54eb /lib/mpi/generic_mpih-lshift.c | |
parent | 4b68b7f9c46d90c541d39c8b397a86ac0ca4c765 (diff) |
scsi: ufs: Ungate the clock synchronously
Ungating the clock asynchronously causes ufshcd_queuecommand() to return
SCSI_MLQUEUE_HOST_BUSY and hence causes commands to be requeued. This is
suboptimal. Allow ufshcd_queuecommand() to sleep such that clock ungating
does not trigger command requeuing. Remove the ufshcd_scsi_block_requests()
and ufshcd_scsi_unblock_requests() calls because these are no longer
needed. The flush_work(&hba->clk_gating.ungate_work) call is sufficient to
make the SCSI core wait for clock ungating to complete.
Acked-by: Adrian Hunter <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bean Huo <[email protected]>
Reviewed-by: Bao D. Nguyen <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/mpi/generic_mpih-lshift.c')
0 files changed, 0 insertions, 0 deletions