mmc: mmci: stm32: set feedback clock when using delay block
authorYann Gautier <yann.gautier@foss.st.com>
Tue, 13 Jun 2023 15:01:48 +0000 (17:01 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Jun 2023 13:06:19 +0000 (15:06 +0200)
commit16f2e6c01f1b1d641c92c0dcb469fe0f78b12878
tree1c51f541695c015aea96dee70931581c26e7df77
parent2cc83bf7d41113d95c5e8aa0938a73d6cd7082bb
mmc: mmci: stm32: set feedback clock when using delay block

The feedback clock is used only for SDR104 & HS200 modes, and when
delay block is used (frequency is higher than 50 MHz). The tuning
procedure is then only required for those modes. Skip the procedure
for other modes.
The setting of this feedback clock is done just after enabling delay
block, and before configuring it.

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Link: https://lore.kernel.org/r/20230613150148.429828-1-yann.gautier@foss.st.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci_stm32_sdmmc.c