Merge "ipq9574: Invoke mmc_init in set_uuid_bootargs"

This commit is contained in:
Linux Build Service Account 2021-10-29 20:05:58 -07:00 committed by Gerrit - the friendly Code Review server
commit d89f06408b

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");