public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: iris: use IRQF_NO_AUTOEN when requesting the IRQ
@ 2026-04-08 13:13 Dmitry Baryshkov
  2026-04-08 13:24 ` Konrad Dybcio
  2026-04-22  6:47 ` Dikshita Agarwal
  0 siblings, 2 replies; 3+ messages in thread
From: Dmitry Baryshkov @ 2026-04-08 13:13 UTC (permalink / raw)
  To: Vikash Garodia, Dikshita Agarwal, Abhinav Kumar,
	Bryan O'Donoghue, Mauro Carvalho Chehab, Stefan Schmidt,
	Hans Verkuil
  Cc: linux-media, linux-arm-msm, linux-kernel

Requesting the IRQ and then immediately disabling it is fragile as it
leaves a window when the IRQ is still enabled although the underlying
device might be not completely setup for IRQ handling. Pass
IRQF_NO_AUTOEN instead of calling disable_irq_nosync().

Fixes: fb583a214337 ("media: iris: introduce host firmware interface with necessary hooks")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 drivers/media/platform/qcom/iris/iris_probe.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/media/platform/qcom/iris/iris_probe.c b/drivers/media/platform/qcom/iris/iris_probe.c
index ddaacda523ec..baec43acd6b6 100644
--- a/drivers/media/platform/qcom/iris/iris_probe.c
+++ b/drivers/media/platform/qcom/iris/iris_probe.c
@@ -245,12 +245,12 @@ static int iris_probe(struct platform_device *pdev)
 	core->iris_platform_data = of_device_get_match_data(core->dev);
 
 	ret = devm_request_threaded_irq(core->dev, core->irq, iris_hfi_isr,
-					iris_hfi_isr_handler, IRQF_TRIGGER_HIGH, "iris", core);
+					iris_hfi_isr_handler,
+					IRQF_TRIGGER_HIGH | IRQF_NO_AUTOEN,
+					"iris", core);
 	if (ret)
 		return ret;
 
-	disable_irq_nosync(core->irq);
-
 	iris_init_ops(core);
 	core->iris_platform_data->init_hfi_command_ops(core);
 	core->iris_platform_data->init_hfi_response_ops(core);

---
base-commit: 816f193dd0d95246f208590924dd962b192def78
change-id: 20260408-iris-no-autoen-56e8679aef94

Best regards,
--  
With best wishes
Dmitry


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] media: iris: use IRQF_NO_AUTOEN when requesting the IRQ
  2026-04-08 13:13 [PATCH] media: iris: use IRQF_NO_AUTOEN when requesting the IRQ Dmitry Baryshkov
@ 2026-04-08 13:24 ` Konrad Dybcio
  2026-04-22  6:47 ` Dikshita Agarwal
  1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2026-04-08 13:24 UTC (permalink / raw)
  To: Dmitry Baryshkov, Vikash Garodia, Dikshita Agarwal, Abhinav Kumar,
	Bryan O'Donoghue, Mauro Carvalho Chehab, Stefan Schmidt,
	Hans Verkuil
  Cc: linux-media, linux-arm-msm, linux-kernel

On 4/8/26 3:13 PM, Dmitry Baryshkov wrote:
> Requesting the IRQ and then immediately disabling it is fragile as it
> leaves a window when the IRQ is still enabled although the underlying
> device might be not completely setup for IRQ handling. Pass
> IRQF_NO_AUTOEN instead of calling disable_irq_nosync().
> 
> Fixes: fb583a214337 ("media: iris: introduce host firmware interface with necessary hooks")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---

I assume this was found the hard way..

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] media: iris: use IRQF_NO_AUTOEN when requesting the IRQ
  2026-04-08 13:13 [PATCH] media: iris: use IRQF_NO_AUTOEN when requesting the IRQ Dmitry Baryshkov
  2026-04-08 13:24 ` Konrad Dybcio
@ 2026-04-22  6:47 ` Dikshita Agarwal
  1 sibling, 0 replies; 3+ messages in thread
From: Dikshita Agarwal @ 2026-04-22  6:47 UTC (permalink / raw)
  To: Dmitry Baryshkov, Vikash Garodia, Abhinav Kumar,
	Bryan O'Donoghue, Mauro Carvalho Chehab, Stefan Schmidt,
	Hans Verkuil
  Cc: linux-media, linux-arm-msm, linux-kernel



On 4/8/2026 6:43 PM, Dmitry Baryshkov wrote:
> Requesting the IRQ and then immediately disabling it is fragile as it
> leaves a window when the IRQ is still enabled although the underlying
> device might be not completely setup for IRQ handling. Pass
> IRQF_NO_AUTOEN instead of calling disable_irq_nosync().
> 
> Fixes: fb583a214337 ("media: iris: introduce host firmware interface with necessary hooks")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  drivers/media/platform/qcom/iris/iris_probe.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 


Reviewed-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>

Thanks,
Dikshita

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-22  6:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-08 13:13 [PATCH] media: iris: use IRQF_NO_AUTOEN when requesting the IRQ Dmitry Baryshkov
2026-04-08 13:24 ` Konrad Dybcio
2026-04-22  6:47 ` Dikshita Agarwal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox