From: Konrad Dybcio Date: Tue, 30 May 2023 12:30:44 +0000 (+0200) Subject: media: venus: hfi_venus: Sanitize venus_cpu_and_video_core_idle() per-VPU-version X-Git-Tag: v6.6.7~2014^2~142 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b96e82d54a82bd649ec3ff4a04860c40abb49f4;p=platform%2Fkernel%2Flinux-starfive.git media: venus: hfi_venus: Sanitize venus_cpu_and_video_core_idle() per-VPU-version Replace the general IS_V6 checks with more specific VPU version checks. Signed-off-by: Konrad Dybcio Signed-off-by: Stanimir Varbanov Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c index 5e4b97b..b5d7aab 100644 --- a/drivers/media/platform/qcom/venus/hfi_venus.c +++ b/drivers/media/platform/qcom/venus/hfi_venus.c @@ -1516,7 +1516,7 @@ static bool venus_cpu_and_video_core_idle(struct venus_hfi_device *hdev) void __iomem *cpu_cs_base = hdev->core->cpu_cs_base; u32 ctrl_status, cpu_status; - if (IS_V6(hdev->core)) + if (IS_IRIS2(hdev->core) || IS_IRIS2_1(hdev->core)) cpu_status = readl(wrapper_tz_base + WRAPPER_TZ_CPU_STATUS_V6); else cpu_status = readl(wrapper_base + WRAPPER_CPU_STATUS);