]> git.dujemihanovic.xyz Git - u-boot.git/commit
fastboot: getvar: fix partition-size return value
authorGary Bisson <gary.bisson@boundarydevices.com>
Thu, 27 Aug 2020 08:51:14 +0000 (10:51 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 1 Sep 2020 12:47:43 +0000 (14:47 +0200)
commit293a6dfeb96129abebf1ad927fa9aedf03a66d34
treee3ff28a24447b39d509a142ce126f2da6a39d153
parent64af06ce91d1b2f7819a273e56f7c41186a7588b
fastboot: getvar: fix partition-size return value

The size returned by 'getvar partition-size' should be in bytes, not in
blocks as fastboot uses that value to generate empty partition when
running format [1].

Note that the function was already returning the proper size in bytes
for NAND devices (see struct part_info details).

[1]
https://android.googlesource.com/platform/system/core/+/refs/heads/android10-release/fastboot/fastboot.cpp#1500

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
drivers/fastboot/fb_getvar.c