]> Pileus Git - ~andy/linux/commitdiff
mmc: bfin_sdh: Forgot to write SDH_CFG register in function set_ios.
authorSonic Zhang <sonic.zhang@analog.com>
Wed, 16 Oct 2013 05:42:05 +0000 (13:42 +0800)
committerChris Ball <chris@printf.net>
Mon, 21 Oct 2013 19:57:39 +0000 (15:57 -0400)
The DMA operation in SDIO CMD53 may fail because the 4 bit SDIO mode
is not set up correctly on BF548.
Remove 2 blank lines as well.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/bfin_sdh.c

index 94fae2f1baaf4de39f9c0e929f35c973b8d4b0b5..e62c5bc7fa31d5d01d72438daa7df19fd2a9d06f 100644 (file)
@@ -391,6 +391,7 @@ static void sdh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
                /* Disable 4 bit SDIO */
                cfg &= ~SD4E;
        }
+       bfin_write_SDH_CFG(cfg);
 
        host->power_mode = ios->power_mode;
 #ifndef RSI_BLKSZ
@@ -415,7 +416,6 @@ static void sdh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
                cfg &= ~SD_CMD_OD;
 # endif
 
-
        if (ios->power_mode != MMC_POWER_OFF)
                cfg |= PWR_ON;
        else
@@ -433,7 +433,6 @@ static void sdh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
                clk_ctl |= CLK_E;
                host->clk_div = clk_div;
                bfin_write_SDH_CLK_CTL(clk_ctl);
-
        } else
                sdh_stop_clock(host);