|
@@ -687,7 +687,7 @@ static u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd)
|
|
* host->clock is in Hz. target_timeout is in us.
|
|
* host->clock is in Hz. target_timeout is in us.
|
|
* Hence, us = 1000000 * cycles / Hz. Round up.
|
|
* Hence, us = 1000000 * cycles / Hz. Round up.
|
|
*/
|
|
*/
|
|
- val = 1000000 * data->timeout_clks;
|
|
|
|
|
|
+ val = 1000000ULL * data->timeout_clks;
|
|
if (do_div(val, host->clock))
|
|
if (do_div(val, host->clock))
|
|
target_timeout++;
|
|
target_timeout++;
|
|
target_timeout += val;
|
|
target_timeout += val;
|