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

From: Krzysztof Kozlowski

Date: Sat Feb 14 2026 - 14:14:07 EST


On 14/02/2026 13:39, Krzysztof Kozlowski wrote:
>
> 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