]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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>
Sat, 13 Aug 2011 18:50:30 +0000 (14:50 -0400)
commit65be3fef930beb3e282e7f23dfba63289971430c
treea2d74efe845f8c90e828b775d59eaaf134533bac
parent272308caaa6c0f2b1500a3660b9fa75f17a45cc4
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