scsi: ufs: core: mcq: Calculate queue depth
The UFS device defines the supported queuedepth by bqueuedepth which has a max value of 256. The HC defines MAC (Max Active Commands) that defines the max number of commands that in flight to the UFS device. Calculate and configure the nutrs based on both these values. Co-developed-by: NCan Guo <quic_cang@quicinc.com> Signed-off-by: NCan Guo <quic_cang@quicinc.com> Signed-off-by: NAsutosh Das <quic_asutoshd@quicinc.com> Reviewed-by: NManivannan Sadhasivam <mani@kernel.org> Reviewed-by: NBart Van Assche <bvanassche@acm.org> Reviewed-by: NStanley Chu <stanley.chu@mediatek.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
Showing
想要评论请 注册 或 登录