Skip to content

Commit 09d57d6

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: ufs: core: Rename ufshcd_wait_for_doorbell_clr()
The name ufshcd_wait_for_doorbell_clr() refers to legacy mode. Commit 8d077ed ("scsi: ufs: Optimize the command queueing code") added support for MCQ mode in this function. Since then the name of this function is misleading. Hence change the name of this function into something that is appropriate for both legacy and MCQ mode. Reviewed-by: Peter Wang <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 9ee35fd commit 09d57d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ufs/core/ufshcd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ static u32 ufshcd_pending_cmds(struct ufs_hba *hba)
13031303
*
13041304
* Return: 0 upon success; -EBUSY upon timeout.
13051305
*/
1306-
static int ufshcd_wait_for_doorbell_clr(struct ufs_hba *hba,
1306+
static int ufshcd_wait_for_pending_cmds(struct ufs_hba *hba,
13071307
u64 wait_timeout_us)
13081308
{
13091309
int ret = 0;
@@ -1431,7 +1431,7 @@ static int ufshcd_clock_scaling_prepare(struct ufs_hba *hba, u64 timeout_us)
14311431
down_write(&hba->clk_scaling_lock);
14321432

14331433
if (!hba->clk_scaling.is_allowed ||
1434-
ufshcd_wait_for_doorbell_clr(hba, timeout_us)) {
1434+
ufshcd_wait_for_pending_cmds(hba, timeout_us)) {
14351435
ret = -EBUSY;
14361436
up_write(&hba->clk_scaling_lock);
14371437
mutex_unlock(&hba->wb_mutex);

0 commit comments

Comments
 (0)