mmc: stm32_sdmmc2: protect against unsupported modes
authorYann Gautier <yann.gautier@foss.st.com>
Tue, 13 Sep 2022 11:23:45 +0000 (13:23 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Oct 2022 09:02:07 +0000 (18:02 +0900)
commit27fbce4326a4d2134791784e054c7acb62ee6761
tree90316aedd731d707bba9e9fe985bc724c99fea70
parentbe1872982e425375a7da6ac75da946f9d15df405
mmc: stm32_sdmmc2: protect against unsupported modes

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