mmc: sh_mmcif: mmc->f_max should be half of the bus clock
authorSimon Horman <horms@verge.net.au>
Wed, 28 Mar 2012 09:01:10 +0000 (18:01 +0900)
committerChris Ball <cjb@laptop.org>
Fri, 6 Apr 2012 00:32:24 +0000 (20:32 -0400)
commit930f152cc9998388031af577843baae572ac8ab6
tree216a0a14ff0758a906abbf3d51df616d9330fbc7
parentf93882570496aa02ba8a47bfaf81cce43046b978
mmc: sh_mmcif: mmc->f_max should be half of the bus clock

mmc->f_max should be half of the bus clock.
And now that mmc->f_max is not equal to the bus clock the
latter should be used directly to calculate mmc->f_min.

Cc: Magnus Damm <magnus.damm@gmail.com>
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