u-boot/arch/arm/mach-stm32mp/cmd_stm32prog
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.c stm32mp: stm32prog: handle U-Boot script in flashlayout alternate 2022-05-10 10:56:39 +02:00
Kconfig stm32mp: stm32prog: add TEE support in stm32prog command 2022-05-10 10:56:39 +02:00
Makefile stm32mp: stm32prog: Add CONFIG_CMD_STM32PROG_SERIAL and _USB 2021-03-11 17:41:17 +01:00
stm32prog.c stm32mp: stm32prog: fix the last character of dfu_alt_add third parameter 2022-06-17 09:30:19 +02:00
stm32prog.h stm32mp: stm32prog: handle U-Boot script in flashlayout alternate 2022-05-10 10:56:39 +02:00
stm32prog_serial.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
stm32prog_usb.c stm32mp: stm32prog: handle interruption during the first enumeration 2022-05-10 10:56:39 +02:00