ipq9574: Invoke mmc_init in set_uuid_bootargs

The MMC mode switch command gets timed out occassionally.
Due to this, set_uuid_bootargs fails and uboot doesn't
jump to kernel. This issue is seen only in norplusemmc boot.
In eMMC Boot, board_mmc_env_init is called which handles
timeout case. Added the same logic to set_uuid_bootargs.

Change-Id: Ie9eb91b00f28c23c136d88e3cb39572e59c759e7
Signed-off-by: anusha <anusharao@codeaurora.org>
This commit is contained in:
anusha 2021-10-01 13:30:23 +05:30 committed by Gerrit - the friendly Code Review server
parent 2cf0f1cd99
commit 7f9c2e5357

View file

@ -571,6 +571,15 @@ int set_uuid_bootargs(char *boot_args, char *part_name, int buflen, bool gpt_fla
block_dev_desc_t *blk_dev;
disk_partition_t disk_info;
if (mmc_init(mmc_host.mmc)) {
/* The HS mode command(cmd6) is getting timed out and mmc is
* not getting initialized properly. So do a reset again.
*/
if (mmc_init(mmc_host.mmc)) {
printf("\n MMC re-init failed, might be cmd6 timeout\n");
return -1;
}
}
blk_dev = mmc_get_dev(mmc_host.dev_num);
if (!blk_dev) {
printf("Invalid block device name\n");