From 8310c09541833f8a5d7f580830f63989a9789257 Mon Sep 17 00:00:00 2001 From: Andriy Tryshnivskyy Date: Mon, 4 Oct 2021 21:05:23 +0300 Subject: virtualization/linux-yocto: Add SCMIv3.0 Sensor Extensions patches. IIO SCMI driver assumes that those changes are present. It fails to compile without them. Bug-AGL: SPEC-3865 Signed-off-by: Andriy Tryshnivskyy Change-Id: Ia0011b5b621fc08321a1d74f3ae00e2780f3188a --- ...cmi-update-hwmon-internal-scale-data-type.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta-egvirt/recipes-kernel/linux/linux-yocto/scmi/0003-hwmon-scmi-update-hwmon-internal-scale-data-type.patch (limited to 'meta-egvirt/recipes-kernel/linux/linux-yocto/scmi/0003-hwmon-scmi-update-hwmon-internal-scale-data-type.patch') diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto/scmi/0003-hwmon-scmi-update-hwmon-internal-scale-data-type.patch b/meta-egvirt/recipes-kernel/linux/linux-yocto/scmi/0003-hwmon-scmi-update-hwmon-internal-scale-data-type.patch new file mode 100644 index 00000000..efc3bf1d --- /dev/null +++ b/meta-egvirt/recipes-kernel/linux/linux-yocto/scmi/0003-hwmon-scmi-update-hwmon-internal-scale-data-type.patch @@ -0,0 +1,30 @@ +From f32f6399b8a0a72c9e6c5c824a19f09f78f17c13 Mon Sep 17 00:00:00 2001 +From: Cristian Marussi +Date: Thu, 19 Nov 2020 17:49:03 +0000 +Subject: [PATCH] hwmon: scmi: update hwmon internal scale data type + +Use an int to calculate scale values inside scmi_hwmon_scale() to match +the updated scale data type in struct scmi_sensor_info. + +Cc: linux-hwmon@vger.kernel.org +Cc: Guenter Roeck +Signed-off-by: Cristian Marussi +Acked-by: Guenter Roeck +Signed-off-by: Vasyl Vavrychuk +--- + drivers/hwmon/scmi-hwmon.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/hwmon/scmi-hwmon.c b/drivers/hwmon/scmi-hwmon.c +index 09ce30cba54b..17d064e58938 100644 +--- a/drivers/hwmon/scmi-hwmon.c ++++ b/drivers/hwmon/scmi-hwmon.c +@@ -30,7 +30,7 @@ static inline u64 __pow10(u8 x) + + static int scmi_hwmon_scale(const struct scmi_sensor_info *sensor, u64 *value) + { +- s8 scale = sensor->scale; ++ int scale = sensor->scale; + u64 f; + + switch (sensor->type) { -- cgit 1.2.3-korg