stm32mp: stm32prog: accept device without partition
When partition is not found it is not a error but the selected device as no partition scheme, so nothing to check. The command need to continue to the next part_id. This patch correct an issue for ram0 target. [backport of commit53de79fecc("stm32mp: stm32prog: accept device without partition")] Fixes:ffc405e63b("stm32mp: stm32prog: add upport of partial update") Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Change-Id: Ica5db473ac0416c71b18f52d0b221e37d1f1a9aa
This commit is contained in:
@ -768,9 +768,8 @@ static int init_device(struct stm32prog_data *data,
|
||||
part_found = true;
|
||||
}
|
||||
|
||||
/* no partition for this device */
|
||||
if (!part_found) {
|
||||
stm32prog_err("%s (0x%x): Invalid partition",
|
||||
part->name, part->id);
|
||||
pr_debug("\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user