diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2023-05-22 07:37:25 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-05-22 10:23:47 +0200 |
commit | 0baca611dfd2b96629f7dd04ec5a711f0a09aae5 (patch) | |
tree | 86004bcb2167acbac3c6b3f8cc195d094e93a516 /drivers/block/efi-block-io.c | |
parent | ca267855c64957c8a1efd4e150b7ef0d31eca24e (diff) | |
download | barebox-0baca611dfd2b96629f7dd04ec5a711f0a09aae5.tar.gz barebox-0baca611dfd2b96629f7dd04ec5a711f0a09aae5.tar.xz |
efi: don't skip default efi devinfo for old EFI block revisions
We early exit to skip info that doesn't apply to older EFI block
protocol revisions. This also means we skip the default efi devinfo
callback, which may not want. Fix this.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Link: https://lore.barebox.org/20230522053725.1043129-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/block/efi-block-io.c')
-rw-r--r-- | drivers/block/efi-block-io.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/block/efi-block-io.c b/drivers/block/efi-block-io.c index a4365ac7c3..eb4981e862 100644 --- a/drivers/block/efi-block-io.c +++ b/drivers/block/efi-block-io.c @@ -121,7 +121,7 @@ static void efi_bio_print_info(struct device *dev) printf(" last_block: 0x%016llx\n", media->last_block); if (revision < EFI_BLOCK_IO_PROTOCOL_REVISION2) - return; + goto out; printf(" lowest_aligned_lba: 0x%08llx\n", media->lowest_aligned_lba); @@ -129,11 +129,12 @@ static void efi_bio_print_info(struct device *dev) media->logical_blocks_per_physical_block); if (revision < EFI_BLOCK_IO_PROTOCOL_REVISION3) - return; + goto out; printf(" optimal_transfer_length_granularity: 0x%08x\n", media->optimal_transfer_length_granularity); +out: if (priv->efi_info) priv->efi_info(dev); } |