diff options
author | Chen-Yu Tsai <wens@csie.org> | 2017-08-10 11:29:54 +0800 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-08-30 14:02:00 +0200 |
commit | 082bb85fbfb4b87787229182db4d22e5ed9fc8e6 (patch) | |
tree | 72510fb82005325b2ca75399a3006c4ba5e47418 /include/linux/mmc | |
parent | 41279f0197583a0af4e52575bb8480c4f811b7a9 (diff) | |
download | lwn-082bb85fbfb4b87787229182db4d22e5ed9fc8e6.tar.gz lwn-082bb85fbfb4b87787229182db4d22e5ed9fc8e6.zip |
mmc: sunxi: Fix clock rate passed to sunxi_mmc_clk_set_phase
sunxi_mmc_clk_set_phase expects the actual card clock rate to be passed
to it. When the internal divider code was reworked in change ("mmc: sunxi:
Support MMC DDR52 transfer mode with new timing mode"), this requirement
was missed, and the module clock rate was passed in instead. This broke 8
bit DDR MMC on old controllers, as the module clock rate is double the
card clock rate, for which we have no valid delay settings.
Fix this by applying the internal divider to the clock rate right after
we configure it in hardware.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
0 files changed, 0 insertions, 0 deletions