Commit e69e4dff authored by Sonic Zhang's avatar Sonic Zhang Committed by Chris Ball

mmc: bfin_sdh: Forgot to write SDH_CFG register in function set_ios.

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: default avatarSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 7b239903
...@@ -391,6 +391,7 @@ static void sdh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) ...@@ -391,6 +391,7 @@ static void sdh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
/* Disable 4 bit SDIO */ /* Disable 4 bit SDIO */
cfg &= ~SD4E; cfg &= ~SD4E;
} }
bfin_write_SDH_CFG(cfg);
host->power_mode = ios->power_mode; host->power_mode = ios->power_mode;
#ifndef RSI_BLKSZ #ifndef RSI_BLKSZ
...@@ -415,7 +416,6 @@ static void sdh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) ...@@ -415,7 +416,6 @@ static void sdh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
cfg &= ~SD_CMD_OD; cfg &= ~SD_CMD_OD;
# endif # endif
if (ios->power_mode != MMC_POWER_OFF) if (ios->power_mode != MMC_POWER_OFF)
cfg |= PWR_ON; cfg |= PWR_ON;
else else
...@@ -433,7 +433,6 @@ static void sdh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) ...@@ -433,7 +433,6 @@ static void sdh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
clk_ctl |= CLK_E; clk_ctl |= CLK_E;
host->clk_div = clk_div; host->clk_div = clk_div;
bfin_write_SDH_CLK_CTL(clk_ctl); bfin_write_SDH_CLK_CTL(clk_ctl);
} else } else
sdh_stop_clock(host); sdh_stop_clock(host);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment