diff options
author | Michal Simek | 2023-07-13 16:36:27 +0200 |
---|---|---|
committer | Tom Rini | 2023-07-25 12:44:46 -0400 |
commit | 395ab12b5f45bc5163f610f07695c73940bfae48 (patch) | |
tree | 4329c3c6079dc0fe93190f73705b2dbaac2cc8f4 /include/linux/sizes.h | |
parent | a6dd927f5b1c61e7b6afc8059378408c8c8db2c8 (diff) |
fwu: mtd: Fix dfu_alt_info generation for 2 images per bank
Code rewrites the last char of size with adding &. It is visible from
dfu_alt_info print before this patch:
Make dfu_alt_info: 'mtd nor0=bank0 raw 2320000 80000;bank1 raw 27a0000
8000&mtd nor0=bank0 raw 23a0000 4000000;bank1 raw 2820000 4000000'
And after it:
Make dfu_alt_info: 'mtd nor0=bank0 raw 2320000 80000;bank1 raw 27a0000
80000&mtd nor0=bank0 raw 23a0000 4000000;bank1 raw 2820000 4000000'
Size for bank0 and bank1 must be the same because it is the same image.
Signed-off-by: Michal Simek <michal.simek@amd.com>
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'include/linux/sizes.h')
0 files changed, 0 insertions, 0 deletions