]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
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>
Fri, 6 Apr 2012 00:32:21 +0000 (20:32 -0400)
commit66292ad92c6d3f2f1c137a1c826b331ca8595dfd
tree8ddf84d30f17269a6ec4eed880b5db1491883e23
parent9f4e8151dbbc4ca4d5dd7792666a50c137102204
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