| commit | 165063619ca4cddcc60e2ce763e0df075af1be88 | [log] [tgz] |
|---|---|---|
| author | Avri Altman <[email protected]> | Thu Sep 28 18:06:58 2023 |
| committer | Chromeos LUCI <[email protected]> | Fri Jan 31 05:15:24 2025 |
| tree | d4a3d6e8462dc1d647d4fa7f636ba9c3cd4889a7 | |
| parent | 5acaceaa76c4d95f1732be6303ae24ced934bbe4 [diff] |
FROMGIT: mmc-utils: lsmmc: Fix emmc capacity calculation When the device capacity is larger than 2GB, it shouldn't use c_size but instead it follows a different calculation using the SEC_COUNT field of the ext-csd[215:212] - see eMMC spec JESD84-B51 paragraph 7.3.12. This bug was already in lsmmc when it got merged into mmc-utils, hence the fixes tag. Fixes: 4af1749d2350 (mmc-utils: Merge the lsmmc tool into mmc-utils) Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit b5ca140312d279ad2f22068fd72a6230eea13436 https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git master) BUG=None TEST=compile Change-Id: I5301bd14a7ce45eab5e1f1e39956b268865fa509 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/mmc-utils/+/6193482 Reviewed-by: Alexis Savery <[email protected]> Tested-by: Gwendal Grignou <[email protected]> Commit-Queue: Gwendal Grignou <[email protected]>