]> 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)
commitb3e482d218a75e7dd9fd40c4b863d5e9aed4024a
tree34346e5c45a59bc227b4e0a03d58ccc01a479836
parentcc02168c0b11b35d7ebba6640829b7a5f7fe2e24
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