]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sh_mmcif: double clock speed
authorSimon Horman <horms@verge.net.au>
Wed, 28 Mar 2012 09:01:09 +0000 (18:01 +0900)
committerChris Ball <cjb@laptop.org>
Sun, 1 Apr 2012 04:12:25 +0000 (00:12 -0400)
commitd9fc225d6c10f17688075f0966eb17fd010c1257
treece020e994786549dbcfb5808a5b1d7e1b1ddec84
parentdeb991713c83b8dab2fd6017e163f5c2f7246160
mmc: sh_mmcif: double clock speed

Correct an off-by one error when calculating the clock divisor in cases
where the host clock is a power of two of the target clock.  Previously the
divisor was one greater than the correct value in these cases leading to
the clock being set at half the desired speed.

Thanks to Guennadi Liakhovetski for working with me on the logic for this
change.

Tested-by: Cao Minh Hiep <hiepcm@gmail.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c