On Thu Jun 19 09:48:30 2025 +0200, Jorge Ramirez-Ortiz wrote: > Ensure the IRQ is disabled - and all pending handlers completed - before > dismantling the interrupt routing and clearing related pointers. > > This prevents any possibility of the interrupt triggering after the > handler context has been invalidated. > > Fixes: d96d3f30c0f2 ("[media] media: venus: hfi: add Venus HFI files") > Cc: sta...@vger.kernel.org > Signed-off-by: Jorge Ramirez-Ortiz <jorge.rami...@oss.qualcomm.com> > Reviewed-by: Dikshita Agarwal <quic_diksh...@quicinc.com> > Tested-by: Dikshita Agarwal <quic_diksh...@quicinc.com> # RB5 > Reviewed-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> > Signed-off-by: Bryan O'Donoghue <b...@kernel.org> > Signed-off-by: Hans Verkuil <hverk...@xs4all.nl>
Patch committed. Thanks, Hans Verkuil drivers/media/platform/qcom/venus/hfi_venus.c | 1 + 1 file changed, 1 insertion(+) --- diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c index c982f4527bb0..cec7f5964d3d 100644 --- a/drivers/media/platform/qcom/venus/hfi_venus.c +++ b/drivers/media/platform/qcom/venus/hfi_venus.c @@ -1682,6 +1682,7 @@ void venus_hfi_destroy(struct venus_core *core) venus_interface_queues_release(hdev); mutex_destroy(&hdev->lock); kfree(hdev); + disable_irq(core->irq); core->ops = NULL; }