mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
blk: set log2blksz in blk_create_device()
The ext4 file system requires log2blksz to be set. So when setting the block size on the block descriptor we should fill this field too. This fixes a problem with EFI block devices providing ext4 partitions, cf. https://lists.denx.de/pipermail/u-boot/2019-October/387702.html. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
ffc379b42c
commit
ee5041451e
1 changed files with 1 additions and 0 deletions
|
@ -580,6 +580,7 @@ int blk_create_device(struct udevice *parent, const char *drv_name,
|
||||||
desc = dev_get_uclass_platdata(dev);
|
desc = dev_get_uclass_platdata(dev);
|
||||||
desc->if_type = if_type;
|
desc->if_type = if_type;
|
||||||
desc->blksz = blksz;
|
desc->blksz = blksz;
|
||||||
|
desc->log2blksz = LOG2(desc->blksz);
|
||||||
desc->lba = lba;
|
desc->lba = lba;
|
||||||
desc->part_type = PART_TYPE_UNKNOWN;
|
desc->part_type = PART_TYPE_UNKNOWN;
|
||||||
desc->bdev = dev;
|
desc->bdev = dev;
|
||||||
|
|
Loading…
Reference in a new issue