u-boot/drivers/dfu
Stephen Warren 411c5e57e8 dfu: mmc: buffer file reads too
When writing to files in a filesystem on MMC, dfu_mmc.c buffers up the
entire file content until the end of the transaction, at which point the
file is written in one go. This allows writing files larger than the USB
transfer size (CONFIG_SYS_DFU_DATA_BUF_SIZE); the maximum written file
size is CONFIG_SYS_DFU_MAX_FILE_SIZE (the size of the temporary buffer).

The current file reading code does not do any buffering, and so limits
the maximum read file size to the USB transfer size. Enhance the code to
do the same kind of buffering as the write path, so the same file size
limits apply.

Remove the size checking code from dfu_read() since all read paths now
support larger files than the USB transfer buffer.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
2015-09-11 17:15:23 -04:00
..
Kconfig dfu: tftp: Kconfig: Add Kconfig entry for dfu tftp feature 2015-09-07 13:41:05 +02:00
Makefile dfu: tftp: update: Provide tftp support for the DFU subsystem 2015-09-07 13:41:04 +02:00
dfu.c dfu: mmc: buffer file reads too 2015-09-11 17:15:23 -04:00
dfu_mmc.c dfu: mmc: buffer file reads too 2015-09-11 17:15:23 -04:00
dfu_nand.c dfu: nand: Verify writes 2015-03-30 23:24:38 -05:00
dfu_ram.c dfu: defer parsing of device string to IO backend 2014-08-09 11:16:58 -04:00
dfu_sf.c dm: Add spi.h header to a few files 2014-10-22 10:36:47 -06:00
dfu_tftp.c dfu: tftp: update: Provide tftp support for the DFU subsystem 2015-09-07 13:41:04 +02:00