Skip to content

Commit 08fb6d8

Browse files
Sakari AilusJassi Brar
authored andcommitted
mailbox: mtk-cmdq-mailbox: Switch to __pm_runtime_put_autosuspend()
pm_runtime_put_autosuspend() will soon be changed to include a call to pm_runtime_mark_last_busy(). This patch switches the current users to __pm_runtime_put_autosuspend() which will continue to have the functionality of old pm_runtime_put_autosuspend(). Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
1 parent a4123ff commit 08fb6d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/mailbox/mtk-cmdq-mailbox.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ static int cmdq_mbox_send_data(struct mbox_chan *chan, void *data)
397397

398398
task = kzalloc(sizeof(*task), GFP_ATOMIC);
399399
if (!task) {
400-
pm_runtime_put_autosuspend(cmdq->mbox.dev);
400+
__pm_runtime_put_autosuspend(cmdq->mbox.dev);
401401
return -ENOMEM;
402402
}
403403

@@ -447,7 +447,7 @@ static int cmdq_mbox_send_data(struct mbox_chan *chan, void *data)
447447
list_move_tail(&task->list_entry, &thread->task_busy_list);
448448

449449
pm_runtime_mark_last_busy(cmdq->mbox.dev);
450-
pm_runtime_put_autosuspend(cmdq->mbox.dev);
450+
__pm_runtime_put_autosuspend(cmdq->mbox.dev);
451451

452452
return 0;
453453
}
@@ -495,7 +495,7 @@ static void cmdq_mbox_shutdown(struct mbox_chan *chan)
495495
spin_unlock_irqrestore(&thread->chan->lock, flags);
496496

497497
pm_runtime_mark_last_busy(cmdq->mbox.dev);
498-
pm_runtime_put_autosuspend(cmdq->mbox.dev);
498+
__pm_runtime_put_autosuspend(cmdq->mbox.dev);
499499
}
500500

501501
static int cmdq_mbox_flush(struct mbox_chan *chan, unsigned long timeout)
@@ -535,7 +535,7 @@ static int cmdq_mbox_flush(struct mbox_chan *chan, unsigned long timeout)
535535
out:
536536
spin_unlock_irqrestore(&thread->chan->lock, flags);
537537
pm_runtime_mark_last_busy(cmdq->mbox.dev);
538-
pm_runtime_put_autosuspend(cmdq->mbox.dev);
538+
__pm_runtime_put_autosuspend(cmdq->mbox.dev);
539539

540540
return 0;
541541

@@ -550,7 +550,7 @@ static int cmdq_mbox_flush(struct mbox_chan *chan, unsigned long timeout)
550550
return -EFAULT;
551551
}
552552
pm_runtime_mark_last_busy(cmdq->mbox.dev);
553-
pm_runtime_put_autosuspend(cmdq->mbox.dev);
553+
__pm_runtime_put_autosuspend(cmdq->mbox.dev);
554554
return 0;
555555
}
556556

0 commit comments

Comments
 (0)