]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b418a25d214791e62e4898c274c07e6256f858f
tree34346e5c45a59bc227b4e0a03d58ccc01a479836
parent439f46b015e091d5adf1c48a3e17059aff3928bc
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