From: Matthias Brugger <matthias.bgg@gmail.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>,
Jassi Brar <jassisinghbrar@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>
Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org
Subject: Re: [PATCH 24/51] mailbox: mtk-cmdq-mailbox: Switch to __pm_runtime_put_autosuspend()
Date: Mon, 7 Oct 2024 16:27:38 +0200 [thread overview]
Message-ID: <a94dc0d1-cbcb-494b-90d5-c4c960786988@gmail.com> (raw)
In-Reply-To: <20241004094123.113759-1-sakari.ailus@linux.intel.com>
On 04/10/2024 11:41, Sakari Ailus wrote:
> 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>
> ---
> drivers/mailbox/mtk-cmdq-mailbox.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c
> index 4bff73532085..180906761eda 100644
> --- a/drivers/mailbox/mtk-cmdq-mailbox.c
> +++ b/drivers/mailbox/mtk-cmdq-mailbox.c
> @@ -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 @@ static void cmdq_mbox_shutdown(struct mbox_chan *chan)
> 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 @@ static int cmdq_mbox_flush(struct mbox_chan *chan, unsigned long timeout)
> 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;
> }
>
next prev parent reply other threads:[~2024-10-07 14:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-04 9:41 [PATCH 00/51] treewide: Switch to __pm_runtime_put_autosuspend() Sakari Ailus
2024-10-04 9:41 ` [PATCH 24/51] mailbox: mtk-cmdq-mailbox: " Sakari Ailus
2024-10-07 14:27 ` Matthias Brugger [this message]
2024-10-04 14:38 ` [PATCH 00/51] treewide: " Ulf Hansson
2024-10-07 18:49 ` Laurent Pinchart
2024-10-07 22:08 ` Ulf Hansson
2024-10-07 22:25 ` Laurent Pinchart
2024-10-07 22:34 ` Ulf Hansson
2024-10-08 18:24 ` Rafael J. Wysocki
2024-10-09 10:20 ` Rafael J. Wysocki
2024-10-09 10:27 ` Ulf Hansson
2024-10-09 12:48 ` Richard Fitzgerald
2024-10-09 13:34 ` Rafael J. Wysocki
2024-10-08 20:38 ` Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a94dc0d1-cbcb-494b-90d5-c4c960786988@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=jassisinghbrar@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox