linux-brain/drivers/mmc
yong mao 2a84fce9b0 mmc: mediatek: Fixed bug where clock frequency could be set wrong
[ Upstream commit 40ceda09c8 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-20 10:07:23 +01:00
..
card mmc: mmc_test: Uninitialized return value 2017-01-12 11:39:31 +01:00
core mmc: core: prepend 0x to OCR entry in sysfs 2017-12-05 11:24:33 +01:00
host mmc: mediatek: Fixed bug where clock frequency could be set wrong 2017-12-20 10:07:23 +01:00
Kconfig mmc: explicitly mention SDIO support in Kconfig 2008-10-12 11:04:36 +02:00
Makefile mmc: sdhci-pci: add platform data 2012-01-11 23:58:47 -05:00