Commit bd4e3dee authored by Haojian Zhuang's avatar Haojian Zhuang
Browse files

drivers/mmc: set buswidth and speed before reading data



It should set buswidth and speed of mmc controller before accessing
mmc.
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@linaro.org>
parent 07858dd8
......@@ -473,12 +473,12 @@ static int mmc_enumerate(unsigned int clk, unsigned int bus_width)
}
} while (ret != MMC_STATE_TRAN);
ret = mmc_fill_device_info();
ret = mmc_set_ios(clk, bus_width);
if (ret != 0) {
return ret;
}
return mmc_set_ios(clk, bus_width);
return mmc_fill_device_info();
}
size_t mmc_read_blocks(int lba, uintptr_t buf, size_t size)
......
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