]> 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)
commit616a57260080c6742d8a316ba4c54b6956ac65f2
tree8ddf84d30f17269a6ec4eed880b5db1491883e23
parent7715933ca6b84caf55eb84347c48d07267adbf5a
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