mmc: core: limit probe clock frequency to configured f_max
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Thu, 2 Jan 2020 10:54:58 +0000 (11:54 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 20 Jan 2020 10:54:45 +0000 (11:54 +0100)
commit661cf2d8973a0211be8d4ee1430b66690b291e83
tree34346e5c45a59bc227b4e0a03d58ccc01a479836
parent557c03157c277cab1e895866ea4f7cc725964870
mmc: core: limit probe clock frequency to configured f_max

Currently MMC core disregards host->f_max during card initialization
phase. Obey upper boundary for the clock frequency and skip faster
speeds when they are above the limit.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Link: https://lore.kernel.org/r/f471bceaf237d582d746bd289c4c4f3639cb7b45.1577962382.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c