]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mailbox: mtk-cmdq-mailbox: Switch to __pm_runtime_put_autosuspend()
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 4 Oct 2024 09:41:23 +0000 (12:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:33:41 +0000 (16:33 +0200)
[ Upstream commit 08fb6d8ff900a1d06ef2f4a6ded45cdaa7140c01 ]

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>
Stable-dep-of: 3f39f5652037 ("mailbox: mtk-cmdq: Remove pm_runtime APIs from cmdq_mbox_send_data()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mailbox/mtk-cmdq-mailbox.c

index d24f71819c3d656e5b16d74ddef4c235b5b19729..4e093b58fb7b549d4e48e62d4a864d67163e0a34 100644 (file)
@@ -390,7 +390,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;
        }
 
@@ -440,7 +440,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;
 }
@@ -488,7 +488,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)
@@ -528,7 +528,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;
 
@@ -543,7 +543,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;
 }