]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: zynqmp: Fix r5 mode for cpu release command
authorPadmarao Begari <padmarao.begari@amd.com>
Mon, 4 Nov 2024 12:27:50 +0000 (17:57 +0530)
committerMichal Simek <michal.simek@amd.com>
Fri, 15 Nov 2024 13:32:47 +0000 (14:32 +0100)
commitb872583df10416d437ac18df6ad5c4095806c949
tree0ac35c37b19b5ecdaf816c8bbedbfbb80aa18576
parent6f7ff73fbae9dcf9fc86aaeb76599fcd9df937e9
arm64: zynqmp: Fix r5 mode for cpu release command

The cpu release command for r5 mode (lockstep/split) argument
accepts only string. But the zynqmp tcminit command accepts
string or number for r5 mode (lockstep/split or 0/1) argument.
To fix the r5 mode argument, the common argument (lockstep/split
or 0/1) is used across different u-boot commands. Use the strcmp()
instead of strncmp() to make uniform the r5 mode (lockstep/split
or 0/1) for the zynqmp tcminit and cpu release command.

Signed-off-by: Padmarao Begari <padmarao.begari@amd.com>
Link: https://lore.kernel.org/r/20241104122750.96251-1-padmarao.begari@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/arm/mach-zynqmp/mp.c