Re: [PATCH] mailbox: mtk-cmdq: fix runtime PM usage counter leak in cmdq_mbox_flush

Markus Elfring <[email protected]>
Newsgroups org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-mediatek,org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
…
> Fix it by calling pm_runtime_put_noidle() before returning, matching
> the pattern used by other pm_runtime_get_sync() callers in the same
> subsystem (e.g. …).

How do you think about to use the function “pm_runtime_resume_and_get” instead?
https://elixir.bootlin.com/linux/v7.2/source/include/linux/pm_runtime.h#L530-L540

https://elixir.bootlin.com/linux/v7.2/source/drivers/mailbox/mtk-cmdq-mailbox.c#L557-L611

Regards,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.