]> Git Repo - linux.git/commitdiff
mailbox: mtk-cmdq-mailbox: Switch to __pm_runtime_put_autosuspend()
authorSakari Ailus <[email protected]>
Fri, 4 Oct 2024 09:41:23 +0000 (12:41 +0300)
committerJassi Brar <[email protected]>
Sun, 24 Nov 2024 18:55:01 +0000 (12:55 -0600)
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 <[email protected]>
Reviewed-by: Matthias Brugger <[email protected]>
Signed-off-by: Jassi Brar <[email protected]>
drivers/mailbox/mtk-cmdq-mailbox.c

index 4bff73532085bdc6cf5004d8b7495ad8ec2d9157..180906761eda790dc5bfc864a89ecfdc43597305 100644 (file)
@@ -397,7 +397,7 @@ static int cmdq_mbox_send_data(struct mbox_chan *chan, void *data)
 
        task = kzalloc(sizeof(*task), GFP_ATOMIC);
        if (!task) {
-               pm_runtime_put_autosuspend(cmdq->mbox.dev);
+               __pm_runtime_put_autosuspend(cmdq->mbox.dev);
                return -ENOMEM;
        }
 
@@ -447,7 +447,7 @@ static int cmdq_mbox_send_data(struct mbox_chan *chan, void *data)
        list_move_tail(&task->list_entry, &thread->task_busy_list);
 
        pm_runtime_mark_last_busy(cmdq->mbox.dev);
-       pm_runtime_put_autosuspend(cmdq->mbox.dev);
+       __pm_runtime_put_autosuspend(cmdq->mbox.dev);
 
        return 0;
 }
@@ -495,7 +495,7 @@ done:
        spin_unlock_irqrestore(&thread->chan->lock, flags);
 
        pm_runtime_mark_last_busy(cmdq->mbox.dev);
-       pm_runtime_put_autosuspend(cmdq->mbox.dev);
+       __pm_runtime_put_autosuspend(cmdq->mbox.dev);
 }
 
 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)
 out:
        spin_unlock_irqrestore(&thread->chan->lock, flags);
        pm_runtime_mark_last_busy(cmdq->mbox.dev);
-       pm_runtime_put_autosuspend(cmdq->mbox.dev);
+       __pm_runtime_put_autosuspend(cmdq->mbox.dev);
 
        return 0;
 
@@ -550,7 +550,7 @@ wait:
                return -EFAULT;
        }
        pm_runtime_mark_last_busy(cmdq->mbox.dev);
-       pm_runtime_put_autosuspend(cmdq->mbox.dev);
+       __pm_runtime_put_autosuspend(cmdq->mbox.dev);
        return 0;
 }
 
This page took 0.055079 seconds and 4 git commands to generate.