mmc: atmel-mci: correct data timeout computation
authorLudovic Desroches <ludovic.desroches@atmel.com>
Wed, 28 Mar 2012 10:28:33 +0000 (12:28 +0200)
committerChris Ball <cjb@laptop.org>
Sun, 1 Apr 2012 03:42:20 +0000 (23:42 -0400)
commit17befa685141cff960995ac8b6ca3f9571fbaa19
tree95affdd183bd71e3da15e9a473910aa932c6d708
parent8ab36773784815bf97e2177a02a849d0fb66b745
mmc: atmel-mci: correct data timeout computation

The HSMCI operates at a rate of up to Master Clock divided by two.
Moreover previous calculation can cause overflows and so wrong
timeouts.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/atmel-mci.c