diff options
| author | Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> | 2025-11-04 18:39:06 +0530 |
|---|---|---|
| committer | Bjorn Andersson <andersson@kernel.org> | 2025-11-06 14:11:54 -0600 |
| commit | 6918667af5a7315eff3c56d871be4c5439f7f9d2 (patch) | |
| tree | d0d583454f33d70a30fc5fc976547621baa230be /drivers/soc | |
| parent | 6a571d762cda6c25517c5533b8bd06d56028cdcb (diff) | |
| download | linux-next-6918667af5a7315eff3c56d871be4c5439f7f9d2.tar.gz linux-next-6918667af5a7315eff3c56d871be4c5439f7f9d2.zip | |
soc: qcom: socinfo: Add reserve field to support future extension
Some of the new field added to socinfo structure with version 21, 22
and 23 which is only used by boot firmware and it is of no use for
Linux.Add reserve field in socinfo so that the structure remain
updated and prepared if we get any new field in future which could
be used by Linux. While at it, also updates switch case for backward
compatibility if the SoC runs with boot firmware which has these
new version added.
Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251104130906.167666-2-mukesh.ojha@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/soc')
| -rw-r--r-- | drivers/soc/qcom/socinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 37567f5492fa..003a2304d535 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -676,6 +676,9 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, &qcom_socinfo->info.fmt); switch (qcom_socinfo->info.fmt) { + case SOCINFO_VERSION(0, 23): + case SOCINFO_VERSION(0, 22): + case SOCINFO_VERSION(0, 21): case SOCINFO_VERSION(0, 20): qcom_socinfo->info.raw_package_type = __le32_to_cpu(info->raw_package_type); debugfs_create_u32("raw_package_type", 0444, qcom_socinfo->dbg_root, |
