projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be18729
)
mmc: stm32_sdmmc2: protect against unsupported modes
author
Yann Gautier
<yann.gautier@foss.st.com>
Tue, 13 Sep 2022 11:23:45 +0000
(13:23 +0200)
committer
Jaehoon Chung
<jh80.chung@samsung.com>
Mon, 24 Oct 2022 09:02:07 +0000
(18:02 +0900)
The UHS modes for SD, HS200 and HS400 modes for eMMC are not supported
by the stm32_sdmmc2 driver.
Make it clear by removing the corresponding caps after parsing the DT.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/stm32_sdmmc2.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/stm32_sdmmc2.c
b/drivers/mmc/stm32_sdmmc2.c
index 952d02f9b84fc6aa644b359bfea42d0662066ad4..d42262c14fd85c9d522478476c27e3c0ea2c17d3 100644
(file)
--- a/
drivers/mmc/stm32_sdmmc2.c
+++ b/
drivers/mmc/stm32_sdmmc2.c
@@
-675,6
+675,8
@@
static int stm32_sdmmc2_of_to_plat(struct udevice *dev)
if (ret)
return ret;
+ cfg->host_caps &= ~(UHS_CAPS | MMC_MODE_HS200 | MMC_MODE_HS400 | MMC_MODE_HS400_ES);
+
ret = clk_get_by_index(dev, 0, &plat->clk);
if (ret)
return ret;