summaryrefslogtreecommitdiffstats
path: root/common/fb_mmc.c
diff options
context:
space:
mode:
authorSteve Rae <srae@broadcom.com>2016-06-07 11:19:35 -0700
committerTom Rini <trini@konsulko.com>2016-06-27 16:36:33 -0400
commit64ece84854ae49f40e9b9d4d88502247774f9d2f (patch)
tree5d02749db9a0ef23a4bd25fb66badd054162f3f2 /common/fb_mmc.c
parentac6e5fed31ccd1da18b8ef10542c3534bd2dbd38 (diff)
downloadblackbird-obmc-uboot-64ece84854ae49f40e9b9d4d88502247774f9d2f.tar.gz
blackbird-obmc-uboot-64ece84854ae49f40e9b9d4d88502247774f9d2f.zip
fastboot: sparse: remove session-id logic
This "session-id" alogrithm is not required, and currently corrupts the stored image whenever more the one "session" is required. Signed-off-by: Steve Rae <srae@broadcom.com>
Diffstat (limited to 'common/fb_mmc.c')
-rw-r--r--common/fb_mmc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/common/fb_mmc.c b/common/fb_mmc.c
index e3abcc85be..9e53adba5e 100644
--- a/common/fb_mmc.c
+++ b/common/fb_mmc.c
@@ -97,9 +97,8 @@ static void write_raw_image(struct blk_desc *dev_desc, disk_partition_t *info,
fastboot_okay(response_str, "");
}
-void fb_mmc_flash_write(const char *cmd, unsigned int session_id,
- void *download_buffer, unsigned int download_bytes,
- char *response)
+void fb_mmc_flash_write(const char *cmd, void *download_buffer,
+ unsigned int download_bytes, char *response)
{
struct blk_desc *dev_desc;
disk_partition_t info;
@@ -153,8 +152,7 @@ void fb_mmc_flash_write(const char *cmd, unsigned int session_id,
printf("Flashing sparse image at offset " LBAFU "\n",
info.start);
- store_sparse_image(&sparse, &sparse_priv, session_id,
- download_buffer);
+ store_sparse_image(&sparse, &sparse_priv, download_buffer);
} else {
write_raw_image(dev_desc, &info, cmd, download_buffer,
download_bytes);
OpenPOWER on IntegriCloud