Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sakari Ailus and committed by
Jassi Brar
08fb6d8f a4123ffa

+5 -5
+5 -5
drivers/mailbox/mtk-cmdq-mailbox.c
··· 397 397 398 398 task = kzalloc(sizeof(*task), GFP_ATOMIC); 399 399 if (!task) { 400 - pm_runtime_put_autosuspend(cmdq->mbox.dev); 400 + __pm_runtime_put_autosuspend(cmdq->mbox.dev); 401 401 return -ENOMEM; 402 402 } 403 403 ··· 447 447 list_move_tail(&task->list_entry, &thread->task_busy_list); 448 448 449 449 pm_runtime_mark_last_busy(cmdq->mbox.dev); 450 - pm_runtime_put_autosuspend(cmdq->mbox.dev); 450 + __pm_runtime_put_autosuspend(cmdq->mbox.dev); 451 451 452 452 return 0; 453 453 } ··· 495 495 spin_unlock_irqrestore(&thread->chan->lock, flags); 496 496 497 497 pm_runtime_mark_last_busy(cmdq->mbox.dev); 498 - pm_runtime_put_autosuspend(cmdq->mbox.dev); 498 + __pm_runtime_put_autosuspend(cmdq->mbox.dev); 499 499 } 500 500 501 501 static int cmdq_mbox_flush(struct mbox_chan *chan, unsigned long timeout) ··· 535 535 out: 536 536 spin_unlock_irqrestore(&thread->chan->lock, flags); 537 537 pm_runtime_mark_last_busy(cmdq->mbox.dev); 538 - pm_runtime_put_autosuspend(cmdq->mbox.dev); 538 + __pm_runtime_put_autosuspend(cmdq->mbox.dev); 539 539 540 540 return 0; 541 541 ··· 550 550 return -EFAULT; 551 551 } 552 552 pm_runtime_mark_last_busy(cmdq->mbox.dev); 553 - pm_runtime_put_autosuspend(cmdq->mbox.dev); 553 + __pm_runtime_put_autosuspend(cmdq->mbox.dev); 554 554 return 0; 555 555 } 556 556