drivers/mmc: send CMD8 only for SD card in initialization
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Thu, 2 Aug 2018 06:48:17 +0000 (14:48 +0800)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Fri, 10 Aug 2018 09:11:12 +0000 (17:11 +0800)
commite74dc940c6e71d665716fcad5124ee9c4af0abd8
tree6db1b147f56cf6d53617cb036b7b1ba0e631cfa0
parent8ae41aec32ac7ecf8f97ed296463188737c65bd3
drivers/mmc: send CMD8 only for SD card in initialization

Sending CMD8 before CMD1 just causes to fetch data failure in eMMC.
Check whether it's eMMC first. If it's eMMC, send CMD1 command instead.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
drivers/mmc/mmc.c