]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdhci: use f_max instead of host->clock for timeouts
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 3 Aug 2011 15:36:01 +0000 (18:36 +0300)
committerChris Ball <cjb@laptop.org>
Wed, 3 Aug 2011 18:50:44 +0000 (14:50 -0400)
commit2668b40fe084330b311672c4e89b73e90d80527e
tree00aba2bef6b8e3ff66bfdfe338cd72be622e5a04
parent12fc07dba6092bd45b979e5474cad51c337f45b6
mmc: sdhci: use f_max instead of host->clock for timeouts

When timeout_clk is calculated the host->clock could be zero.
So, instead of host->clock the calculation now uses mmc->f_max.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c