mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
scsi: ufs: core: Add a comment block above ufshcd_mcq_compl_all_cqes_lock()
Document the aspects of ufshcd_mcq_compl_all_cqes_lock() that are nontrivial in a comment block above this function. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Peter Wang <peter.wang@mediatek.com> Link: https://patch.msgid.link/20260401202506.1445324-2-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
1821f77fda
commit
1373df88d5
|
|
@ -322,6 +322,14 @@ static void ufshcd_mcq_process_cqe(struct ufs_hba *hba,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This function is called from the UFS error handler with the UFS host
|
||||||
|
* controller disabled (HCE = 0). Reading host controller registers, e.g. the
|
||||||
|
* CQ tail pointer (CQTPy), may not be safe with the host controller disabled.
|
||||||
|
* Hence, iterate over all completion queue entries. This won't result in
|
||||||
|
* double completions because ufshcd_mcq_process_cqe() clears a CQE after it
|
||||||
|
* has been processed.
|
||||||
|
*/
|
||||||
void ufshcd_mcq_compl_all_cqes_lock(struct ufs_hba *hba,
|
void ufshcd_mcq_compl_all_cqes_lock(struct ufs_hba *hba,
|
||||||
struct ufs_hw_queue *hwq)
|
struct ufs_hw_queue *hwq)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user