Commit 9a6275b5 authored by Asutosh Das's avatar Asutosh Das Committed by Sandeep Dhavale
Browse files

UPSTREAM: scsi: ufs: mcq: Use active_reqs to check busy in clock scaling



Multi Circular Queue doesn't use outstanding_reqs. However, the UFS clock
scaling functions use outstanding_reqs to determine if there are requests
pending. When MCQ is enabled, this check always returns false.

Hence use active_reqs to check if there are pending requests.

Fixes: eacb139b ("scsi: ufs: core: mcq: Enable multi-circular queue")
Signed-off-by: default avatarAsutosh Das <quic_asutoshd@quicinc.com>
Reviewed-by: default avatarManivannan Sadhasivam <mani@kernel.org>
Link: https://lore.kernel.org/r/a24e0d646aac70eae0fc5e05fac0c58bb7e6e680.1678317160.git.quic_asutoshd@quicinc.com


(cherry picked from commit c6001025)
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>

Bug: 277690227
Change-Id: I77897af6f8d6d1c86837c67050165af5a00ae202
Signed-off-by: default avatarZiqi Chen <quic_ziqichen@quicinc.com>
parent a705bf77
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment