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>
Wed, 12 Oct 2022 04:31:37 +0000 (13:31 +0900)
commit40d5829a03b9eba2ea4bb80e6d65d64eb8e8f65a
treeb444fd2bb9d3b8322d94584303b08a8ef8891fd6
parent0c549d8dd210420aea2d1902e6ed9f65ef2dfb50
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