u-boot/arch/arm/mach-stm32mp
Patrick Delaunay 8b91f28bc8 stm32mp: stm32prog: fix the last character of dfu_alt_add third parameter
The third parameter of dfu_alt_add(), the string description of alternate,
is build in stm32prog_alt_add() with a unnecessary character ';' at the
end of the string.

This separator was required in the first implementation of
dfu_alt_add() but is no more needed in the current implementation;
this separator is managed only in dfu_config_interfaces() which call
dfu_alt_add() for this parameter without this separator.

And since the commit 53b406369e ("DFU: Check the number of arguments
and argument string strictly"), this added character cause an error when
the stm32prog command is executed because the third parameter of
dfu_alt_add() must be a string with a numerical value; 's' must be NULL
in the result of call in dfu_fill_entity_mmc():
  third_arg = simple_strtoul(argv[2], &s, 0);

Fixes: 53b406369e ("DFU: Check the number of arguments and argument string strictly")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2022-06-17 09:30:19 +02:00
..
cmd_stm32prog stm32mp: stm32prog: fix the last character of dfu_alt_add third parameter 2022-06-17 09:30:19 +02:00
include/mach ARM: stm32mp: correctly handle Silicon revision 2022-05-10 10:56:39 +02:00
boot_params.c sandbox: Remove OF_HOSTFILE 2021-10-27 16:38:26 -04:00
bsec.c stm32mp1: bsec: add missing dev in function comment 2022-03-15 09:10:52 +01:00
cmd_stm32key.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
cpu.c ARM: stm32mp: correctly handle Silicon revision 2022-05-10 10:56:39 +02:00
dram_init.c stm32mp: Fix board_get_usable_ram_top() 2021-09-06 10:00:11 +02:00
ecdsa_romapi.c arm: stm32mp1: Implement ECDSA signature verification 2021-08-16 10:49:35 +02:00
fdt.c ARM: stm32mp: skip ft_system_setup when the soc node is absent 2022-05-10 10:56:39 +02:00
Kconfig configs: stm32mp15: Enable OF_BOARD flag 2022-01-24 11:03:21 +01:00
Makefile arm: stm32mp1: Implement ECDSA signature verification 2021-08-16 10:49:35 +02:00
psci.c stm32mp: psci: Retain MCUDIVR, PLL3CR, PLL4CR, MSSCKSELR across suspend 2022-05-10 13:54:47 +02:00
pwr_regulator.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
spl.c spl: mmc: extend spl_mmc_boot_mode() to take mmc argument 2022-04-04 23:24:17 +01:00
syscon.c stm32mp: syscon: manage clock when present in device tree 2021-07-16 09:28:46 +02:00
tzc400.c arm: stm32mp: Implement support for TZC 400 controller 2021-07-27 09:48:09 +02:00