linux-stable/drivers/mmc
yong mao 40ceda09c8 mmc: mediatek: Fixed bug where clock frequency could be set wrong
This patch can fix two issues:

Issue 1:
In previous code, div may be overflow when setting clock frequency
as f_min. We can use DIV_ROUND_UP to fix this boundary related
issue.

Issue 2:
In previous code, we can not set the correct clock frequency when
div equals 0xff.

Signed-off-by: Yong Mao <yong.mao@mediatek.com>
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2017-03-16 13:24:38 +01:00
..
core mmc: block: Fix cmd error reset failure path 2017-03-14 17:13:25 +01:00
host mmc: mediatek: Fixed bug where clock frequency could be set wrong 2017-03-16 13:24:38 +01:00
Kconfig mmc: block: Move files to core 2016-12-12 16:30:05 +01:00
Makefile mmc: block: Move files to core 2016-12-12 16:30:05 +01:00