u-boot/arch/arm/mach-stm32mp/cmd_stm32prog
Patrick Delaunay 53de79fecc stm32mp: stm32prog: accept device without partition
When partitions are not available on a device the command stm32prog raises
an error but a device can have no partition to check in init_device()
and the command need to continue to the next part_id.

This patch correct an issue for ram0 target, when block_dev and mtd
are NULL.

For example with the simple flashlayout file:

Opt	Part	Name	Type	Device	Offset	Binary
-	0x01	fsbl	Binary	none	0x0	tf-a-serialboot.stm32
-	0x03	ssbl	Binary	none	0x0	u-boot.stm32
P	0x10	kernel	System	ram0	0xC2000000	uImage.bin
P	0x11	dtb	FileSytem	ram0	0xC4000000	stm32mp157f-ev1.dtb

Fixes: ffc405e63b ("stm32mp: stm32prog: add upport of partial update")
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
2020-10-21 18:12:20 +02:00
..
cmd_stm32prog.c arm: stm32mp: stm32prog: use IS_ENABLED to prevent ifdef 2020-08-13 09:52:49 +02:00
Makefile stm32mp: stm32prog: add serial link support 2020-05-14 09:02:12 +02:00
stm32prog.c stm32mp: stm32prog: accept device without partition 2020-10-21 18:12:20 +02:00
stm32prog.h stm32mp: stm32prog: add support of RAM target 2020-05-14 09:02:12 +02:00
stm32prog_serial.c sf: Drop dm.h header file from spi_flash.h 2020-08-03 22:19:54 -04:00
stm32prog_usb.c arm: stm32mp: stm32prog: add "Device Name" in iproduct during DFU USB enumeration 2020-07-07 16:01:23 +02:00