From nobody Mon Feb 9 02:51:18 2026 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37E593016FD for ; Mon, 27 Oct 2025 12:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761568030; cv=none; b=RuDmhByEE/Vr4QA8nkdkUHsXkFNHJiiQpLJ7/agdR8/TFa2FD1/WoY5JPk6JwVyJ+g3RO+nP+9gJNk0pFbwkAd68QN3WdcqXQdyW4c0yY+txIkwsUgSznEHI86IAZ3yTHgRq1eddbjZVq8nDqCXcLHtCISOGu+z0sT0LGm/LCHU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761568030; c=relaxed/simple; bh=QlGdzJciH1h4gz5Q1SzqSd8IKkSpeYMEZtL7i2pFW/A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lsrnofqLyi+iCYtjb4zr8KeRMuiI+n4Pg6bfIIdIfV6AoL2tgSIPXyU/qdh7cwplpCrmtMMzNye3giWidOd1rdLSpyLVqKQWqSrEk1RJvkBx1LUb8qkyPOmHRtAcmKUd0YBFqbnuvt7d62q1eQ5XjND62RFJ7KJ+naJ7p3NZuaU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=aCVI8MW3; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="aCVI8MW3" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 59R9FXEq1294976 for ; Mon, 27 Oct 2025 12:27:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= p9c7rVUQ+8XQDwfJNgLXJyZIItXH+75/qbByZsGVfLU=; b=aCVI8MW3tUcM1t8x zIfn8mIioH9XK6Eg1Hj6/JSIIzmViCUKdjr57uPk+VeJXaeqyASOOoeMQyrIrpNQ PqTDWtHFObSA4SAmNcW9wBGxCz0jxw8OCpsFi9ETRsC5udJHt+vv9ZXhRIeO+f9q UUQa+kkqgjgb6aRjMr1nlj1wZ2b+ksS56RPkXi0cbJa2ixVCVSjNPiE+z7o/Rhfq n6PW7QELsJAUAPBQohipxnXPbuswce+FvF87y7jWE5cE1BH7XLDztPq+eCrr2O/B Bvs6OxuiUAElnRkwTWkcSfklT/HYTH1jIlA/+tPqp+64Yo9YobME2Jg5oU0c39yH fzcE0Q== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4a0nnb4kmx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 27 Oct 2025 12:27:08 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-4e894937010so126478651cf.3 for ; Mon, 27 Oct 2025 05:27:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761568027; x=1762172827; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p9c7rVUQ+8XQDwfJNgLXJyZIItXH+75/qbByZsGVfLU=; b=CD11VIKb20NJ8omLGKQoHNggqRwHYCBNZtX3MO439ScwEHyfEFwjMMXAIrNou9ahM4 T2mzaygsMEQ7UVoOEF9PTXqW3lfs6aSo3SbkL1y4Ex4DJ0buj4EiIJUvgfaXUWpSPt4W k6vB9d5ojs/z93crvq19doLbP3+296SoAw5FiLHR7Ttytsti6Txl7wnS6p+fsnti0B9x ZL4svVkyaCnKsKr7x9M0JhDLwHaUB28DBRDDkwbdFGid5t8KtO2Vo7KDDIfDp+kV61bf BVKSh35ckoxMtEkUbbfVw2keN8LGKE6c3/wbll0EK5i2TZ2rrLwrXBUuugo0QDeH7bEs j7MA== X-Forwarded-Encrypted: i=1; AJvYcCWyZEk5k1OgjupkFW2Ecw37kUz6qIYhLfbNFgj+bC3P+7j3JxLzkAPafyzDwRxggjWg3tkHa8QJLH3fBGA=@vger.kernel.org X-Gm-Message-State: AOJu0YyOT08Dle9/wn3kn/PXC9FIlOf/5O6+h921zUdOIFXTRDIIlKqe 9Ymep87/10t1RbJjlbxvUDQD7X23CVgB9yTWj1x7YRLfxUD4oYDWOL0qJ3FFxNOx9k4EZvFNkXx haBWWEYQNDgh+JbsCDksc3PPsQEjp6CszaWospUtcZD/iSes7IfIhr5L74NbnT7/+DYA= X-Gm-Gg: ASbGnctPyg99GlvsD/gz203axwaIkJj29h+kYCnE/vdm9pty+bERLgHohX8VtoPQH0D jbzaNdt0sb2olMMca5whiim0RMIRxxkU6ovN9mFjk+ENPBglE6/8+5uFYnK+yFa2LasmDCxVCto +rlBRrCpfzBVzmf+JVVSpv+iFr3RNTSUuVQhhrzdZXR6i0/MJqmCNx2wFqkdBeH4SYL5Qbaczgv mIfrJmrosPY/ZJol4+HnHul1YHALOmkJF6g1Uo6oJGgirhfKENXst78nodf5j+i208UU2axnDR+ b/pqzPMhc/ciP2SNLMLPYcXb7ikEilND+27wKFxvvNSJI3XOCVpW1j4Hd/WWiqcdYNo6ZpqGXdI Yfc06wa7K3gNNt2WuILjhOYliDVRe5soMK3oikCPsZXchAzZCfD5K2RCiXSqz2YeiOCBIrCLc0M 48IGsYRtKPQweD X-Received: by 2002:ac8:58d5:0:b0:4eb:9fc2:791 with SMTP id d75a77b69052e-4eb9fc2147emr126089361cf.38.1761568027493; Mon, 27 Oct 2025 05:27:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcPSdiUDSlVMvky7hNGhRT/VQb6FqqH3OtzmbdmaiO2yoXvTHD9bnbqHMxNArUgUxGr0oY7A== X-Received: by 2002:ac8:58d5:0:b0:4eb:9fc2:791 with SMTP id d75a77b69052e-4eb9fc2147emr126088211cf.38.1761568025520; Mon, 27 Oct 2025 05:27:05 -0700 (PDT) Received: from umbar.lan (2001-14ba-a0c3-3a00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a0c3:3a00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-59301f83cb5sm2253474e87.102.2025.10.27.05.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Oct 2025 05:27:04 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 27 Oct 2025 14:27:00 +0200 Subject: [PATCH v5 2/6] media: iris: turn platform data into constants Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251027-iris-sc7280-v5-2-5eeab5670e4b@oss.qualcomm.com> References: <20251027-iris-sc7280-v5-0-5eeab5670e4b@oss.qualcomm.com> In-Reply-To: <20251027-iris-sc7280-v5-0-5eeab5670e4b@oss.qualcomm.com> To: Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab , Konrad Dybcio Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4328; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=QlGdzJciH1h4gz5Q1SzqSd8IKkSpeYMEZtL7i2pFW/A=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ8b/VNFPG1JmsVkammmVpvIKW7hE1Pad9m+6bruj4v2zc vObTJadjMYsDIxcDLJiiiw+BS1TYzYlh33YMbUeZhArE8gUBi5OAZjI66ns/2wNbH3Cb4nL5fx9 pSYx7+aRy00nThubXuEICpyw0fFsafO9hiTWwOLQa9pqRVUqXtP0K9NnTlmY2VOyeU6Pj5zcTGb TtQ+1lugYXY0QfWWcP40zcPuKL1Yvd3bMi6rd8yVASkMpi2NnyBeeAMc7t3ScWywNH8yTNXNdeU WnJvNViLnkr6cZG4qjv8VP6/8eeL6n+0D04dAvUpflJz5c63XKX+zPz88pmx02O8n07OV+qnc0w HtTk/Bp+YlOR+y+yH39rd65te23vm+NUtUUiV7PPnVzmz2PpNJU69cz5XT+kc+64VA0OXTJgrre ponfp8ZujpLNe9X+cEmvdI9+cf5sBVPWQ9qtSqe2218EAA== X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Proofpoint-GUID: bHrZPGp7GAT-55vJJAz-5TzHp-r-JM8- X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMDI3MDExNiBTYWx0ZWRfX4yP7bmrsG2uJ mMb3KXxiQ1d2tuzdssh88qANFCMQGnFNv+Jl9hAJXT+JlICEaYub6myNQ1HsAuqhdkZ5ZLlVSer 5Wis0jI3yiSYeuF32TXhtTSHvmWYY0F1ufoAzFeivHDMlPDskcV/onahytb0TRTwiTWBmxbRo3X KsnAK+SV9079sAXDmz5zHO05N2PvbiKXEcgGSvfXC9MiCvqaFKISE71lTByvSEiJVSApX2kIzrr KKDxKd4SnSKsnBA1jD3HyvPLaLEDdgQdLIkPPc33g9qFJ7gjszmPgU5gAAVYvBmuBqm87IyqhyW B9I+pyJfQde0GZ6Bs4IOil0AkHM4oZq2rLg8Tslqbt//80JMHt9l1Z1wQR+62GWi3b8MnpFarmd qKkRn4oeOCthtFg/iyVcbjNJA390yg== X-Authority-Analysis: v=2.4 cv=AJoZt3K7 c=1 sm=1 tr=0 ts=68ff651c cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=x6icFKpwvdMA:10 a=VkNPw1HP01LnGYTKEx00:22 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=vHBkZ3WG4vhFy3QD8MgA:9 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-ORIG-GUID: bHrZPGp7GAT-55vJJAz-5TzHp-r-JM8- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-27_05,2025-10-22_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 phishscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510020000 definitions=main-2510270116 Make all struct iris_platform_data instances constant, they are not modified at runtime. Reviewed-by: Bryan O'Donoghue Reviewed-by: Dikshita Agarwal Reviewed-by: Vikash Garodia Signed-off-by: Dmitry Baryshkov --- drivers/media/platform/qcom/iris/iris_platform_common.h | 10 +++++----- drivers/media/platform/qcom/iris/iris_platform_gen2.c | 8 ++++---- drivers/media/platform/qcom/iris/iris_platform_sm8250.c | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/media/platform/qcom/iris/iris_platform_common.h b/driv= ers/media/platform/qcom/iris/iris_platform_common.h index 17ed86bf78bb3b0bc3f0862253fba6505ac3d164..5ffc1874e8c6362b1c650e912c2= 30e9c4e3bd160 100644 --- a/drivers/media/platform/qcom/iris/iris_platform_common.h +++ b/drivers/media/platform/qcom/iris/iris_platform_common.h @@ -41,11 +41,11 @@ enum pipe_type { PIPE_4 =3D 4, }; =20 -extern struct iris_platform_data qcs8300_data; -extern struct iris_platform_data sm8250_data; -extern struct iris_platform_data sm8550_data; -extern struct iris_platform_data sm8650_data; -extern struct iris_platform_data sm8750_data; +extern const struct iris_platform_data qcs8300_data; +extern const struct iris_platform_data sm8250_data; +extern const struct iris_platform_data sm8550_data; +extern const struct iris_platform_data sm8650_data; +extern const struct iris_platform_data sm8750_data; =20 enum platform_clk_type { IRIS_AXI_CLK, /* AXI0 in case of platforms with multiple AXI clocks */ diff --git a/drivers/media/platform/qcom/iris/iris_platform_gen2.c b/driver= s/media/platform/qcom/iris/iris_platform_gen2.c index cbf38e13f89e5c4c46e759fbb86777854d751552..b444e816355624bca8248cce9da= 7adcd7caf6c5b 100644 --- a/drivers/media/platform/qcom/iris/iris_platform_gen2.c +++ b/drivers/media/platform/qcom/iris/iris_platform_gen2.c @@ -737,7 +737,7 @@ static const u32 sm8550_enc_op_int_buf_tbl[] =3D { BUF_SCRATCH_2, }; =20 -struct iris_platform_data sm8550_data =3D { +const struct iris_platform_data sm8550_data =3D { .get_instance =3D iris_hfi_gen2_get_instance, .init_hfi_command_ops =3D iris_hfi_gen2_command_ops_init, .init_hfi_response_ops =3D iris_hfi_gen2_response_ops_init, @@ -827,7 +827,7 @@ struct iris_platform_data sm8550_data =3D { * - controller_rst_tbl to sm8650_controller_reset_table * - fwname to "qcom/vpu/vpu33_p4.mbn" */ -struct iris_platform_data sm8650_data =3D { +const struct iris_platform_data sm8650_data =3D { .get_instance =3D iris_hfi_gen2_get_instance, .init_hfi_command_ops =3D iris_hfi_gen2_command_ops_init, .init_hfi_response_ops =3D iris_hfi_gen2_response_ops_init, @@ -912,7 +912,7 @@ struct iris_platform_data sm8650_data =3D { .enc_op_int_buf_tbl_size =3D ARRAY_SIZE(sm8550_enc_op_int_buf_tbl), }; =20 -struct iris_platform_data sm8750_data =3D { +const struct iris_platform_data sm8750_data =3D { .get_instance =3D iris_hfi_gen2_get_instance, .init_hfi_command_ops =3D iris_hfi_gen2_command_ops_init, .init_hfi_response_ops =3D iris_hfi_gen2_response_ops_init, @@ -998,7 +998,7 @@ struct iris_platform_data sm8750_data =3D { * - inst_caps to platform_inst_cap_qcs8300 * - inst_fw_caps to inst_fw_cap_qcs8300 */ -struct iris_platform_data qcs8300_data =3D { +const struct iris_platform_data qcs8300_data =3D { .get_instance =3D iris_hfi_gen2_get_instance, .init_hfi_command_ops =3D iris_hfi_gen2_command_ops_init, .init_hfi_response_ops =3D iris_hfi_gen2_response_ops_init, diff --git a/drivers/media/platform/qcom/iris/iris_platform_sm8250.c b/driv= ers/media/platform/qcom/iris/iris_platform_sm8250.c index e29cba993fde922b579eb7e5a59ae34bb46f9f0f..66a5bdd24d8a0e98b0554a01943= 8bf4caa1dc43c 100644 --- a/drivers/media/platform/qcom/iris/iris_platform_sm8250.c +++ b/drivers/media/platform/qcom/iris/iris_platform_sm8250.c @@ -314,7 +314,7 @@ static const u32 sm8250_enc_ip_int_buf_tbl[] =3D { BUF_SCRATCH_2, }; =20 -struct iris_platform_data sm8250_data =3D { +const struct iris_platform_data sm8250_data =3D { .get_instance =3D iris_hfi_gen1_get_instance, .init_hfi_command_ops =3D &iris_hfi_gen1_command_ops_init, .init_hfi_response_ops =3D iris_hfi_gen1_response_ops_init, --=20 2.47.3