mmc: mtk: add hardcoded_voltage for MtkMmcHost MmcCtrlr
Some eMMC devices are very fast in transition from busy to ready status.
If hardcoded_voltage is not set, It will send CMD1 twice
in mmc_send_op_cond() function.
Some eMMC devices may be ready after second CMD1, which will
set OCR_BUSY. In this case, mmc_send_op_cond() will return 0, not MMC_IN_PROGRESS.
This will make mmc_complete_op_cond not executed, then media->version &
media->high_capacity are uninitialized
media->high_capacity will determine byte mode or sector mode.
If access mode is incorrect, host will send wrong argument for
read/write command, so retrieved or sent data may be wrong, even
causing timeout due to having a out-of-range address.
TEST=Boots correctly on Kukui
Signed-off-by: Jimin Wang <email@example.com>
Commit-Ready: ChromeOS CL Exonerator Bot <firstname.lastname@example.org>
Reviewed-by: Hung-Te Lin <email@example.com>
1 file changed