diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2017-02-08 12:36:20 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-02-14 09:10:53 +0100 |
commit | a4c38c8dba98643602ae08c0867425b20a3c204b (patch) | |
tree | 71e60144cd7cf5404ed14974f5beb5af7c71bfc9 /fs/pnode.h | |
parent | 37dac0681e2be4f3c32b090a8c0591d4ce57e6f0 (diff) | |
download | linux-a4c38c8dba98643602ae08c0867425b20a3c204b.tar.gz linux-a4c38c8dba98643602ae08c0867425b20a3c204b.tar.bz2 linux-a4c38c8dba98643602ae08c0867425b20a3c204b.zip |
mmc: meson: Assign the minimum clk rate as close to 400KHz as possible
The current code dealing with calculating mmc->f_min is a bit complicated.
Additionally, the attempt to set an initial clock rate should explicitly
use a rate between 100KHz to 400 KHz, according the (e)MMC/SD specs, which
it doesn't.
Fix the problem and clean up the code by using clk_round_rate() to pick the
nearest minimum rate to 400KHz (rounded down from 400kHz).
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[Heiner: Changed from 100KHz to 400KHz to get a proper rounded rate]
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Diffstat (limited to 'fs/pnode.h')
0 files changed, 0 insertions, 0 deletions