[PATCH v1] ufs: core: support UFS 4.1 CQ entry tag
Bart Van Assche
bvanassche at acm.org
Mon Feb 9 08:49:54 PST 2026
On 2/9/26 4:20 AM, peter.wang at mediatek.com wrote:
> The UFS 4.1 specification introduces a new completion queue(CQ)
> entry format, allowing the tag to be obtained directly.
UFS -> UFSHCI
> diff --git a/drivers/ufs/core/ufs-mcq.c b/drivers/ufs/core/ufs-mcq.c
> index ad0ada57959a..d8b5cf18a01c 100644
> --- a/drivers/ufs/core/ufs-mcq.c
> +++ b/drivers/ufs/core/ufs-mcq.c
> @@ -273,13 +273,18 @@ void ufshcd_mcq_write_cqis(struct ufs_hba *hba, u32 val, int i)
> EXPORT_SYMBOL_GPL(ufshcd_mcq_write_cqis);
>
> /*
> - * Current MCQ specification doesn't provide a Task Tag or its equivalent in
> + * UFS 4.0 MCQ specification doesn't provide a Task Tag or its equivalent in
> * the Completion Queue Entry. Find the Task Tag using an indirect method.
> + * UFS 4.1 and above can directly return the Task Tag in the Completion Queue
> + * Entry.
> */
UFS -> UFSHCI
Otherwise this patch looks good to me.
Thanks,
Bart.
More information about the Linux-mediatek
mailing list