Commit ace1bed327411cf3cade45599864df2d461045a0
Committed by
Jaehoon Chung
1 parent
a0276f3eee
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
mmc: fix bug in mmc_startup_v4()
The correspondence between mmc versions as used in u-boot and the version numbers reported in register EXT_CSD_REV is wrong for versions above and including MMC_VERSION_4_41. All those versions were shifted by one: real 4.5 hardware appeared to be MMC_VERSION_5_0. Fix this by adding the missing version in the correspondence table. Reported-by: eil Eilmsteiner Heribert <eil@keba.com> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Showing 2 changed files with 2 additions and 0 deletions Side-by-side Diff
drivers/mmc/mmc.c
include/mmc.h
... | ... | @@ -54,6 +54,7 @@ |
54 | 54 | #define MMC_VERSION_4_1 MAKE_MMC_VERSION(4, 1, 0) |
55 | 55 | #define MMC_VERSION_4_2 MAKE_MMC_VERSION(4, 2, 0) |
56 | 56 | #define MMC_VERSION_4_3 MAKE_MMC_VERSION(4, 3, 0) |
57 | +#define MMC_VERSION_4_4 MAKE_MMC_VERSION(4, 4, 0) | |
57 | 58 | #define MMC_VERSION_4_41 MAKE_MMC_VERSION(4, 4, 1) |
58 | 59 | #define MMC_VERSION_4_5 MAKE_MMC_VERSION(4, 5, 0) |
59 | 60 | #define MMC_VERSION_5_0 MAKE_MMC_VERSION(5, 0, 0) |