From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEEE9342C93 for ; Mon, 9 Feb 2026 11:34:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770636898; cv=none; b=DGh4YWiB7BSWjSdg1PT2fJJsOK4QUIAgHbiRkGHQvm1ncYInqwwL4bYFSexvxUZmXp2avIPNTHd979DSXz1L+xEvyoAUfnH4Bws7lXXggC5BbA1U425QftswRYvECEr9FsyWho+atfjycbzBqKh/ktGT0toXS4VYRhfI/PiMCKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770636898; c=relaxed/simple; bh=jzVkPYNeSIoMdrBE1x/sOLXr0C2f2cjy6VUr9kYNYag=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XJa9XrOTzMPxDDsaPX/nywlXznR4oQvCEHXLRPigsyGTTjwHdGFY1To45+/cJU94kVMeQrClt1IHuK1faIfYPb24877laELKABiE8WW/TTVGQovvaYLcK8gSb5S4wjAQuHEfyCDioD4xJ6x1mOq4TJu8WsUtMgNTIQZKj/NSxPo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zFe3IVwe; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zFe3IVwe" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4807068eacbso38956735e9.2 for ; Mon, 09 Feb 2026 03:34:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770636896; x=1771241696; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=38FYNGu3q/riOqlxe8A2OPi6B7gxgzW4SRm41XQsBIk=; b=zFe3IVwerQ8Sypvz6I28C313zZjFJ4laGFu3qBoNzR4udWzT7TSI4mYNsAOG1Yn6/Z WVu1g2ZMOjBpNsYXC4xO+eh+rcSsbhEaDfdCbJOnlQrdrsUbr93XDovGk9E95pCjEYwJ TRQtNCwJnse7vcz+am9IwauBzjo7hHxdO+qHG5I5CEXZfgxwGzyO55mEmUf1EY00PmUM lWTuPg/MbzPxxUW1RV20csjfs4UXKhXIW1/aZq8BMpaG+HYvxuHdTdDrbG6oUVUFBNIP qb3mqNqO8qrqaYtuzkFSjbew1F5O9/woMDIWcpsx9Tf/WDnuFxJSulu6O0ZnMGl+XzHn mizg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770636896; x=1771241696; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=38FYNGu3q/riOqlxe8A2OPi6B7gxgzW4SRm41XQsBIk=; b=s2M89y8hcfLghqZAIgWwqXpRzbe3zNyZSWQnVpQH/Ix0t2o2pOWRbmyAa2V3eqpDxV SrAoPwY/MMENX6jiCm2qWkwFDi5pDd3UEqZfpuEzMe6ft5qa+pVXN551p4v6HbZfWXDh TRf5AvtzlkckdpzfDoo2/NKkqSn7GKVaBD9UkMyZe3LXGllG3ZUkp/YwOtQiZ4BUOjii ngTcLVIOxdBVZDRjOmdUsiHKmz46cP2e0pOgrCo8r4D/ADwhe6rkJnyXYoHB1QQLuvr7 ngSbdU7vRZ4C5LIia1DRZhTWVV+Rglzv6lCg2SGWAEYNJJ26pTo4sUVZfu4Z4C2WfWwZ chww== X-Forwarded-Encrypted: i=1; AJvYcCWT17BWZemWEcg2O5IwrTE38+gBqu900750Dl8ut2Y7Zzogt3+AlLLz4Jnt4OwjgtljkTIYHTSdEM8/xFE=@vger.kernel.org X-Gm-Message-State: AOJu0YzChbgiixrm2IUD6njbj25QLg7f3ugkXFqPtbiCUkGUHbY745Hn 9CVZpWPFnZCCvdNLuwwp5/plMwsJ60YZ/WNWMqHpqwzOZ7u8ikwOffgmA5hc6Bawsxg= X-Gm-Gg: AZuq6aKwfjja84BBFhp65kKA6FMjQIQFJGsHTF6Mc0grwDi6Oby/xE2Hs1t5iWIlPwq OeIX6NniU3iCE56hHRWZ054GSZ+AHvIDWX3JbMq5A52eIKNCZuXfQDiM67qcscRlmHOT2M7dqV/ sjEgNrhBA2K43myCsXTsP2pSvlhgRHTsCZSSjR18rH5aVpVobX4gKPlu3ei/W+ZrT0q+l5lpRpm JKp+nDVloohihxxJcRY0zZmSIFxr+Ww2NUCgvqHquEwpMPOIUFypTdwFqBEJVaPzH78dzLlVEo3 UTrQvW5jgjD7Mz9dDTZhX4k5pDN+5Ieu9bPxCOF25WCTangKBxO3IugQkXqdM5atanKKsQ24nLS NT4m5B9yaYMbPbjpd217iPn58DMMwKCGQrYGsEiMMiowbB20SXyWpgpO9qv6WhTi/Hl/b0DrNIl XNrFIpyg+kjqKLW92JOfqJgSg8Gl+zdSu9iO/fJpl0O53fDdwQfOks X-Received: by 2002:a05:600c:3509:b0:471:700:f281 with SMTP id 5b1f17b1804b1-4832021e93cmr157079665e9.25.1770636896134; Mon, 09 Feb 2026 03:34:56 -0800 (PST) Received: from [192.168.0.40] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-436296bcdfcsm27333322f8f.10.2026.02.09.03.34.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Feb 2026 03:34:55 -0800 (PST) Message-ID: <2511ec4d-7c77-450c-ad1e-ef7dbd6ef02c@linaro.org> Date: Mon, 9 Feb 2026 11:34:53 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] media: iris: Initialize HFI ops after firmware load in core init To: Dikshita Agarwal , Vikash Garodia , Abhinav Kumar , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260209-iris_sc7280_gen2_support-v1-0-390000a4fa39@oss.qualcomm.com> <20260209-iris_sc7280_gen2_support-v1-1-390000a4fa39@oss.qualcomm.com> From: Bryan O'Donoghue Content-Language: en-US In-Reply-To: <20260209-iris_sc7280_gen2_support-v1-1-390000a4fa39@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 09/02/2026 09:45, Dikshita Agarwal wrote: > The HFI command/response ops were previously initialized in probe(), but > we don't have firmware loaded at probe time. Since HFI is tightly > coupled to firmware, initialize the HFI ops after firmware has been > successfully loaded and booted. "but," not ", but" I'll fix that for you on application. > > Signed-off-by: Dikshita Agarwal > --- > drivers/media/platform/qcom/iris/iris_core.c | 2 ++ > drivers/media/platform/qcom/iris/iris_hfi_common.c | 6 ++++++ > drivers/media/platform/qcom/iris/iris_hfi_common.h | 1 + > drivers/media/platform/qcom/iris/iris_probe.c | 2 -- > 4 files changed, 9 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/platform/qcom/iris/iris_core.c b/drivers/media/platform/qcom/iris/iris_core.c > index 8406c48d635b6eba0879396ce9f9ae2292743f09..8e4cc6d6123069dea860062f0172f1e4b90cfc13 100644 > --- a/drivers/media/platform/qcom/iris/iris_core.c > +++ b/drivers/media/platform/qcom/iris/iris_core.c > @@ -75,6 +75,8 @@ int iris_core_init(struct iris_core *core) > if (ret) > goto error_unload_fw; > > + iris_init_hfi_ops(core); > + > ret = iris_hfi_core_init(core); > if (ret) > goto error_unload_fw; > diff --git a/drivers/media/platform/qcom/iris/iris_hfi_common.c b/drivers/media/platform/qcom/iris/iris_hfi_common.c > index 92112eb16c11048e28230a2926dfb46e3163aada..bbca17edf281a11142d7582178cd7562be053b45 100644 > --- a/drivers/media/platform/qcom/iris/iris_hfi_common.c > +++ b/drivers/media/platform/qcom/iris/iris_hfi_common.c > @@ -74,6 +74,12 @@ u32 iris_hfi_get_v4l2_matrix_coefficients(u32 hfi_coefficients) > } > } > > +void iris_init_hfi_ops(struct iris_core *core) > +{ > + core->iris_platform_data->init_hfi_command_ops(core); > + core->iris_platform_data->init_hfi_response_ops(core); > +} > + > int iris_hfi_core_init(struct iris_core *core) > { > const struct iris_hfi_command_ops *hfi_ops = core->hfi_ops; > diff --git a/drivers/media/platform/qcom/iris/iris_hfi_common.h b/drivers/media/platform/qcom/iris/iris_hfi_common.h > index 3edb5ae582b49bea2e2408c4a5cfc0a742adc05f..498a08314cdeb65b4b621e2200aae8685f4a025b 100644 > --- a/drivers/media/platform/qcom/iris/iris_hfi_common.h > +++ b/drivers/media/platform/qcom/iris/iris_hfi_common.h > @@ -149,6 +149,7 @@ struct hfi_subscription_params { > u32 iris_hfi_get_v4l2_color_primaries(u32 hfi_primaries); > u32 iris_hfi_get_v4l2_transfer_char(u32 hfi_characterstics); > u32 iris_hfi_get_v4l2_matrix_coefficients(u32 hfi_coefficients); > +void iris_init_hfi_ops(struct iris_core *core); > int iris_hfi_core_init(struct iris_core *core); > int iris_hfi_pm_suspend(struct iris_core *core); > int iris_hfi_pm_resume(struct iris_core *core); > diff --git a/drivers/media/platform/qcom/iris/iris_probe.c b/drivers/media/platform/qcom/iris/iris_probe.c > index ddaacda523ecb9990af0dd0640196223fbcc2cab..22c7b3410710328b900fc49459cd399aa0e89b02 100644 > --- a/drivers/media/platform/qcom/iris/iris_probe.c > +++ b/drivers/media/platform/qcom/iris/iris_probe.c > @@ -252,8 +252,6 @@ static int iris_probe(struct platform_device *pdev) > 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); > > ret = iris_init_resources(core); > if (ret) > > -- > 2.34.1 > > Reviewed-by: Bryan O'Donoghue