]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: zynqmp: Fix tcminit mode value based on argv
authorPadmarao Begari <padmarao.begari@amd.com>
Mon, 30 Sep 2024 04:38:14 +0000 (10:08 +0530)
committerMichal Simek <michal.simek@amd.com>
Fri, 25 Oct 2024 12:10:31 +0000 (14:10 +0200)
commit342ccba5586a1e91d4506fe46f0ee7b551d2fd54
treeec82c32bdb62b70c9171fbe5d0e258aa8188f805
parent0ac27a62f9857837739585caa86fdd039556a31d
arm64: zynqmp: Fix tcminit mode value based on argv

The RPU pytest introduced by commit e894c10c040b
("test/py: zynqmp_rpu: Add test for loading RPU apps") expects
3rd parameter as string not a number that's why extend command
to actually handle both. The issue with existing code is that
when any non number string is passed hextoul returns 0. For
backward compatibility zynqmp tcminit 0/1 can be still used but
it is recommended to use strings instead.

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