]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: jz4740: Set clock rate to mmc->f_max rather than JZ_MMC_CLK_RATE
authorAlex Smith <alex.smith@imgtec.com>
Wed, 28 Mar 2018 21:00:50 +0000 (18:00 -0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:33 +0000 (15:08 +0200)
commit5e87a5e51883adccb0a3e8a3ee7ef4c730f63e19
treed2d511617c96d71e84aad18c31da0a02bc36bf5e
parent130a021c612abc6ea3c0aa8e03ec3a7d283f90a3
mmc: jz4740: Set clock rate to mmc->f_max rather than JZ_MMC_CLK_RATE

The maximum clock rate can be overridden by DT. The clock rate should
be set to the DT-specified value rather than the constant JZ_MMC_CLK_RATE
when this is done. If the maximum clock rate is not set by DT then
mmc->f_max will be set to JZ_MMC_CLK_RATE.

Tested-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Alex Smith <alex.smith@imgtec.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/jz4740_mmc.c