diff options
| author | Tom Rini <[email protected]> | 2023-11-03 09:52:37 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-11-03 09:52:37 -0400 |
| commit | 563142350fee5bdd483a0cf00169d8272b60022f (patch) | |
| tree | 0eadcce9faf66a2366757444afe86f5458c4e31b /drivers | |
| parent | 1e044a9bd68220af562cc2d895936ec7cc3e3d6d (diff) | |
| parent | 60d904a494c6e89c323bc13fa9348869e07e86d3 (diff) | |
Merge tag 'u-boot-dfu-20231103' of https://source.denx.de/u-boot/custodians/u-boot-dfu
u-boot-dfu-20231103
- Fix CRC chunk size in fastboot
- Make size optional for dfu on mmc
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/dfu/dfu_mmc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/dfu/dfu_mmc.c b/drivers/dfu/dfu_mmc.c index cdb3c18b01d..12c54e90ef7 100644 --- a/drivers/dfu/dfu_mmc.c +++ b/drivers/dfu/dfu_mmc.c @@ -387,6 +387,16 @@ int dfu_fill_entity_mmc(struct dfu_entity *dfu, char *devstr, char **argv, int a dfu->data.mmc.lba_blk_size = mmc->read_bl_len; /* + * In case the size is zero (i.e. mmc raw 0x10 0), + * assume the user intends to use whole device. + */ + if (third_arg == 0) { + struct blk_desc *blk_dev = mmc_get_blk_desc(mmc); + + dfu->data.mmc.lba_size = blk_dev->lba; + } + + /* * Check for an extra entry at dfu_alt_info env variable * specifying the mmc HW defined partition number */ |
