]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: meson-gx: make sure the clock is rounded down
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 2 Oct 2017 12:27:41 +0000 (14:27 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 Oct 2017 08:41:42 +0000 (10:41 +0200)
commitcce4c6fdfbbda597fa750517ead36789322c6acc
tree8a664f92c3218e17fb1050234cee3565c4ce22d0
parent60f55f3d4c3248f06541ebad1926feb6850e5616
mmc: meson-gx: make sure the clock is rounded down

Using CLK_DIVIDER_ROUND_CLOSEST is unsafe as the mmc clock could be
rounded to a rate higher the specified rate. Removing this flag ensure
that, if the rate needs to be rounded, it will be rounded down.

Fixes: 4c77fcf0201d ("MMC: meson: initial support for GX platforms")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c