u-boot-brain/arch
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
..
arc Driver model: make some udevice fields private 2021-01-05 22:34:43 -05:00
arm arm: stm32mp: stm32prog: always flush DFU on start command for uart 2021-01-13 09:52:58 +01:00
m68k arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header 2021-01-05 12:24:40 -07:00
microblaze microblaze: Enable GCC garbage collector for full U-Boot 2020-11-20 10:42:53 +01:00
mips Driver model: make some udevice fields private 2021-01-05 22:34:43 -05:00
nds32 arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header 2021-01-05 12:24:40 -07:00
nios2 arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header 2021-01-05 12:24:40 -07:00
powerpc powerpc: mpc85xx: Allow boards to override CONFIG_USB_MAX_CONTROLLER_COUNT 2020-12-10 13:56:39 +05:30
riscv Driver model: make some udevice fields private 2021-01-05 22:34:43 -05:00
sandbox dm: core: add a function to decode display timings 2021-01-12 10:58:05 +05:30
sh arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header 2021-01-05 12:24:40 -07:00
x86 Driver model: make some udevice fields private 2021-01-05 22:34:43 -05:00
xtensa arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header 2021-01-05 12:24:40 -07:00
.gitignore
Kconfig linker_lists: Fix alignment issue 2020-12-18 20:32:21 -07:00
u-boot-elf.lds arch: Add explicit linker script for u-boot-elf 2020-04-03 11:52:55 -04:00