linux/include/ufs
Bart Van Assche 078f4f4b34 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 <adrian.hunter@intel.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230529202640.11883-6-bvanassche@acm.org
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-05-31 11:44:01 -04:00
..
ufs_quirks.h
ufs.h scsi: ufs: core: mcq: Calculate queue depth 2023-01-13 21:03:37 -05:00
ufshcd.h scsi: ufs: Ungate the clock synchronously 2023-05-31 11:44:01 -04:00
ufshci.h scsi: ufs: core: mcq: Add Event Specific Interrupt enable and config functions 2023-01-13 21:10:59 -05:00
unipro.h scsi: ufs: ufs: Remove duplicate entry 2023-01-18 18:24:24 -05:00