diff options
author | Tom Rini <trini@konsulko.com> | 2021-12-20 17:12:04 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-12-20 17:12:04 -0500 |
commit | 4afab30caea3211032710c4298a8839d3254e7f7 (patch) | |
tree | 8318afb8810966aca9fe356dde316c155b7a33ce /disk | |
parent | e9d7888da845638f135046d53c25492a8c54e664 (diff) | |
parent | 734ad933766f0dbbeafe1b27211686940a5e6d16 (diff) | |
download | u-boot-4afab30caea3211032710c4298a8839d3254e7f7.tar.gz u-boot-4afab30caea3211032710c4298a8839d3254e7f7.tar.bz2 u-boot-4afab30caea3211032710c4298a8839d3254e7f7.zip |
Merge tag 'v2022.01-rc4' into next
Prepare v2022.01-rc4
Diffstat (limited to 'disk')
-rw-r--r-- | disk/part.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/disk/part.c b/disk/part.c index fe1ebd4adf..99f592d96c 100644 --- a/disk/part.c +++ b/disk/part.c @@ -296,8 +296,11 @@ static void print_part_header(const char *type, struct blk_desc *dev_desc) case IF_TYPE_VIRTIO: puts("VirtIO"); break; + case IF_TYPE_EFI_MEDIA: + puts("EFI"); + break; default: - puts ("UNKNOWN"); + puts("UNKNOWN"); break; } printf (" device %d -- Partition Type: %s\n\n", @@ -427,7 +430,8 @@ int blk_get_device_by_str(const char *ifname, const char *dev_hwpart_str, * Always should be done, otherwise hw partition 0 will return stale * data after displaying a non-zero hw partition. */ - part_init(*dev_desc); + if ((*dev_desc)->if_type == IF_TYPE_MMC) + part_init(*dev_desc); #endif cleanup: |