This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: venus: hfi_venus: Sanitize venus_isr() per-VPU-version
Author:  Konrad Dybcio <[email protected]>
Date:    Tue May 30 14:30:43 2023 +0200

Replace the general IS_V6 checks with more specific VPU version checks.

Reviewed-by: Dikshita Agarwal <[email protected]>
Signed-off-by: Konrad Dybcio <[email protected]>
Signed-off-by: Stanimir Varbanov <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>

 drivers/media/platform/qcom/venus/hfi_venus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c 
b/drivers/media/platform/qcom/venus/hfi_venus.c
index 60252d05781e..5e4b97b0a4ae 100644
--- a/drivers/media/platform/qcom/venus/hfi_venus.c
+++ b/drivers/media/platform/qcom/venus/hfi_venus.c
@@ -1109,7 +1109,7 @@ static irqreturn_t venus_isr(struct venus_core *core)
        wrapper_base = hdev->core->wrapper_base;
 
        status = readl(wrapper_base + WRAPPER_INTR_STATUS);
-       if (IS_V6(core)) {
+       if (IS_IRIS2(core) || IS_IRIS2_1(core)) {
                if (status & WRAPPER_INTR_STATUS_A2H_MASK ||
                    status & WRAPPER_INTR_STATUS_A2HWD_MASK_V6 ||
                    status & CPU_CS_SCIACMDARG0_INIT_IDLE_MSG_MASK)
@@ -1121,7 +1121,7 @@ static irqreturn_t venus_isr(struct venus_core *core)
                        hdev->irq_status = status;
        }
        writel(1, cpu_cs_base + CPU_CS_A2HSOFTINTCLR);
-       if (!IS_V6(core))
+       if (!(IS_IRIS2(core) || IS_IRIS2_1(core)))
                writel(status, wrapper_base + WRAPPER_INTR_CLEAR);
 
        return IRQ_WAKE_THREAD;

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to