[U-Boot] [PATCH 3/8] ums: remove error-checking of MMC device size
Stephen Warren
swarren at wwwdotorg.org
Thu May 1 22:00:23 CEST 2014
On 04/30/2014 03:13 PM, Stephen Warren wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> There's no reason to believe that an MMC device will incorrectly report
> its capacity. Remove error checking of this value from ums_disk_init()
> to simplify it.
Hmm. I guess this check might trigger if you tried to export an SD card
slot over UMS, yet there was no SD card present. Still, patch 6/8 in
this series resolves this, since at least for MMC devices, get_device()
calls mmc_init() internally, and hence returns an error in this case.
This is more direct that checking the device size.
More information about the U-Boot
mailing list