mmc: at91: use max timeout value. It will avoid some situation that timeout happened.
authorWu, Josh <Josh.wu@atmel.com>
Thu, 13 Sep 2012 22:22:06 +0000 (22:22 +0000)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Wed, 17 Oct 2012 09:29:52 +0000 (11:29 +0200)
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/mmc/gen_atmel_mci.c

index 9f0630454895c60bc15316976d633f19742a37c7..67b2dbe8d4c0b4d47339714ceaac0f4ff29aa60c 100644 (file)
@@ -321,8 +321,8 @@ static int mci_init(struct mmc *mmc)
        writel(MMCI_BIT(MCIEN), &mci->cr);      /* enable mci */
        writel(MMCI_BF(SCDSEL, MCI_BUS), &mci->sdcr);   /* select port */
 
-       /* Initial Time-outs */
-       writel(0x5f, &mci->dtor);
+       /* This delay can be optimized, but stick with max value */
+       writel(0x7f, &mci->dtor);
        /* Disable Interrupts */
        writel(~0UL, &mci->idr);