TPL: TM2: f_thor: Allow to download 4GB images
authorLukasz Majewski <l.majewski@samsung.com>
Thu, 12 May 2016 11:25:43 +0000 (13:25 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 20 Oct 2020 01:33:51 +0000 (10:33 +0900)
commitbd0b829780c92bce1449d07f7a069997901251da
treeac20d96f909ef4d13841af5c79c783c51a170cc2
parent9f144f68d3d4187c2163ea82a4afa08fd68d070e
TPL: TM2: 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>
[m.szyprowski: ported from tizen.org and fixed 64bit issues]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers/usb/gadget/f_thor.c