[U-Boot] [U-Boot,6/8] nvme: Fix number of blocks detection

Tom Rini trini at konsulko.com
Mon Aug 14 00:08:09 UTC 2017


On Thu, Aug 03, 2017 at 02:31:01AM -0700, Bin Meng wrote:

> From: Jon Nettleton <jon at solid-run.com>
> 
> NVMe should use the nsze value from the queried device. This will
> reflect the total number of blocks of the device and fix detecting
> my Samsung 960 EVO 256GB.
> 
> Original:
> Capacity: 40386.6 MB = 39.4 GB (82711872 x 512)
> 
> Fixed:
> Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
> 
> Signed-off-by: Jon Nettleton <jon at solid-run.com>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Tested-by: Bin Meng <bmeng.cn at gmail.com>
> Reviewed-by: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170813/a00dc422/attachment.sig>


More information about the U-Boot mailing list