]> git.sur5r.net Git - u-boot/blobdiff - common/fb_nand.c
spi: bcm63xx_hsspi: convert to use live dt
[u-boot] / common / fb_nand.c
index d7d9eb08f696ced224880753a5ada465e9cd4590..c07655e49ed8ec10d6143b165855f70b55494d55 100644 (file)
@@ -174,12 +174,15 @@ void fb_nand_flash_write(const char *cmd, void *download_buffer,
                sparse.size = part->size / sparse.blksz;
                sparse.write = fb_nand_sparse_write;
                sparse.reserve = fb_nand_sparse_reserve;
+               sparse.mssg = fastboot_fail;
 
                printf("Flashing sparse image at offset " LBAFU "\n",
                       sparse.start);
 
                sparse.priv = &sparse_priv;
-               write_sparse_image(&sparse, cmd, download_buffer);
+               ret = write_sparse_image(&sparse, cmd, download_buffer);
+               if (!ret)
+                       fastboot_okay("");
        } else {
                printf("Flashing raw image at offset 0x%llx\n",
                       part->offset);