In case MMC has MBR system and fastboot writes GPT, MMC is still recognized as MBR. Invoke part_init() to purge cached data and update information about partition table type.
Signed-off-by: Roman Stratiienko <r.stratiie...@gmail.com> --- CC: Lukasz Majewski <lu...@denx.de>, CC: Patrick Delaunay <patrick.delau...@foss.st.com>, CC: Fabien Parent <fpar...@baylibre.com>, CC: Filip Brozovic <fbrozo...@gmail.com>, CC: Lokesh Vutla <lokeshvu...@ti.com>, CC: Marek Szyprowski <m.szyprow...@samsung.com>, CC: Mingming lee <mingming....@mediatek.com>, CC: Roman Kovalivskyi <roman.kovalivs...@globallogic.com>, CC: Sam Protsenko <joe.s...@gmail.com>, CC: Simon Glass <s...@chromium.org>, --- drivers/fastboot/fb_mmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/fastboot/fb_mmc.c b/drivers/fastboot/fb_mmc.c index 4e26cef9417..0ad11600ef6 100644 --- a/drivers/fastboot/fb_mmc.c +++ b/drivers/fastboot/fb_mmc.c @@ -493,6 +493,7 @@ void fastboot_mmc_flash_write(const char *cmd, void *download_buffer, response); return; } + part_init(dev_desc); printf("........ success\n"); fastboot_okay(NULL, response); return; @@ -514,6 +515,7 @@ void fastboot_mmc_flash_write(const char *cmd, void *download_buffer, response); return; } + part_init(dev_desc); printf("........ success\n"); fastboot_okay(NULL, response); return; -- 2.27.0