f_thor: allow to download 4GB images
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Tue, 10 Nov 2015 11:29:18 +0000 (12:29 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:19:26 +0000 (11:19 +0100)
commitf20ef6e66e6c622bc8702da008d084b398ca7359
tree9eb320d7d364e4d6494565aa8c8e357dbc1f4677
parent6272019f7cde1935687530b23d8f51fadfe01525
f_thor: allow to download 4GB images

This commit fixes 2GB file size limit for thor downloader.

The application on host side sends the downloaded file size as 32-bit
unsigned value. But the thor implementation on U-Boot side interpreted
this as signed value. This caused an error for files with size greater
than 2GB.

This commit fixes the data types in code, which allows to send file
of size 4GB.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
drivers/usb/gadget/f_thor.c