[PATCH v1 2/2] ufs: core: support dumping CQ entry in MCQ Mode

Peter Wang (王信友) peter.wang at mediatek.com
Tue Oct 14 23:14:58 PDT 2025


On Tue, 2025-10-14 at 08:46 -0700, Bart Van Assche wrote:
> So there are four callers of ufshcd_print_tr() and only one caller
> dumps
> the CQE? Wouldn't it be better not to add any arguments to
> ufshcd_print_tr() and instead add the code for dumping the CQE
> directly
> in the only function that needs this functionality?
> 
> Thanks,
> 
> Bart.
> 
> 

Hi Bart,

The CQE pointer is generated by the hardware after receiving
the UFS device response. So, if we don't add the CQE argument,
I'm not sure how we could obtain this pointer in ufshcd_print_tr.
Or are you suggesting that we dump the CQE directly in 
ufshcd_transfer_rsp_status?

Thanks
Peter



More information about the Linux-mediatek mailing list