]> git.baikalelectronics.ru Git - 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)
commitc872081e185c82015e95f023ad7f12aa722c0182
tree8ddf84d30f17269a6ec4eed880b5db1491883e23
parenta8429b9a67277dcb4ef1dcea156a2a26141183f0
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