projects
/
project
/
bcm63xx
/
atf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07858dd
)
drivers/mmc: set buswidth and speed before reading data
author
Haojian Zhuang
<haojian.zhuang@linaro.org>
Sat, 4 Aug 2018 10:04:30 +0000
(18:04 +0800)
committer
Haojian Zhuang
<haojian.zhuang@linaro.org>
Fri, 10 Aug 2018 09:11:12 +0000
(17:11 +0800)
It should set buswidth and speed of mmc controller before accessing
mmc.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
drivers/mmc/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index 5823293c90fcae8b2bcc4998511c2b4ea7141f2c..217f90c473df35d2cd32820cbe40760e320945af 100644
(file)
--- a/
drivers/mmc/mmc.c
+++ b/
drivers/mmc/mmc.c
@@
-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)