Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Mukesh Ojha and committed by
Bjorn Andersson
6918667a 6a571d76

+5
+3
drivers/soc/qcom/socinfo.c
··· 676 676 &qcom_socinfo->info.fmt); 677 677 678 678 switch (qcom_socinfo->info.fmt) { 679 + case SOCINFO_VERSION(0, 23): 680 + case SOCINFO_VERSION(0, 22): 681 + case SOCINFO_VERSION(0, 21): 679 682 case SOCINFO_VERSION(0, 20): 680 683 qcom_socinfo->info.raw_package_type = __le32_to_cpu(info->raw_package_type); 681 684 debugfs_create_u32("raw_package_type", 0444, qcom_socinfo->dbg_root,
+2
include/linux/soc/qcom/socinfo.h
··· 84 84 __le32 boot_core; 85 85 /* Version 20 */ 86 86 __le32 raw_package_type; 87 + /* Version 21, 22, 23 */ 88 + __le32 reserve1[4]; 87 89 }; 88 90 89 91 /* Internal feature codes */