* Re: [PATCH] mailbox: mtk-cmdq: fix runtime PM usage counter leak in cmdq_mbox_flush
[not found] <20260823112321.2039-1-manushprajwal555@gmail.com>
@ 2026-08-24 5:43 ` Markus Elfring
0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2026-08-24 5:43 UTC (permalink / raw)
To: Manush Prajwal, linux-mediatek, linux-arm-kernel,
Angelo Gioacchino Del Regno, Jassi Brar, Matthias Brugger
Cc: LKML, kernel-janitors, Jason-JH.Lin, Jassi Brar
…
> 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
^ permalink raw reply [flat|nested] only message in thread