mmc: atmel-mci: correct data timeout computation
authorLudovic Desroches <ludovic.desroches@atmel.com>
Wed, 28 Mar 2012 10:28:33 +0000 (12:28 +0200)
committerLuis Henriques <luis.henriques@canonical.com>
Mon, 30 Apr 2012 18:15:02 +0000 (19:15 +0100)
commit4bc27ddea6be4daae13b13f80368f662a7e645c7
tree294306c095f90d47ac2f65e9fe55c9ef751e3dbd
parent57eb53ac1e4e473ef308c6d99879b0cfd98ecb7e
mmc: atmel-mci: correct data timeout computation

BugLink: http://bugs.launchpad.net/bugs/981162

commit 66292ad92c6d3f2f1c137a1c826b331ca8595dfd upstream.

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>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/mmc/host/atmel-mci.c