Files
linux/drivers/mmc/host
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
..
2012-11-28 12:28:18 -08:00
2009-03-24 21:30:03 +01:00
2016-07-18 11:50:40 +02:00
2014-09-24 10:13:09 +02:00
2016-09-26 21:31:33 +02:00
2015-06-01 09:06:48 +02:00
2016-09-26 21:31:33 +02:00
2017-03-30 09:41:24 +02:00
2015-10-26 15:59:53 +01:00
2007-07-26 01:53:31 +02:00
2015-03-23 14:13:49 +01:00