f_thor: allow to download 4GB images
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Tue, 10 Nov 2015 11:29:18 +0000 (12:29 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 10 Oct 2019 04:38:36 +0000 (13:38 +0900)
commit62297804df69ccb515db3389982a117e209a4ef3
tree205b841c9774e97270cb4befde751ce783e0e342
parentfe215b2f7ddf30f36b326f7a3fe3734a872a37fe
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