mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Merge "ipq9574: Invoke mmc_init in set_uuid_bootargs"
This commit is contained in:
commit
88adb25b48
1 changed files with 9 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue