u-boot/arch/arm/mach-stm32mp
Patrick Delaunay 751f918bdb arm: stm32mp: stm32prog: always flush DFU on start command for uart
Remove the test on data->dfu_seq, because dfu_seq=0 not only when
the DFU is not started (mask with 0xffff). This flush is mandatory
as the final treatment, common with USB, is done in DFU callback.

This patch avoids issue if the received length is a multiple of
the DFU packet.

For example if size of bootfs partition is egual to 0x4000000,
data->dfu_seq=0 at the end of the partition, the flush it not
requested and the phase is not increased in the callback.
U-Boot continue to request the bootfs in the next GetPhase command.

Fixes: 468f0508b5 ("stm32mp: stm32prog: add serial link support")
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2021-01-13 09:52:58 +01:00
..
cmd_stm32prog arm: stm32mp: stm32prog: always flush DFU on start command for uart 2021-01-13 09:52:58 +01:00
include/mach arm: stm32: cleanup arch gpio.h 2020-10-21 18:12:20 +02:00
boot_params.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
bsec.c arm: stm32mp: bsec: migrate trace to log macro 2021-01-13 09:52:58 +01:00
cmd_stm32key.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
config.mk Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
cpu.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
dram_init.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
fdt.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
Kconfig stm32mp: limit size of cacheable DDR in pre-reloc stage 2020-10-21 18:12:20 +02:00
Makefile arm: stm32mp: spl: add bsec driver in SPL 2020-07-07 16:01:23 +02:00
psci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pwr_regulator.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
spl.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
syscon.c stm32mp1: pwr: use the last binding for pwr 2020-02-13 17:26:22 +01:00