mmc: dw_mmc: correct the calculation for CLKDIV
authorSeungwon Jeon <tgih.jun@samsung.com>
Tue, 22 May 2012 04:01:21 +0000 (13:01 +0900)
committerChris Ball <cjb@laptop.org>
Wed, 6 Jun 2012 13:38:51 +0000 (09:38 -0400)
In case of "host->bus_hz < slot->clock", divider value is
miscalculated. And clock divider register value is multiple of 2. If
calculated divider value is odd number, result can be over-clocking.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>

No differences found