Re: [PATCH v3] media: qcom: iris: guard IRQ handler with runtime PM check
From: Dmitry Baryshkov
Date: Thu Jun 04 2026 - 09:42:50 EST
On Thu, Jun 04, 2026 at 08:25:10AM +0000, Hungyu Lin wrote:
> Use pm_runtime_get_if_active() before accessing hardware
> registers in the threaded IRQ handler. Skip interrupt processing
> when the device is not active.
Please clarfiy why you are performing the changes instead of describing
the changes on their own. There should be no IRQs coming from the device
if it is not active.
>
> Signed-off-by: Hungyu Lin <dennylin0707@xxxxxxxxx>
> ---
> v2:
> - Use pm_runtime_get_if_active() instead of pm_runtime_get_if_in_use()
> - Handle negative runtime PM return values correctly
> - Return IRQ_NONE when interrupt processing is skipped
>
> v3:
> - Remove the early enable_irq() from the PM-inactive early-return path
> - IRQ re-enablement is already handled by iris_vpu_power_on() after power-on
>
> drivers/media/platform/qcom/iris/iris_hfi_common.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
--
With best wishes
Dmitry