]> git.sur5r.net Git - u-boot/blobdiff - common/fb_nand.c
ARM: rmobile: Represent SF partitioning with mtdparts on Alt
[u-boot] / common / fb_nand.c
index aa28046cbd83050b94f76306f6f448e97e5101fc..c07655e49ed8ec10d6143b165855f70b55494d55 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2014 Broadcom Corporation.
  * Copyright 2015 Free Electrons.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <config.h>
@@ -175,13 +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,
-                                  download_bytes);
+               ret = write_sparse_image(&sparse, cmd, download_buffer);
+               if (!ret)
+                       fastboot_okay("");
        } else {
                printf("Flashing raw image at offset 0x%llx\n",
                       part->offset);