[U-Boot] [U-Boot,06/10] dfu: mmc: buffer file reads too
Tom Rini
trini at konsulko.com
Sat Sep 12 14:51:31 CEST 2015
On Fri, Sep 04, 2015 at 10:03:47PM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> 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 at nvidia.com>
> Acked-by: Lukasz Majewski <l.majewski at samsung.com>
> Tested-by: Lukasz Majewski <l.majewski at samsung.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150912/05b1c8a0/attachment.sig>
More information about the U-Boot
mailing list