]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: 6530/1: mmci: partially revert clock divisor code
authorLinus Walleij <linus.walleij@stericsson.com>
Fri, 10 Dec 2010 08:35:53 +0000 (09:35 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 19 Dec 2010 16:01:25 +0000 (16:01 +0000)
I misread the datasheet as if bypass mode was not available at all
on the ux500's, I was wrong. It is there, the datasheet just
states that you should not have to use it.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/host/mmci.c

index f67fd4f2ab485133b45ff5c424d1854cf62fabb0..0b4a5bf0ec2c20a47d89f61bcbce8f5274834984 100644 (file)
@@ -101,13 +101,7 @@ static void mmci_set_clkreg(struct mmci_host *host, unsigned int desired)
 
        if (desired) {
                if (desired >= host->mclk) {
-                       /*
-                        * The ST clock divider does not like the bypass bit,
-                        * even though it's available. Instead the datasheet
-                        * recommends setting the divider to zero.
-                        */
-                       if (!variant->st_clkdiv)
-                               clk = MCI_CLK_BYPASS;
+                       clk = MCI_CLK_BYPASS;
                        host->cclk = host->mclk;
                } else if (variant->st_clkdiv) {
                        /*