Thread (9 messages) 9 messages, 3 authors, 2026-02-19

Re: [PATCH RFT 2/3] firmware: exynos-acpm: Count number of commands in acpm_xfer

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2026-02-14 19:13:57
Also in: linux-hardening, linux-samsung-soc, lkml, llvm

On 14/02/2026 13:39, Krzysztof Kozlowski wrote:
quoted hunk ↗ jump to hunk
 
 	if (response) {
 		xfer->rxd = cmd;
-		xfer->rxlen = cmdlen;
+		xfer->rxcnt = cmdlen;
 	}
 }
 
@@ -50,7 +50,7 @@ int acpm_dvfs_set_rate(const struct acpm_handle *handle,
 	u32 cmd[4];
 
 	acpm_dvfs_init_set_rate_cmd(cmd, clk_id, rate);
-	acpm_dvfs_set_xfer(&xfer, cmd, sizeof(cmd), acpm_chan_id, false);
+	acpm_dvfs_set_xfer(&xfer, cmd, ARRAY_SIZE(cmd), acpm_chan_id, false);
Went fine through few build tests, but apparently there is a setup this
needs proper header (<linux/array_size.h>), as reported by kbuild robot.

There will be v2 in few days.

Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help