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

Markus Elfring Markus.Elfring at web.de
Sun Aug 23 22:43:36 PDT 2026


…
> 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



More information about the Linux-mediatek mailing list